Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
Add new SVG icons for toolbar buttons and update Gradio header styles
myhloli73d16e6be72f
diff --git a/.github/workflows/gradio.yml b/.github/workflows/gradio.ymlnew file mode 100644index 00000000..bcc432f4--- /dev/null+++ b/.github/workflows/gradio.yml@@ -0,0 +1,47 @@+name: Gradio 6 preview++on:+ workflow_dispatch:+ pull_request:+ paths:+ - "mineru/kit/gradio/**"+ - "mineru/kit/commands/gradio.py"+ - "mineru/resources/gradio*"+ - "mineru/resources/pdf_preview/**"+ - "tests/unittest/test_kit_gradio*"+ - "scripts/*pdfjs*"+ - "pyproject.toml"+ - ".github/workflows/gradio.yml"++jobs:+ compatibility:+ runs-on: ubuntu-latest+ strategy:+ fail-fast: false+ matrix:+ include:+ - {python: "3.13", gradio: "6.8.0"}+ - {python: "3.13", gradio: "6.9.0"}+ - {python: "3.13", gradio: "6.17.3"}+ - {python: "3.13", gradio: "6.26.0"}+ - {python: "3.10", gradio: "6.26.0"}+ steps:+ - uses: actions/checkout@v6+ - uses: actions/setup-python@v6+ with:+ python-version: ${{ matrix.python }}+ - uses: actions/setup-node@v6+ with:+ node-version: "22"+ - name: Install UI dependencies without the inference stack+ run: python -m pip install -e '.[gradio,test]' 'gradio==${{ matrix.gradio }}'+ - name: Check dependency removal and preview regressions+ run: |+ python -c "import importlib.util; assert importlib.util.find_spec('gradio_pdf') is None"+ python -m pytest tests/unittest/test_kit_gradio*.py -o addopts='' -q+ - name: Verify distribution resources+ if: matrix.gradio == '6.26.0' && matrix.python == '3.13'+ run: |+ python -m pip install build+ python -m build+ python scripts/verify_pdfjs_distribution.py dist/*.whl dist/*.tar.gzdiff --git a/docs/next/cli/mineru-kit-gradio.md b/docs/next/cli/mineru-kit-gradio.mdindex 3de8f4dd..350a0627 100644--- a/docs/next/cli/mineru-kit-gradio.md+++ b/docs/next/cli/mineru-kit-gradio.md@@ -4,6 +4,25 @@状态: Implemented+## PDF 预览与版本要求++Gradio 界面要求 `gradio>=6.8,<7`,不再支持 Gradio 5,也不再需要安装 `gradio-pdf`。+PDF 预览使用独立 iframe 和随 MinerU 分发的 PDF.js 6.3.289,支持连续阅读、翻页、页码跳转、缩放和适应宽度。+核心模块、worker、CMap、标准字体及解码资源均从当前 Gradio 站点加载,预览无需外部 CDN 或 npm。++上传时显示原始 PDF;解析完成后显示布局 PDF,布局文件不可用时显示裁页后的原始 PDF。+每次切换文档回到第一页并适应宽度;浏览页码不改变解析页范围,翻页和缩放不调用 Python 解析接口。+需要密码或损坏的 PDF 会显示预览错误。文字搜索、编辑、打印和缩略图不在当前预览功能范围内。+静态资源和文件沿用 Gradio 的认证与文件路由,支持反向代理子路径;自定义挂载仍需传入自己的结果目录 `allowed_paths`。++Gradio 6.26 的 `huggingface-hub>=1.16` 与当前 Transformers 4 的依赖范围不兼容。+使用最新 Gradio 时,将 UI 安装在独立环境,通过 `--api-url` 连接推理服务;与本地模型同环境安装时,+让依赖解析器选择兼容的 Gradio 6.x,当前相关约束可解析到 6.17.3,无需升级 Transformers。++维护预览资源时执行 `python scripts/vendor_pdfjs.py`,脚本会校验固定上游压缩包并生成逐文件 SHA-256 清单。+构建后使用 `python scripts/verify_pdfjs_distribution.py dist/*.whl dist/*.tar.gz` 检查资源和许可证是否完整。+浏览器样本可用 `python tests/browser/gradio_pdf_fixtures.py output/playwright/pdfjs-fixtures` 生成。+`mineru-kit gradio` 提供一个基于 MinerU V1 API 的文档解析界面。它不直接调用旧 `/file_parse` 或 `/tasks` 接口,也不使用 `doclib` 缓存。## 启动@@ -94,11 +113,15 @@ Gradio 首先发现 `/v1/health` 和 `/v1/tiers`,然后通过 `MinerUApiParser## 结果与下载-页面只展示:+结果栏提供两个标签:++- Markdown:实际展示 HTML renderer 的完整输出,保留表格、公式和代码高亮。+- JSON:以只读、可复制的语法高亮视图展示本次保存的 `structured_content.json`,与 JSON 下载包中的内容一致。+ 新转换开始、失败、更换文件和清除时同步清空;切换标签不会重新解析或渲染。-- Markdown 渲染:实际展示 HTML renderer 的完整输出,保留表格、公式和代码高亮。+Gradio 转换事件在原有输出末尾追加 Structured Content JSON 文本,既有输出的位置保持不变。-下载图标位于右侧结果栏的标签行最右端,鼠标悬停或键盘聚焦即可展开菜单。菜单包含 Markdown、JSON、HTML、DOCX、LaTeX、EPUB 和 PDF。下载文件由 Gradio 从本次保存的结果按需生成,不新增 API job 输出格式。Markdown 和 JSON 分别下载独立 ZIP,根目录放置同名 `.md` 或 `.json`,图片放在 `images/`,正文及 JSON 图片字段使用相对路径。JSON 内容使用 Structured Content,不包含 Middle JSON。LaTeX 下载包包含 `.tex` 与 `images/`,可交给 XeLaTeX 使用;Gradio 不自动执行 TeX 编译。预览和下载的单个 HTML 均使用当前 Gradio 服务的图片 HTTP 链接,不嵌入 base64;链接可用性取决于当前服务和任务文件。+下载按钮位于右侧结果栏的标签行最右端,图标右侧按界面语言显示“下载”或“Download”,鼠标悬停或键盘聚焦即可展开菜单。菜单包含 Markdown、JSON、HTML、DOCX、LaTeX、EPUB 和 PDF。下载文件由 Gradio 从本次保存的结果按需生成,不新增 API job 输出格式。Markdown 和 JSON 分别下载独立 ZIP,根目录放置同名 `.md` 或 `.json`,图片放在 `images/`,正文及 JSON 图片字段使用相对路径。JSON 内容使用 Structured Content,不包含 Middle JSON。LaTeX 下载包包含 `.tex` 与 `images/`,可交给 XeLaTeX 使用;Gradio 不自动执行 TeX 编译。预览和下载的单个 HTML 均使用当前 Gradio 服务的图片 HTTP 链接,不嵌入 base64;链接可用性取决于当前服务和任务文件。图片名称使用原始零基页索引和所属父块的 `type/index`,例如 `images/page_1_image_3.jpg` 表示原第 2 页、索引为 3 的图片块。整表截图使用 `page_1_table_3.jpg`,表内图片按出现顺序使用 `page_1_table_image_3_1.png`、`page_1_table_image_3_2.png`。裁页不会重新编号,下载打包保持相同图片名称;代码和算法不生成截图。历史任务不迁移,重新转换后使用该命名。diff --git a/mineru/kit/commands/gradio.py b/mineru/kit/commands/gradio.pyindex 25a08406..43d81a9f 100644--- a/mineru/kit/commands/gradio.py+++ b/mineru/kit/commands/gradio.py@@ -4,9 +4,11 @@ from __future__ import annotationsimport importlib.utilimport os+from importlib.metadata import versionfrom typing import Literalimport typer+from packaging.specifiers import SpecifierSetfrom ...model.ocr.language import validate_public_ocr_langfrom ...types import SERVER_TIERS, ServerTier@@ -16,12 +18,16 @@ from ..errors import exit_with_messagedef _require_gradio_dependencies() -> None:"""检查 Gradio 可选依赖,并在缺失时给出安装提示。"""- missing = [name for name in ("gradio", "gradio_pdf") if importlib.util.find_spec(name) is None]- if missing:+ if importlib.util.find_spec("gradio") is None:exit_with_message("dependency_missing","Gradio support requires the optional dependencies; install with `pip install 'mineru[gradio]'`.",)+ if version("gradio") not in SpecifierSet(">=6.8,<7"):+ exit_with_message(+ "dependency_incompatible",+ "Gradio >=6.8,<7 is required; upgrade with `pip install --upgrade 'mineru[gradio]'`.",+ )def _validate_server_tier(value: str) -> ServerTier:diff --git a/mineru/kit/gradio/app.py b/mineru/kit/gradio/app.pyindex 371bda20..416a6f7a 100644--- a/mineru/kit/gradio/app.py+++ b/mineru/kit/gradio/app.py@@ -27,6 +27,7 @@ from .client import (from .i18n import MESSAGES, localized_text, preview_placeholder, translationsfrom .page_range import effective_page_range as _effective_page_rangefrom .page_range import pdf_page_metadata, validate_max_pages+from .pdf_preview import pdf_preview_js, register_pdf_preview_resourcesfrom .status import (DEFAULT_STATUS as _DEFAULT_STATUS,STATUS_COMPLETED,@@ -47,6 +48,17 @@ _DOWNLOAD_FORMATS: tuple[tuple[str, str], ...] = (("epub", "EPUB"),("pdf", "PDF"),)+# 下载图标采用统一线宽:Markdown 标记、JSON 花括号、HTML 标签、文档、公式、书籍和 PDF 文件。+_DOWNLOAD_ICON_PATHS: dict[str, str] = {+ "markdown": "M3 17V7l4 5 4-5v10M15 13l3 4 3-4M18 7v10",+ "json": "M9 4H7a2 2 0 0 0-2 2v3a3 3 0 0 1-2 3 3 3 0 0 1 2 3v3a2 2 0 0 0 2 2h2"+ "M15 4h2a2 2 0 0 1 2 2v3a3 3 0 0 0 2 3 3 3 0 0 0-2 3v3a2 2 0 0 1-2 2h-2",+ "html": "M7 7l-5 5 5 5M17 7l5 5-5 5M14 4l-4 16",+ "docx": "M14 3H5v18h14V8l-5-5v5h5M8 12h8M8 16h8",+ "latex": "M19 5H5l8 7-8 7h14M19 5v3M19 16v3",+ "epub": "M12 6c-3-2-6-2-10-2v15c4 0 7 0 10 2 3-2 6-2 10-2V4c-4 0-7 0-10 2v15",+ "pdf": "M14 3H5v18h14V8l-5-5v5h5M8 17c3-4 5-8 4-8-2 0-1 7 4 7 3 0-5-3-8 1-1 2 1 1 2 0",+}_DEFAULT_TIER = "standard"_LATEX_DELIMITERS_A = [{"left": "$$", "right": "$$", "display": True},@@ -56,7 +68,7 @@ _LATEX_DELIMITERS_B = [{"left": "\\(", "right": "\\)", "display": False},{"left": "\\[", "right": "\\]", "display": True},]-_DOWNLOAD_ICON_HTML = """+_DOWNLOAD_ICON_HTML = f"""<button type="button" class="mineru-kit-download-icon" title="Download results" aria-label="Download results"data-mineru-i18n-key="download_results" data-mineru-i18n-attr="title aria-label"aria-controls="mineru-kit-download-options">@@ -64,18 +76,38 @@ _DOWNLOAD_ICON_HTML = """stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M12 3v12m-5-5 5 5 5-5M5 16v4h14v-4" /></svg>+ {localized_text("download")}</button>"""_KIT_MENU_CSS = """-.mineru-kit-results { position: relative; padding: 12px !important; overflow: visible; }-/* Gradio 5/6 的导航容器不同;只缩窄标题行,让正文继续占满结果栏。 */-.mineru-kit-results > .mineru-markdown-tabs > .tab-nav,+.mineru-kit-results {+ --mineru-download-trigger-width: 108px;+ position: relative; padding: 12px !important; overflow: visible;+ /* 保留原输出栏总高度,将空提示区释放的空间交给正文。 */+ min-height: calc(var(--mineru-preview-content-height) + 110px);+}+.mineru-kit-results > .mineru-markdown-tabs { display: flex !important; flex-direction: column; gap: 16px; }+.mineru-kit-results [role="tabpanel"] { margin-top: 0 !important; }+.mineru-kit-results > .mineru-markdown-tabs,+.mineru-kit-results [role="tabpanel"],+.mineru-kit-results [role="tabpanel"] > .column { flex: 1 1 0; min-height: 0; }+.mineru-kit-results .mineru-markdown-output { flex: 1 1 0; height: 100%; min-height: 0 !important; }+.mineru-kit-results .mineru-markdown-output .html-container,+.mineru-kit-results .mineru-markdown-output .prose { height: 100%; }+.mineru-kit-results .mineru-rendered-html-frame { height: 100% !important; }+.mineru-kit-results .mineru-structured-json { flex: 1 1 0; height: 100%; min-height: 0 !important; }+.mineru-structured-json .code-container,+.mineru-structured-json .cm-editor { height: 100% !important; min-height: 0 !important; max-height: none !important; }+.mineru-structured-json .cm-scroller { overflow: auto; }+.mineru-kit-download-notice:not(:has([role="alert"])) { display: none !important; }+/* 只缩窄 Gradio 6 的标题行,让正文继续占满结果栏。 */.mineru-kit-results > .mineru-markdown-tabs > .tab-wrapper {- width: calc(100% - 40px);+ width: calc(100% - var(--mineru-download-trigger-width) - 8px);+ margin-bottom: 0 !important;}.mineru-kit-results > .mineru-kit-download-menu {position: absolute; top: 12px; right: 12px; z-index: 40;- width: 32px !important; min-width: 0 !important; height: 32px; gap: 0;+ width: var(--mineru-download-trigger-width) !important; min-width: 0 !important; height: 32px; gap: 0;overflow: visible;}.mineru-kit-download-trigger,@@ -85,17 +117,18 @@ _KIT_MENU_CSS = """}.mineru-kit-download-trigger { min-height: 32px; border: 0; background: transparent; }.mineru-kit-download-trigger .mineru-kit-download-icon {- display: flex; align-items: center; justify-content: center;- width: 32px; height: 32px; margin: 0; padding: 6px; border: 0; border-radius: 6px;+ display: flex; align-items: center; justify-content: center; gap: 6px;+ width: 100%; height: 32px; margin: 0; padding: 6px 8px; border: 0; border-radius: 6px;+ font-size: 14px; line-height: 20px; white-space: nowrap;color: var(--body-text-color, #1f2937); background: transparent; cursor: pointer;}-.mineru-kit-download-icon svg { width: 20px; height: 20px; margin: 0; }+.mineru-kit-download-icon svg { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; }.mineru-kit-download-menu:hover .mineru-kit-download-icon,.mineru-kit-download-icon:focus-visible { background: var(--background-fill-secondary, #f3f4f6); }.mineru-kit-download-icon:focus-visible { outline: 2px solid var(--mineru-accent, #f97316); outline-offset: 2px; }.mineru-kit-download-options {position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;- width: 192px !important; min-width: 0 !important;+ width: max-content !important; min-width: 0 !important;display: flex !important; flex-direction: column; gap: 4px; padding: 6px;border: 1px solid var(--mineru-panel-border, rgba(17,24,39,.12)); border-radius: 8px;background: var(--background-fill-primary, #fff); box-shadow: 0 12px 28px rgba(15,23,42,.18);@@ -109,14 +142,34 @@ _KIT_MENU_CSS = """/* 填满图标与浮层之间的间隙,避免鼠标移向下载项时菜单提前关闭。 */.mineru-kit-download-options::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 7px; }.mineru-kit-download-options :is(button, a) {- justify-content: flex-start; width: 100%; min-height: 34px; padding: 6px 10px;- border: 0; border-radius: 6px; background: transparent; box-shadow: none; text-align: left;+ justify-content: flex-start; width: 100%; min-height: 34px; padding: 6px 10px; white-space: nowrap;+ border: 0; border-radius: 6px; background: transparent; box-shadow: none; text-align: left; gap: 8px;+}+.mineru-kit-download-options button::before {+ content: ""; display: block; width: 16px; height: 16px; flex: 0 0 16px;+ background-color: currentColor;+ -webkit-mask: var(--mineru-download-format-icon) center / contain no-repeat;+ mask: var(--mineru-download-format-icon) center / contain no-repeat;}.mineru-kit-download-options :is(button, a):hover { background: var(--background-fill-secondary, #f3f4f6); }.mineru-kit-empty-preview { min-height: 160px; display: grid; place-items: center; opacity: .65; }-/* gradio-pdf 0.0.22 的内部容器不识别 hidden,显式隐藏空组件,同时保持挂载。 */-.mineru-kit-pdf-preview.mineru-kit-pdf-empty { display: none !important; }+/* PDF 直接贴合面板边框,独立预览不再沿用旧组件的标签留白与额外高度。 */+.mineru-kit-preview:has(.mineru-pdf-frame) { padding: 0; gap: 0; overflow: hidden; }+.mineru-kit-preview > .block.mineru-kit-pdf-preview {+ height: var(--mineru-preview-content-height, 775px) !important;+ min-height: 0 !important; max-height: none !important;+}+.mineru-kit-pdf-preview { height: 100%; padding: 0 !important; }+.mineru-kit-pdf-preview .html-container,+.mineru-kit-pdf-preview .prose { height: 100%; padding: 0 !important; }+.mineru-kit-pdf-preview:not(:has(.mineru-pdf-frame, [role="alert"])) { display: none !important; }+.mineru-pdf-frame { display: block; width: 100%; height: 100%; border: 0; }.mineru-kit-image-preview img { max-height: var(--mineru-pdf-page-height, 720px); object-fit: contain; }+/* 桌面两栏共用行高,PDF 填满伸展后的面板;窄屏仍采用独立预览高度。 */+@media (min-width: 901px) {+ .mineru-kit-results, .mineru-kit-preview:has(.mineru-pdf-frame) { align-self: stretch !important; height: auto; }+ .mineru-kit-preview > .block.mineru-kit-pdf-preview { flex: 1 1 0; height: auto !important; }+}@media (max-width: 900px) {.mineru-kit-workspace { flex-direction: column !important; }.mineru-kit-control, .mineru-kit-preview, .mineru-kit-results { min-width: 0 !important; width: 100% !important; }@@ -130,7 +183,21 @@ def _resource_text(resource_name: str) -> str:return resource_path.read_text(encoding="utf-8")-def _render_header(*, gradio_major_version: int = 5) -> str:+def _download_icon_css() -> str:+ """为各下载格式生成本地 SVG 遮罩,随按钮文字适配主题且不改变无障碍名称。"""+ rules = []+ for format_name, path in _DOWNLOAD_ICON_PATHS.items():+ svg = (+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" '+ f'stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="{path}"/></svg>'+ )+ rules.append(+ f'.mineru-kit-download-{format_name} {{ --mineru-download-format-icon: url("data:image/svg+xml,{quote(svg)}"); }}'+ )+ return "\n".join(rules)+++def _render_header() -> str:"""渲染复用旧版视觉风格的静态 Header。"""template = _resource_text("gradio_header.html")values = {@@ -139,7 +206,6 @@ def _render_header(*, gradio_major_version: int = 5) -> str:"{{HEADER_PAPER_MINERU_REPORT}}": "MinerU · arXiv","{{HEADER_PAPER_MINERU25_REPORT}}": "MinerU 2.5 · arXiv","{{HEADER_PAPER_MINERU25PRO_REPORT}}": "MinerU 2.5 Pro · arXiv",- "{{HEADER_GRADIO_VERSION_CLASS}}": " mineru-gradio6-header" if gradio_major_version >= 6 else "",}for placeholder, key in {"HEADER_TITLE": "header_title",@@ -149,7 +215,6 @@ def _render_header(*, gradio_major_version: int = 5) -> str:"HEADER_MODEL_LINK": "model","HEADER_PAPER_LINK": "paper","HEADER_HOMEPAGE_LINK": "homepage",- "HEADER_DOWNLOAD_LINK": "download",}.items():template = template.replace("{{" + placeholder + "}}", localized_text(key))template = template.replace(@@ -202,16 +267,13 @@ def _is_office(path_value: str | Path | None) -> bool:def _preview_update(gr: Any, value: object, *, visible: bool) -> Any:- """构造跨 Gradio 5/6 兼容的组件更新对象。"""+ """构造原生组件的内容与显隐更新。"""return gr.update(value=value, visible=visible)def _pdf_preview_update(gr: Any, value: str | None) -> Any:- """让空 PDF 保持挂载,并兼容旧版自定义组件不识别 hidden 的视觉隐藏行为。"""- classes = ["mineru-kit-pdf-preview"]- if not value:- classes.append("mineru-kit-pdf-empty")- return gr.update(value=value, visible=True if value else "hidden", elem_classes=classes)+ """保持文件输出的 FileData 契约,实际预览由独立 HTML 组件承载。"""+ return gr.update(value=value, visible=False)def _download_updates(gr: Any, *, interactive: bool, run_id: str = "") -> tuple[Any, ...]:@@ -240,29 +302,27 @@ def build_gradio_app() -> Any:"""构建不启动监听端口的 Gradio Blocks 应用,便于单元测试和外部托管。"""import gradio as gr- from gradio_pdf import PDF+ viewer_entry = register_pdf_preview_resources()validate_max_pages(max_pages)tier_choices = [tier for tier in TIERS if tier in capabilities.tiers]if not tier_choices:raise ValueError("V1 API server did not advertise any parsing tier")preferred_tier = _default_tier(capabilities)file_types = _supported_file_types()- app_css = _resource_text("gradio_app.css") + _KIT_MENU_CSS+ app_css = _resource_text("gradio_app.css") + _KIT_MENU_CSS + _download_icon_css()i18n = gr.I18n(**translations())app_js = _resource_text("gradio_app.js").replace("__MINERU_I18N__",f"({_resource_text('gradio_i18n.js')})({json.dumps(MESSAGES, ensure_ascii=False)})",)- # Gradio 5 在 Blocks 构造时接收静态资源,6 则在 launch 时接收。- blocks_kwargs = {"css": app_css, "js": app_js} if _gradio_major_version(gr) < 6 else {}# 等待限制放在生成器内部,使其他会话也能立即显示本地排队状态。conversion_slot = asyncio.Semaphore(1)session_tasks: dict[str, set[asyncio.Task[tuple[Any, ...]]]] = {}- with gr.Blocks(**blocks_kwargs) as demo:+ with gr.Blocks() as demo:gr.HTML(- _render_header(gradio_major_version=_gradio_major_version(gr)),+ _render_header(),elem_classes=["mineru-header-html"],)with gr.Row(elem_classes=["mineru-kit-workspace"]):@@ -307,16 +367,17 @@ def build_gradio_app(label=i18n("mineru.page_range"),visible=False,)- # 用 JSON 文本承载内部状态,避开 Gradio 5/6 JSON 组件的序列化差异。+ # 用 JSON 文本承载前端状态,保持现有事件输入契约。page_metadata = gr.Textbox(value="{}", visible=False)page_selection = gr.Textbox(value="{}", visible=False)- # 布局容器在两个主版本的纯 JS 属性更新行为不同;显隐由子 HTML 的明确状态控制。+ # 通过子 HTML 的明确状态控制显隐,保留原生滑块的交互状态。with gr.Column(min_width=0, elem_classes=["mineru-kit-page-range"]):page_summary = gr.HTML(value="", elem_classes=["mineru-page-summary"])with gr.Row(elem_classes=["mineru-page-sliders"]):page_handle_a = gr.Slider(minimum=1,- maximum=1,+ # 新版 Gradio 拒绝零跨度,单页与空状态仍保持禁用和值为 1。+ maximum=2,value=1,step=1,precision=0,@@ -327,7 +388,7 @@ def build_gradio_app()page_handle_b = gr.Slider(minimum=1,- maximum=1,+ maximum=2,value=1,step=1,precision=0,@@ -345,13 +406,14 @@ def build_gradio_app(status_panel = gr.HTML(_status_html(), elem_classes=["mineru-status-panel"])with gr.Column(scale=4, min_width=340, elem_classes=["mineru-kit-preview", "mineru-preview-pane"]):- pdf_preview = PDF(- label=MESSAGES["preview"][0],- interactive=False,- # 预先挂载空组件,避免 gradio-pdf 首次带值挂载时漏掉文件加载。- visible="hidden",- height=720,- elem_classes=["mineru-kit-pdf-preview", "mineru-kit-pdf-empty"],+ pdf_preview = gr.File(visible=False, interactive=False, label="PDF", type="filepath")+ pdf_viewer_entry = gr.File(value=str(viewer_entry), visible=False, interactive=False)+ pdf_viewer = gr.HTML(+ value="",+ apply_default_css=False,+ # 保持原生 HTML 挂载,避免较早的 Gradio 6 忽略纯前端的 visible 更新。+ visible=True,+ elem_classes=["mineru-kit-pdf-preview"],)image_preview = gr.Image(label=i18n("mineru.preview"),@@ -375,11 +437,23 @@ def build_gradio_app(with gr.Column(scale=4, min_width=340, elem_classes=["mineru-kit-results", "mineru-markdown-pane"]):with gr.Tabs(elem_classes=["mineru-markdown-tabs"]):- with gr.Tab(i18n("mineru.markdown_rendered")):+ with gr.Tab(i18n("mineru.markdown")):html_output = gr.HTML(value="",elem_classes=["mineru-markdown-output"],)+ with gr.Tab(i18n("mineru.json_view")):+ json_output = gr.Code(+ value="",+ language="json",+ interactive=False,+ show_label=False,+ container=False,+ lines=1,+ wrap_lines=True,+ buttons=["copy"],+ elem_classes=["mineru-structured-json"],+ )with gr.Column(scale=0, min_width=0, elem_classes=["mineru-kit-download-menu"]):gr.HTML(_DOWNLOAD_ICON_HTML, elem_classes=["mineru-kit-download-trigger"])with gr.Column(@@ -394,6 +468,7 @@ def build_gradio_app(visible=True,interactive=False,size="sm",+ min_width=0,elem_classes=[f"mineru-kit-download-{format_name}"],)download_notice = gr.HTML(value="", elem_classes=["mineru-kit-download-notice"])@@ -414,6 +489,7 @@ def build_gradio_app(page_range,force_ocr,html_output,+ json_output,pdf_preview,image_preview,office_preview,@@ -424,7 +500,7 @@ def build_gradio_app(def update_file_preview(file_path: str | None, request: object | None = None) -> tuple[Any, ...]:"""切换源文件预览,并清除上一份文档的结果与下载状态。"""- reset_result = (_status_html(_DEFAULT_STATUS), "", None, *_download_updates(gr, interactive=False))+ reset_result = (_status_html(_DEFAULT_STATUS), "", None, *_download_updates(gr, interactive=False), "")if not file_path:return (_pdf_preview_update(gr, None),@@ -472,7 +548,11 @@ def build_gradio_app(# 保持公开输入只有文件,访问地址由 Gradio 的请求上下文注入。update_file_preview.__annotations__["request"] = gr.Request- private_event_kwargs = _private_event_kwargs(gr)+ private_event_kwargs = {"queue": False, "api_visibility": "private"}++ # 换文件和清除先在浏览器中撤销旧预览,文件输出仍由原有 Python 事件管理。+ input_file.change(fn=None, inputs=input_file, outputs=pdf_viewer, js=pdf_preview_js("reset"), **private_event_kwargs)+ clear_button.click(fn=None, inputs=[], outputs=pdf_viewer, js=pdf_preview_js("clear"), **private_event_kwargs)download_script = _resource_text("gradio_download.js")@@ -519,7 +599,7 @@ def build_gradio_app()async def cancel_session_conversion(request: object | None = None) -> None:- """主动回收当前会话的任务,不依赖 Gradio 5/6 对异步生成器的关闭实现。"""+ """主动回收当前会话任务,确保关闭异步生成器时也能完成资源清理。"""session_hash = getattr(request, "session_hash", None)tasks = session_tasks.pop(session_hash, set())for task in tasks:@@ -528,7 +608,7 @@ def build_gradio_app(await asyncio.gather(*tasks, return_exceptions=True)cancel_session_conversion.__annotations__["request"] = gr.Request- # 显式注册加载事件,确保两个主版本都会执行前端初始化函数而不只加载其文本。+ # 显式注册幂等加载事件,初始化前端状态和自定义文案。demo.load(fn=None, js=app_js, **private_event_kwargs)preview_outputs = [pdf_preview,@@ -540,6 +620,7 @@ def build_gradio_app(artifact_state,active_run_id,*download_buttons.values(),+ json_output,]# 文件页数只在上传后读取;前端缓存元数据,tier 切换和拖动不发起 Python 请求。@@ -591,7 +672,7 @@ def build_gradio_app(force_ocr: bool = False,request: object | None = None,) -> Any:- """执行单文件 V1 解析并流式更新状态与 HTML 结果。"""+ """执行单文件 V1 解析并流式更新状态、HTML 和 Structured Content JSON。"""# 开始或失败只重置结果与下载;预览内容、显隐和浏览位置保持不变。reset_result = (_status_html(_DEFAULT_STATUS),@@ -599,6 +680,7 @@ def build_gradio_app(*(gr.skip() for _ in range(4)),None,*_download_updates(gr, interactive=False),+ "",)if not file_path:yield reset_result@@ -666,6 +748,8 @@ def build_gradio_app(artifacts,public_base_url=_gradio_public_base_url(request),)+ # 直接复用下载所用的 Structured Content 文件,避免展示成 Middle JSON 或重复渲染。+ structured_json = await asyncio.to_thread(artifacts.structured_content_path.read_text, encoding="utf-8")preview_path = artifacts.layout_pdf_path or artifacts.origin_pdf_pathgeneric_html = "" if preview_path else preview_placeholder("result_ready")show_image_preview = suffix in IMAGE_EXTENSIONS and preview_path is None@@ -683,6 +767,7 @@ def build_gradio_app(*result_preview_updates,artifacts.as_state(),*_download_updates(gr, interactive=True, run_id=artifacts.root.name),+ structured_json,)task = asyncio.create_task(run_conversion())@@ -729,20 +814,22 @@ def build_gradio_app(artifact_state,active_run_id,*download_buttons.values(),+ json_output,]# Gradio 在读取函数签名时需要真实的 Request 类型对象;注解在运行时补回以保持延迟导入。convert_handler.__annotations__["request"] = gr.Request- event_kwargs: dict[str, Any] = {"queue": True, "show_progress": "hidden", "concurrency_limit": None}- if _gradio_major_version(gr) >= 6:- event_kwargs["api_visibility"] = "public" if enable_api else "private"- else:- event_kwargs["api_name"] = "to_markdown" if enable_api else False+ event_kwargs: dict[str, Any] = {+ "queue": True,+ "show_progress": "hidden",+ "concurrency_limit": None,+ "api_visibility": "public" if enable_api else "private",+ }# 重置与转换必须显式串联;独立 click 监听可能在转换完成后才执行重置。begin_conversion = convert_button.click(fn=reset_download_ui,inputs=[],outputs=download_reset_outputs,- js=f"() => {{ ({download_js('reset')})(); return []; }}",+ js=f"() => {{ ({pdf_preview_js('begin')})(); ({download_js('reset')})(); return []; }}",**private_event_kwargs,)convert_event = begin_conversion.then(@@ -751,13 +838,28 @@ def build_gradio_app(outputs=convert_outputs,**event_kwargs,)- input_file.change(+ source_preview_event = input_file.change(fn=update_file_preview,inputs=input_file,outputs=preview_outputs,cancels=[convert_event],**private_event_kwargs,)+ # 成功事件接收已经序列化的原生 FileData,避免首次挂载时丢失 URL。+ source_preview_event.success(+ fn=None,+ inputs=[pdf_preview, input_file, pdf_viewer_entry],+ outputs=pdf_viewer,+ js=pdf_preview_js("source"),+ **private_event_kwargs,+ )+ convert_event.success(+ fn=None,+ inputs=[pdf_preview, input_file, pdf_viewer_entry, active_run_id],+ outputs=pdf_viewer,+ js=pdf_preview_js("result"),+ **private_event_kwargs,+ )input_file.change(fn=cancel_session_conversion, inputs=[], outputs=[], **private_event_kwargs)reset_outputs = [@@ -770,6 +872,7 @@ def build_gradio_app(artifact_state,active_run_id,*download_buttons.values(),+ json_output,]def reset_ui() -> tuple[Any, ...]:@@ -783,9 +886,10 @@ def build_gradio_app(gr.update(value=preview_placeholder("empty_preview"), visible=True),None,*_download_updates(gr, interactive=False),+ "",)- clear_button.click(fn=reset_ui, inputs=[], outputs=reset_outputs, cancels=[convert_event], queue=False)+ clear_button.click(fn=reset_ui, inputs=[], outputs=reset_outputs, cancels=[convert_event], **private_event_kwargs)clear_button.click(fn=cancel_session_conversion, inputs=[], outputs=[], **private_event_kwargs)for format_name, label in _DOWNLOAD_FORMATS:@@ -812,7 +916,7 @@ def build_gradio_app(outputs=[download_files[format_name], download_receipts[format_name]],queue=True,show_progress="hidden",- api_name=False,+ api_visibility="private",)prepare_download.success(fn=None,@@ -824,9 +928,7 @@ def build_gradio_app(demo._mineru_kit_css = app_cssdemo._mineru_kit_js = app_js- demo._mineru_kit_launch_kwargs = {"i18n": i18n}- if _gradio_major_version(gr) >= 6:- demo._mineru_kit_launch_kwargs.update(css=app_css, js=app_js)+ demo._mineru_kit_launch_kwargs = {"i18n": i18n, "css": app_css, "js": app_js}demo.queue(default_concurrency_limit=1)return demo@@ -957,22 +1059,6 @@ def _build_office_preview_html(file_path: str | Path, request: object | None = N)-def _gradio_major_version(gr: Any) -> int:- """读取 Gradio 主版本,用于兼容 Gradio 5/6 事件参数。"""- raw_version = str(getattr(gr, "__version__", "5"))- try:- return int(raw_version.split(".", 1)[0])- except (TypeError, ValueError):- return 5---def _private_event_kwargs(gr: Any) -> dict[str, Any]:- """生成不把内部文件事件公开为 Gradio API 的兼容参数。"""- if _gradio_major_version(gr) >= 6:- return {"queue": False, "api_visibility": "private"}- return {"queue": False, "api_name": False}--def _download_request_handler(request_token: str) -> str:"""传回前端下载令牌以可靠触发后续事件,不直接修改可能已属于新文档的按钮。"""return request_token if isinstance(request_token, str) else ""diff --git a/mineru/kit/gradio/i18n.py b/mineru/kit/gradio/i18n.pyindex 48716a76..7d100fcc 100644--- a/mineru/kit/gradio/i18n.py+++ b/mineru/kit/gradio/i18n.py@@ -11,8 +11,7 @@ MESSAGES: dict[str, tuple[str, str]] = {"header_subtitle": ("Open-source document extraction for PDF/JPG/PNG, DOC/DOCX, PPT/PPTX, XLS/XLSX, ""RTF, ODT/ODS/ODP, EPUB, HTML, OFD and CSV.",- "开源文档提取工具,支持 PDF/JPG/PNG、DOC/DOCX、PPT/PPTX、XLS/XLSX、"- "RTF、ODT/ODS/ODP、EPUB、HTML、OFD 和 CSV。",+ "开源文档提取工具,支持 PDF/JPG/PNG、DOC/DOCX、PPT/PPTX、XLS/XLSX、RTF、ODT/ODS/ODP、EPUB、HTML、OFD 和 CSV。",),"header_support_text": ("If you found our project helpful, please give us a ⭐️ to support us!",@@ -52,11 +51,22 @@ MESSAGES: dict[str, tuple[str, str]] = {"convert": ("Convert", "转换"),"clear": ("Clear", "清除"),"preview": ("Document preview", "文档预览"),+ "pdf_loading": ("Loading PDF…", "正在加载 PDF…"),+ "pdf_previous": ("Previous page", "上一页"),+ "pdf_next": ("Next page", "下一页"),+ "pdf_page": ("Page", "页码"),+ "pdf_zoom_out": ("Zoom out", "缩小"),+ "pdf_zoom_in": ("Zoom in", "放大"),+ "pdf_fit_width": ("Fit width", "适应宽度"),+ "pdf_invalid": ("This PDF is damaged or invalid.", "PDF 已损坏或格式无效。"),+ "pdf_password": ("This PDF requires a password and cannot be previewed.", "此 PDF 需要密码,暂时无法预览。"),+ "pdf_load_failed": ("Could not load the PDF preview. Please upload the file again.", "PDF 预览加载失败,请重新上传文件。"),"empty_preview": ("No source document preview", "暂无源文档预览"),"source_preview": ("Source document preview", "源文档预览"),"unsupported_preview": ("No source preview for this format", "该格式暂无源文档预览"),"result_ready": ("Results are ready", "结果已生成"),- "markdown_rendered": ("Markdown preview", "Markdown 渲染"),+ "markdown": ("Markdown", "Markdown"),+ "json_view": ("JSON", "JSON"),"download_results": ("Download results", "下载结果"),"examples": ("Examples", "示例"),"preparing_download": ("Preparing…", "准备中…"),diff --git a/mineru/kit/gradio/pdf_preview.py b/mineru/kit/gradio/pdf_preview.pynew file mode 100644index 00000000..09fe446b--- /dev/null+++ b/mineru/kit/gradio/pdf_preview.py@@ -0,0 +1,30 @@+"""原生 Gradio 文件组件与独立 PDF.js 预览页面之间的资源适配。"""++from __future__ import annotations++import json+import mimetypes+from pathlib import Path+from typing import Literal++PreviewAction = Literal["reset", "clear", "begin", "source", "result"]+++def register_pdf_preview_resources() -> Path:+ """在构建应用时公开可信预览资源,并统一跨平台脚本与 WASM 的 MIME 类型。"""+ import gradio as gr++ resource_root = Path(__file__).resolve().parents[2] / "resources" / "pdf_preview"+ mimetypes.add_type("text/javascript", ".mjs")+ mimetypes.add_type("application/wasm", ".wasm")+ gr.set_static_paths(paths=[resource_root])+ return resource_root / "viewer.html"+++def pdf_preview_js(action: PreviewAction) -> str:+ """为原生组件成功事件生成前端适配函数,不增加浏览操作的 Python 请求。"""+ script = (Path(__file__).resolve().parents[2] / "resources" / "gradio_pdf_preview.js").read_text(encoding="utf-8")+ return f"(...args) => ({script})({json.dumps(action)}, ...args)"+++__all__ = ["pdf_preview_js", "register_pdf_preview_resources"]diff --git a/mineru/resources/gradio_app.css b/mineru/resources/gradio_app.cssindex 08586017..7c3515d7 100644--- a/mineru/resources/gradio_app.css+++ b/mineru/resources/gradio_app.css@@ -57,7 +57,7 @@ body.dark .gradio-container {display: none !important; position: relative; padding: 12px 12px 32px !important; overflow: visible !important;border: 1px solid var(--mineru-panel-border); border-radius: 8px;}-/* 不依赖 Gradio 布局容器的 JS visible 更新,明确状态同时适用于 5/6。 */+/* 用明确的选页状态控制可见性,保留原生滑块的交互状态。 */.mineru-kit-page-range:has([data-range-visible="true"]) { display: flex !important; }.mineru-page-summary, .mineru-page-summary .html-container { padding: 0 !important; }.mineru-page-values, .mineru-page-axis { display: flex; justify-content: space-between; align-items: center; gap: 6px; }@@ -168,21 +168,7 @@ body.dark .gradio-container {height: 100% !important;max-width: none !important;}-.mineru-preview-pane .pdf-canvas {- height: var(--mineru-pdf-page-height) !important;- max-height: var(--mineru-pdf-page-height) !important;- min-height: 0 !important;- width: 100% !important;- overflow: auto !important;-}-.mineru-preview-pane .pdf-canvas canvas {- max-width: 100% !important;- max-height: var(--mineru-pdf-page-height) !important;- object-fit: contain;-}-.mineru-preview-pane .button-row {- flex: none !important;-}+.mineru-result-file {height: auto !important;min-height: 44px !important;diff --git a/mineru/resources/gradio_download.js b/mineru/resources/gradio_download.jsindex 11975633..a639cc95 100644--- a/mineru/resources/gradio_download.js+++ b/mineru/resources/gradio_download.js@@ -2,7 +2,7 @@(action, formats, format, label, ...args) => {const { text, message } = window.__mineruI18n;const state = window.__mineruGradioDownloads ??= { runId: "", sequence: 0, pending: new Map() };- // 用标准组件更新对象兼容 Gradio 5/6;空更新不会覆盖新文档的按钮状态。+ // 使用原生组件更新对象;空更新不会覆盖新文档的按钮状态。const skip = () => ({ __type__: "update" });const button = (value, interactive) => ({ __type__: "update", value, interactive });// 下载失败文案仅作为文本展示,不能把服务端错误插入为活动 HTML。diff --git a/mineru/resources/gradio_header.html b/mineru/resources/gradio_header.htmlindex 19c807f3..a2e3b9b8 100644--- a/mineru/resources/gradio_header.html+++ b/mineru/resources/gradio_header.html@@ -116,7 +116,7 @@a {text-decoration: none;}- .mineru-gradio6-header .external-link {+ .mineru-demo-header .external-link {padding-left: 16px !important;padding-right: 16px !important;text-decoration: none !important;@@ -149,7 +149,7 @@</style></head><body>- <div class="mineru-demo-header{{HEADER_GRADIO_VERSION_CLASS}}" style="+ <div class="mineru-demo-header" style="display: flex;flex-direction: column;justify-content: center;@@ -247,16 +247,6 @@</a></span>- <!-- Client Link. -->- <span class="link-block">- <a href="https://mineru.net/client?source=online" target="_blank" class="external-link button is-normal is-rounded is-dark" style="text-decoration: none; cursor: pointer">- <span class="icon" style="margin-right: 8px">- <i class="fas fa-download" style="color: white"></i>- </span>- <span style="color: white">{{HEADER_DOWNLOAD_LINK}}</span>- </a>- </span>-</div></div>diff --git a/mineru/resources/gradio_page_range.js b/mineru/resources/gradio_page_range.jsindex b974d739..741ee602 100644--- a/mineru/resources/gradio_page_range.js+++ b/mineru/resources/gradio_page_range.js@@ -75,8 +75,8 @@const notice = flashUnavailable ? text("flash_unavailable"): needsRange && !count ? (message(state.error) || text("reading_pages")) : "";const range = visible ? (start === end ? String(start) : `${start}-${end}`) : "";- // 两个端点始终保留完整文档跨度,不能把轨道范围截短为页数上限。- const slider = (value, label) => update({ minimum: 1, maximum: Math.max(1, count), value, interactive, label });+ // 新版 Gradio 要求非零跨度;单页时禁用滑块,实际页数和提交范围仍为 1。+ const slider = (value, label) => update({ minimum: 1, maximum: Math.max(2, count), value, interactive, label });return [slider(state.handle_a, state.start_handle === "a" ? text("start_page") : text("end_page")),slider(state.handle_b, state.start_handle === "b" ? text("start_page") : text("end_page")),diff --git a/mineru/resources/gradio_pdf_preview.js b/mineru/resources/gradio_pdf_preview.jsnew file mode 100644index 00000000..7be28600--- /dev/null+++ b/mineru/resources/gradio_pdf_preview.js@@ -0,0 +1,73 @@+// 仅通过原生 FileData 和事件值连接预览器,不访问 Gradio 内部 DOM 或组件状态。+(action, ...args) => {+ const state = window.__mineruPdfPreview ??= { source: "", conversion: "", revision: 0, result: "" };+ // 路径用于比较文档身份;仅 Windows 路径转换分隔符,保留 POSIX 文件名中的反斜杠。+ const path = (value) => /^[a-z]:[\\/]|^\\\\/i.test(value) ? value.replace(/\\/g, "/") : value;+ const key = (file) => path(String(file?.path || file?.url || ""));+ // 输出只更新自有 HTML 组件;迟到回调通过空更新保持当前预览。+ const skip = () => ({ __type__: "update" });+ const empty = () => ({ __type__: "update", value: "", visible: true });+ // 使用 FileData 的路由前缀与原始路径,避免空格、#、?、% 等文件名字符被误解释为 URL 语法。+ const fileUrl = (file, routeBase = null) => {+ if (!file?.url || !file?.path || /^https?:/i.test(file.path)) throw new Error("Invalid preview file");+ const marker = "/gradio_api/file=";+ const supplied = new URL(file.url, window.location.href);+ if (supplied.origin !== window.location.origin) throw new Error("Invalid preview origin");+ if (!supplied.pathname.includes(marker)) throw new Error("Invalid preview route");+ // 事件结果的相对 URL 可能省略挂载前缀,使用初始静态文件的完整路由作为统一基址。+ const route = routeBase || supplied.href;+ const index = route.indexOf(marker);+ const encoded = path(file.path).split("/").map(encodeURIComponent).join("/");+ const url = new URL(route.slice(0, index + marker.length) + encoded, window.location.href);+ if (url.origin !== window.location.origin) throw new Error("Invalid preview origin");+ return url.href;+ };+ // 文件名和本地化文本都必须作为属性文本编码,不允许注入活动 HTML。+ const escapeHtml = (value) => String(value).replace(/[&<>"']/g, (character) => ({+ "&": "&", "<": "<", ">": ">", '"': """, "'": "'",+ })[character]);++ if (action === "reset" || action === "clear") {+ state.source = action === "clear" ? "" : key(args[0]);+ state.conversion = "";+ state.result = "";+ state.revision += 1;+ return empty();+ }+ if (action === "begin") {+ state.conversion = state.source;+ return [];+ }+ const [file, source, viewer, runId] = args;+ if (!state.source || key(source) !== state.source) return skip();+ if (action === "source") {+ // 原文的 File 缓存路径与上传文件一致;不能让晚到的原文事件覆盖布局结果。+ if (state.result || (file && key(file) !== key(source))) return skip();+ } else if (action === "result") {+ if (!runId || state.conversion !== state.source) return skip();+ state.result = runId;+ } else {+ return skip();+ }+ if (!file) return empty();+ const { text } = window.__mineruI18n;+ try {+ const messages = Object.fromEntries([+ "preview", "pdf_loading", "pdf_previous", "pdf_next", "pdf_page", "pdf_zoom_out", "pdf_zoom_in",+ "pdf_fit_width", "pdf_invalid", "pdf_password", "pdf_load_failed",+ ].map((name) => [name, text(name)]));+ const viewerUrl = fileUrl(viewer);+ const params = new URLSearchParams({ file: fileUrl(file, viewerUrl), messages: JSON.stringify(messages) });+ const url = new URL(viewerUrl);+ // Gradio 6 会复用 iframe 节点;只改 hash 不会重新加载文档,必须改变查询参数。+ url.searchParams.set("document", String(++state.revision));+ url.hash = params.toString();+ return {+ __type__: "update", visible: true,+ value: `<iframe class="mineru-pdf-frame" title="${escapeHtml(text("preview"))}" ` ++ `src="${escapeHtml(url.href)}" sandbox="allow-scripts allow-same-origin"></iframe>`,+ };+ } catch (error) {+ return { __type__: "update", visible: true, value: `<div role="alert">${escapeHtml(text("pdf_load_failed"))}</div>` };+ }+}diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/LICENSE b/mineru/resources/pdf_preview/vendor/pdfjs/LICENSEnew file mode 100644index 00000000..f433b1a5--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/LICENSE@@ -0,0 +1,177 @@++ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONSdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-EUC-H.bcmapnew file mode 100644index 00000000..2655fc70Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-EUC-V.bcmapnew file mode 100644index 00000000..f1ed8538Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-H.bcmapnew file mode 100644index 00000000..39e89d33Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-RKSJ-H.bcmapnew file mode 100644index 00000000..e4167cb5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-RKSJ-V.bcmapnew file mode 100644index 00000000..50b1646eBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-RKSJ-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-V.bcmapnew file mode 100644index 00000000..d7af99b5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmapnew file mode 100644index 00000000..37077d01Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78ms-RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmapnew file mode 100644index 00000000..acf23231Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/78ms-RKSJ-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmapnew file mode 100644index 00000000..2359bc52Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/83pv-RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmapnew file mode 100644index 00000000..af829382Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90ms-RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmapnew file mode 100644index 00000000..780549deBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90ms-RKSJ-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmapnew file mode 100644index 00000000..bfd3119cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90msp-RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmapnew file mode 100644index 00000000..25ef14abBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90msp-RKSJ-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmapnew file mode 100644index 00000000..02f713bbBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90pv-RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmapnew file mode 100644index 00000000..d08e0cc5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/90pv-RKSJ-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-H.bcmapnew file mode 100644index 00000000..59442acaBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmapnew file mode 100644index 00000000..a3065e44Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmapnew file mode 100644index 00000000..040014cfBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-RKSJ-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-V.bcmapnew file mode 100644index 00000000..2f816d32Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Add-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmapnew file mode 100644index 00000000..88ec04afBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-0.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmapnew file mode 100644index 00000000..03a50147Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-1.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmapnew file mode 100644index 00000000..2aa95141Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-2.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmapnew file mode 100644index 00000000..86d8b8c7Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-3.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmapnew file mode 100644index 00000000..f50fc6c1Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-4.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmapnew file mode 100644index 00000000..6caf4a83Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-5.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmapnew file mode 100644index 00000000..b77fb070Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-6.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmapnew file mode 100644index 00000000..69d79a2cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-CNS1-UCS2.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmapnew file mode 100644index 00000000..36101083Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-0.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmapnew file mode 100644index 00000000..707bb106Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-1.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmapnew file mode 100644index 00000000..f7648cc3Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-2.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmapnew file mode 100644index 00000000..85214589Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-3.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmapnew file mode 100644index 00000000..e40c63abBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-4.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmapnew file mode 100644index 00000000..d7623b50Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-5.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmapnew file mode 100644index 00000000..75865259Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-GB1-UCS2.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmapnew file mode 100644index 00000000..f0e94ec1Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-0.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmapnew file mode 100644index 00000000..dad42c5aBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-1.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmapnew file mode 100644index 00000000..090819a0Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-2.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmapnew file mode 100644index 00000000..087dfc15Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-3.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmapnew file mode 100644index 00000000..46aa9bffBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-4.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmapnew file mode 100644index 00000000..5b4b65ccBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-5.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmapnew file mode 100644index 00000000..e77d699aBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-6.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmapnew file mode 100644index 00000000..128a1410Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Japan1-UCS2.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmapnew file mode 100644index 00000000..cef1a998Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-0.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmapnew file mode 100644index 00000000..11ffa36dBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-1.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmapnew file mode 100644index 00000000..3172308cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-2.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmapnew file mode 100644index 00000000..f3371c0cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Adobe-Korea1-UCS2.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5-H.bcmapnew file mode 100644index 00000000..beb4d228Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5-V.bcmapnew file mode 100644index 00000000..2d4f87d5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5pc-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5pc-H.bcmapnew file mode 100644index 00000000..ce001316Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5pc-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5pc-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5pc-V.bcmapnew file mode 100644index 00000000..73b99ff2Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/B5pc-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS-EUC-H.bcmapnew file mode 100644index 00000000..61d1d0cbBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS-EUC-V.bcmapnew file mode 100644index 00000000..1a393a51Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS1-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS1-H.bcmapnew file mode 100644index 00000000..f738e218Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS1-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS1-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS1-V.bcmapnew file mode 100644index 00000000..9c3169f0Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS1-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS2-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS2-H.bcmapnew file mode 100644index 00000000..c89b3527Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS2-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS2-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS2-V.bcmapnew file mode 100644index 00000000..7588cec8--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/CNS2-V.bcmap@@ -0,0 +1,3 @@+�RCopyright 1990-2009 Adobe Systems Incorporated.+All rights reserved.+See ./LICENSE�CNS2-H\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETHK-B5-H.bcmapnew file mode 100644index 00000000..cb29415dBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETHK-B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETHK-B5-V.bcmapnew file mode 100644index 00000000..f09aec63Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETHK-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETen-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETen-B5-H.bcmapnew file mode 100644index 00000000..c2d77462Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETen-B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETen-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETen-B5-V.bcmapnew file mode 100644index 00000000..89bff159Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETen-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETenms-B5-H.bcmapnew file mode 100644index 00000000..a7d69db5--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETenms-B5-H.bcmap@@ -0,0 +1,3 @@+�RCopyright 1990-2009 Adobe Systems Incorporated.+All rights reserved.+See ./LICENSE� ETen-B5-H` ^\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETenms-B5-V.bcmapnew file mode 100644index 00000000..adc5d618Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/ETenms-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/EUC-H.bcmapnew file mode 100644index 00000000..e92ea5b3Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/EUC-V.bcmapnew file mode 100644index 00000000..7a7c1832Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-H.bcmapnew file mode 100644index 00000000..3b5cde44Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmapnew file mode 100644index 00000000..ea4d2d97Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmapnew file mode 100644index 00000000..3457c277Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-RKSJ-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-V.bcmapnew file mode 100644index 00000000..4999ca40Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Ext-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-EUC-H.bcmapnew file mode 100644index 00000000..e39908b9Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-EUC-V.bcmapnew file mode 100644index 00000000..d5be5446Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-H.bcmapnew file mode 100644index 00000000..39189c54--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-H.bcmap@@ -0,0 +1,4 @@+�RCopyright 1990-2009 Adobe Systems Incorporated.+All rights reserved.+See ./LICENSE!!��]aX!!]`�21�> �p�z�$]��"R�d�-U�7�*� 4�%�+ �Z �{�/�%�<�9K�b�1]�.�"��`]�,�"]�+�"]�h�"]�F�"]�$�"]��"]�`�"]�>�"]��"]�z�"]�X�"]�6�"]��"]�r�"]�P�"]�.�"]��"]�j�"]�H�"]�&�"]��"]�b�"]�@�"]��"]�|�"]�Z�"]�8�"]��"]�t�"]�R�"]�0�"]��"]�l�"]�J�"]�(�"]��"]�d�"]�B�"]� �"X�~�']�W�"]�5�"]��"]�q�"]�O�"]�-�"]��"]�i�"]�G�"]�%�"]��"]�a�"]�?�"]��"]�{�"]�Y�"]�7�"]��"]�s�"]�Q�"]�/�"]� �"]�k�"]�I�"]�'�"]��"]�c�"]�A�"]��"]�}�"]�[�"]�9\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-V.bcmapnew file mode 100644index 00000000..31083451Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GB-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK-EUC-H.bcmapnew file mode 100644index 00000000..05fff7e8Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK-EUC-V.bcmapnew file mode 100644index 00000000..0cdf6bedBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK2K-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK2K-H.bcmapnew file mode 100644index 00000000..46f6ba59Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK2K-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK2K-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK2K-V.bcmapnew file mode 100644index 00000000..d9a94798Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBK2K-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmapnew file mode 100644index 00000000..5cb0af68Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBKp-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmapnew file mode 100644index 00000000..bca93b8eBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBKp-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-EUC-H.bcmapnew file mode 100644index 00000000..4b4e2d32Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-EUC-V.bcmapnew file mode 100644index 00000000..38f70669Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-H.bcmapnew file mode 100644index 00000000..8437ac33Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-V.bcmapnew file mode 100644index 00000000..697ab4a8Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBT-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmapnew file mode 100644index 00000000..f6e50e89Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBTpc-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmapnew file mode 100644index 00000000..6c0d71a2Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBTpc-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmapnew file mode 100644index 00000000..c9edf67cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBpc-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmapnew file mode 100644index 00000000..31450c97Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/GBpc-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/H.bcmapnew file mode 100644index 00000000..7b24ea46Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdla-B5-H.bcmapnew file mode 100644index 00000000..7d30c050Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdla-B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdla-B5-V.bcmapnew file mode 100644index 00000000..78946940Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdla-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmapnew file mode 100644index 00000000..d829a231Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdlb-B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmapnew file mode 100644index 00000000..2b572b50Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKdlb-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmapnew file mode 100644index 00000000..971a4f23Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKgccs-B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmapnew file mode 100644index 00000000..d353ca25Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKgccs-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm314-B5-H.bcmapnew file mode 100644index 00000000..576dc011Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm314-B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm314-B5-V.bcmapnew file mode 100644index 00000000..0e96d0e2Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm314-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm471-B5-H.bcmapnew file mode 100644index 00000000..11d170c7Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm471-B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm471-B5-V.bcmapnew file mode 100644index 00000000..54959bf9Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKm471-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKscs-B5-H.bcmapnew file mode 100644index 00000000..6ef7857aBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKscs-B5-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKscs-B5-V.bcmapnew file mode 100644index 00000000..1fb2fa2aBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/HKscs-B5-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Hankaku.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Hankaku.bcmapnew file mode 100644index 00000000..4b8ec7fcBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Hankaku.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Hiragana.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Hiragana.bcmapnew file mode 100644index 00000000..17e983e7Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Hiragana.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-EUC-H.bcmapnew file mode 100644index 00000000..a45c65f0Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-EUC-V.bcmapnew file mode 100644index 00000000..0e7b21f0Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-H.bcmapnew file mode 100644index 00000000..b9b22b67Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-Johab-H.bcmapnew file mode 100644index 00000000..2531ffcfBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-Johab-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-Johab-V.bcmapnew file mode 100644index 00000000..367ceb22Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-Johab-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-V.bcmapnew file mode 100644index 00000000..6ae2f0b6Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmapnew file mode 100644index 00000000..a8d4240eBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmapnew file mode 100644index 00000000..8b4ae18fBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-HW-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmapnew file mode 100644index 00000000..b655dbcfBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-HW-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmapnew file mode 100644index 00000000..21f97f65Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCms-UHC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmapnew file mode 100644index 00000000..e06f361eBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCpc-EUC-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmapnew file mode 100644index 00000000..f3c9113fBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/KSCpc-EUC-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Katakana.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Katakana.bcmapnew file mode 100644index 00000000..524303c4Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Katakana.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/LICENSE b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/LICENSEnew file mode 100644index 00000000..b1ad168a--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/LICENSE@@ -0,0 +1,36 @@+%%Copyright: -----------------------------------------------------------+%%Copyright: Copyright 1990-2009 Adobe Systems Incorporated.+%%Copyright: All rights reserved.+%%Copyright:+%%Copyright: Redistribution and use in source and binary forms, with or+%%Copyright: without modification, are permitted provided that the+%%Copyright: following conditions are met:+%%Copyright:+%%Copyright: Redistributions of source code must retain the above+%%Copyright: copyright notice, this list of conditions and the following+%%Copyright: disclaimer.+%%Copyright:+%%Copyright: Redistributions in binary form must reproduce the above+%%Copyright: copyright notice, this list of conditions and the following+%%Copyright: disclaimer in the documentation and/or other materials+%%Copyright: provided with the distribution.+%%Copyright:+%%Copyright: Neither the name of Adobe Systems Incorporated nor the names+%%Copyright: of its contributors may be used to endorse or promote+%%Copyright: products derived from this software without specific prior+%%Copyright: written permission.+%%Copyright:+%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND+%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,+%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF+%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR+%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT+%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;+%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN+%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR+%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS+%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+%%Copyright: -----------------------------------------------------------diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/NWP-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/NWP-H.bcmapnew file mode 100644index 00000000..afc5e4b0Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/NWP-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/NWP-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/NWP-V.bcmapnew file mode 100644index 00000000..bb5785e3Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/NWP-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/RKSJ-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/RKSJ-H.bcmapnew file mode 100644index 00000000..fb8d298eBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/RKSJ-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/RKSJ-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/RKSJ-V.bcmapnew file mode 100644index 00000000..a2555a6cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/RKSJ-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Roman.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Roman.bcmapnew file mode 100644index 00000000..f896dcf1Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/Roman.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmapnew file mode 100644index 00000000..d5db27c5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UCS2-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmapnew file mode 100644index 00000000..1dc9b7a2Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UCS2-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmapnew file mode 100644index 00000000..961afefbBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF16-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmapnew file mode 100644index 00000000..df0cffe8Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF16-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmapnew file mode 100644index 00000000..1ab18a14Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF32-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmapnew file mode 100644index 00000000..ad14662eBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF32-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmapnew file mode 100644index 00000000..83c6bd7cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF8-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmapnew file mode 100644index 00000000..22a27e4dBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniCNS-UTF8-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmapnew file mode 100644index 00000000..5bd6228cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UCS2-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmapnew file mode 100644index 00000000..53c534b7Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UCS2-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmapnew file mode 100644index 00000000..b95045b4Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF16-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmapnew file mode 100644index 00000000..51f023e0Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF16-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmapnew file mode 100644index 00000000..f0dbd14fBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF32-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmapnew file mode 100644index 00000000..ce9c30a9Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF32-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmapnew file mode 100644index 00000000..982ca462Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF8-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmapnew file mode 100644index 00000000..f78020ddBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniGB-UTF8-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmapnew file mode 100644index 00000000..7daf56afBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmapnew file mode 100644index 00000000..ac9975c5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmapnew file mode 100644index 00000000..3da0a1c6Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-HW-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmapnew file mode 100644index 00000000..c50b9ddfBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UCS2-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmapnew file mode 100644index 00000000..67613446Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF16-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmapnew file mode 100644index 00000000..70bf90c0Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF16-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmapnew file mode 100644index 00000000..7a83d53aBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF32-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmapnew file mode 100644index 00000000..7a871353Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF32-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmapnew file mode 100644index 00000000..9f0334caBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF8-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmapnew file mode 100644index 00000000..808a94f0Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS-UTF8-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmapnew file mode 100644index 00000000..d768bf81Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF16-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmapnew file mode 100644index 00000000..3d5bf6fbBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF16-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmapnew file mode 100644index 00000000..09eee10dBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF32-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmapnew file mode 100644index 00000000..6c546001Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF32-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmapnew file mode 100644index 00000000..1b1a64f5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF8-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmapnew file mode 100644index 00000000..994aa9efBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJIS2004-UTF8-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmapnew file mode 100644index 00000000..643f921bBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UCS2-HW-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmapnew file mode 100644index 00000000..c148f67fBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UCS2-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmapnew file mode 100644index 00000000..1849d809Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISPro-UTF8-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmapnew file mode 100644index 00000000..a83a677cBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX0213-UTF32-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmapnew file mode 100644index 00000000..f527248aBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX0213-UTF32-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmapnew file mode 100644index 00000000..e1a988dcBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmapnew file mode 100644index 00000000..47e054a9Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniJISX02132004-UTF32-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmapnew file mode 100644index 00000000..b5b94852Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UCS2-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmapnew file mode 100644index 00000000..026adcaaBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UCS2-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmapnew file mode 100644index 00000000..fd4e66e8Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF16-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmapnew file mode 100644index 00000000..075efb70Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF16-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmapnew file mode 100644index 00000000..769d2142Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF32-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmapnew file mode 100644index 00000000..bdab208bBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF32-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmapnew file mode 100644index 00000000..6ff8674aBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF8-H.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmapnew file mode 100644index 00000000..8dfa76a5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/UniKS-UTF8-V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/V.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/V.bcmapnew file mode 100644index 00000000..fdec9906Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/V.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/WP-Symbol.bcmap b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/WP-Symbol.bcmapnew file mode 100644index 00000000..46729bbfBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/cmaps/WP-Symbol.bcmap differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_add.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_add.svgnew file mode 100644index 00000000..3451b536--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_add.svg@@ -0,0 +1,3 @@+<svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M5.375 7.625V11.875C5.375 12.0408 5.44085 12.1997 5.55806 12.3169C5.67527 12.4342 5.83424 12.5 6 12.5C6.16576 12.5 6.32473 12.4342 6.44194 12.3169C6.55915 12.1997 6.625 12.0408 6.625 11.875V7.625L7.125 7.125H11.375C11.5408 7.125 11.6997 7.05915 11.8169 6.94194C11.9342 6.82473 12 6.66576 12 6.5C12 6.33424 11.9342 6.17527 11.8169 6.05806C11.6997 5.94085 11.5408 5.875 11.375 5.875H7.125L6.625 5.375V1.125C6.625 0.95924 6.55915 0.800269 6.44194 0.683058C6.32473 0.565848 6.16576 0.5 6 0.5C5.83424 0.5 5.67527 0.565848 5.55806 0.683058C5.44085 0.800269 5.375 0.95924 5.375 1.125V5.375L4.875 5.875H0.625C0.45924 5.875 0.300269 5.94085 0.183058 6.05806C0.065848 6.17527 0 6.33424 0 6.5C0 6.66576 0.065848 6.82473 0.183058 6.94194C0.300269 7.05915 0.45924 7.125 0.625 7.125H4.762L5.375 7.625Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_disclaimer.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_disclaimer.svgnew file mode 100644index 00000000..6fe79e71--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_disclaimer.svg@@ -0,0 +1,3 @@+<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M3.49073 1.3015L3.30873 2.1505C3.29349 2.22246 3.25769 2.28844 3.20568 2.34045C3.15368 2.39246 3.08769 2.42826 3.01573 2.4435L2.16673 2.6255C1.76473 2.7125 1.76473 3.2865 2.16673 3.3725L3.01573 3.5555C3.08769 3.57074 3.15368 3.60654 3.20568 3.65855C3.25769 3.71056 3.29349 3.77654 3.30873 3.8485L3.49073 4.6975C3.57773 5.0995 4.15173 5.0995 4.23773 4.6975L4.42073 3.8485C4.43598 3.77654 4.47177 3.71056 4.52378 3.65855C4.57579 3.60654 4.64178 3.57074 4.71373 3.5555L5.56173 3.3725C5.96373 3.2855 5.96373 2.7115 5.56173 2.6255L4.71273 2.4435C4.64083 2.42814 4.57491 2.3923 4.52292 2.34031C4.47093 2.28832 4.43509 2.2224 4.41973 2.1505L4.23773 1.3015C4.15073 0.8995 3.57673 0.8995 3.49073 1.3015ZM10.8647 13.9995C10.4853 14.0056 10.1158 13.8782 9.82067 13.6397C9.52553 13.4013 9.32347 13.0667 9.24973 12.6945L8.89273 11.0275C8.83676 10.7687 8.70738 10.5316 8.52009 10.3445C8.3328 10.1574 8.09554 10.0282 7.83673 9.9725L6.16973 9.6155C5.38873 9.4465 4.86473 8.7975 4.86473 7.9995C4.86473 7.2015 5.38873 6.5525 6.16973 6.3845L7.83673 6.0275C8.09551 5.97135 8.33267 5.84193 8.51992 5.65468C8.70716 5.46744 8.83658 5.23028 8.89273 4.9715L9.25073 3.3045C9.41773 2.5235 10.0667 1.9995 10.8647 1.9995C11.6627 1.9995 12.3117 2.5235 12.4797 3.3045L12.8367 4.9715C12.9507 5.4995 13.3647 5.9135 13.8927 6.0265L15.5597 6.3835C16.3407 6.5525 16.8647 7.2015 16.8647 7.9995C16.8647 8.7975 16.3407 9.4465 15.5597 9.6145L13.8927 9.9715C13.6337 10.0275 13.3963 10.157 13.209 10.3445C13.0217 10.5319 12.8925 10.7694 12.8367 11.0285L12.4787 12.6945C12.4054 13.0667 12.2036 13.4014 11.9086 13.6399C11.6135 13.8784 11.2441 14.0057 10.8647 13.9995ZM10.8647 3.2495C10.7667 3.2495 10.5337 3.2795 10.4727 3.5655L10.1147 5.2335C10.0081 5.72777 9.76116 6.18082 9.40361 6.53837C9.04606 6.89593 8.59301 7.14283 8.09873 7.2495L6.43173 7.6065C6.14573 7.6685 6.11473 7.9015 6.11473 7.9995C6.11473 8.0975 6.14573 8.3305 6.43173 8.3925L8.09873 8.7495C8.59301 8.85617 9.04606 9.10307 9.40361 9.46062C9.76116 9.81817 10.0081 10.2712 10.1147 10.7655L10.4727 12.4335C10.5337 12.7195 10.7667 12.7495 10.8647 12.7495C10.9627 12.7495 11.1957 12.7195 11.2567 12.4335L11.6147 10.7665C11.7212 10.272 11.9681 9.81878 12.3256 9.46103C12.6832 9.10329 13.1363 8.85624 13.6307 8.7495L15.2977 8.3925C15.5837 8.3305 15.6147 8.0975 15.6147 7.9995C15.6147 7.9015 15.5837 7.6685 15.2977 7.6065L13.6307 7.2495C13.1365 7.14283 12.6834 6.89593 12.3259 6.53837C11.9683 6.18082 11.7214 5.72777 11.6147 5.2335L11.2567 3.5655C11.1957 3.2795 10.9627 3.2495 10.8647 3.2495ZM3.30873 12.1505L3.49073 11.3015C3.57673 10.8995 4.15073 10.8995 4.23773 11.3015L4.41973 12.1505C4.43509 12.2224 4.47093 12.2883 4.52292 12.3403C4.57491 12.3923 4.64083 12.4281 4.71273 12.4435L5.56173 12.6255C5.96373 12.7115 5.96373 13.2855 5.56173 13.3725L4.71273 13.5545C4.64083 13.5699 4.57491 13.6057 4.52292 13.6577C4.47093 13.7097 4.43509 13.7756 4.41973 13.8475L4.23773 14.6965C4.15173 15.0985 3.57773 15.0985 3.49073 14.6965L3.30873 13.8475C3.29337 13.7756 3.25754 13.7097 3.20555 13.6577C3.15356 13.6057 3.08764 13.5699 3.01573 13.5545L2.16673 13.3725C1.76473 13.2865 1.76473 12.7125 2.16673 12.6255L3.01573 12.4435C3.08769 12.4283 3.15368 12.3925 3.20568 12.3405C3.25769 12.2884 3.29349 12.2225 3.30873 12.1505Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_done.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_done.svgnew file mode 100644index 00000000..f54924eb--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_done.svg@@ -0,0 +1,3 @@+<svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M6 0.5C5.21207 0.5 4.43185 0.655195 3.7039 0.956723C2.97595 1.25825 2.31451 1.70021 1.75736 2.25736C1.20021 2.81451 0.758251 3.47595 0.456723 4.2039C0.155195 4.93185 0 5.71207 0 6.5C0 7.28793 0.155195 8.06815 0.456723 8.7961C0.758251 9.52405 1.20021 10.1855 1.75736 10.7426C2.31451 11.2998 2.97595 11.7417 3.7039 12.0433C4.43185 12.3448 5.21207 12.5 6 12.5C7.5913 12.5 9.11742 11.8679 10.2426 10.7426C11.3679 9.61742 12 8.0913 12 6.5C12 4.9087 11.3679 3.38258 10.2426 2.25736C9.11742 1.13214 7.5913 0.5 6 0.5ZM5.06 8.9L2.9464 6.7856C2.85273 6.69171 2.80018 6.56446 2.80033 6.43183C2.80048 6.29921 2.85331 6.17207 2.9472 6.0784C3.04109 5.98473 3.16834 5.93218 3.30097 5.93233C3.43359 5.93248 3.56073 5.98531 3.6544 6.0792L5.3112 7.7368L8.3464 4.7008C8.44109 4.6109 8.56715 4.56153 8.69771 4.56322C8.82827 4.56492 8.95301 4.61754 9.04534 4.70986C9.13766 4.80219 9.19028 4.92693 9.19198 5.05749C9.19367 5.18805 9.1443 5.31411 9.0544 5.4088L5.5624 8.9H5.06Z" fill="#FBFBFE"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_spinner.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_spinner.svgnew file mode 100644index 00000000..fedb4724--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_spinner.svg@@ -0,0 +1,30 @@+<!-- This Source Code Form is subject to the terms of the Mozilla Public+ - License, v. 2.0. If a copy of the MPL was not distributed with this+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">+ <style>+ @media not (prefers-reduced-motion) {+ @keyframes loadingRotate {+ from { rotate: 0; } to { rotate: 360deg }+ }+ #circle-arrows {+ animation: loadingRotate 1.8s linear infinite;+ transform-origin: 50% 50%;+ }+ #hourglass {+ display: none;+ }+ }++ @media (prefers-reduced-motion) {+ #circle-arrows {+ display: none;+ }+ }+ </style>+ <path id="circle-arrows" d="M9 5.528c0 .42.508.63.804.333l2.528-2.528a.47.47 0 0 0 0-.666L9.805.14A.471.471 0 0 0 9 .472v1.866A5.756 5.756 0 0 0 2.25 8c0 .942.232 1.83.635 2.615l1.143-1.143A4.208 4.208 0 0 1 3.75 8 4.254 4.254 0 0 1 8 3.75c.345 0 .68.042 1 .122v1.656zM7 10.472v1.656c.32.08.655.122 1 .122A4.254 4.254 0 0 0 12.25 8c0-.52-.107-1.013-.279-1.474l1.143-1.143c.404.786.636 1.674.636 2.617A5.756 5.756 0 0 1 7 13.662v1.866a.47.47 0 0 1-.804.333l-2.528-2.528a.47.47 0 0 1 0-.666l2.528-2.528a.47.47 0 0 1 .804.333z"/>+ <g id="hourglass">+ <path d="M13,1 C13.5522847,1 14,1.44771525 14,2 C14,2.55228475 13.5522847,3 13,3 L12.9854217,2.99990801 C12.9950817,3.16495885 13,3.33173274 13,3.5 C13,5.24679885 10.9877318,6.01090495 10.9877318,8.0017538 C10.9877318,9.99260264 13,10.7536922 13,12.5 C13,12.6686079 12.9950617,12.8357163 12.985363,13.0010943 L13,13 C13.5522847,13 14,13.4477153 14,14 C14,14.5522847 13.5522847,15 13,15 L3,15 C2.44771525,15 2,14.5522847 2,14 C2,13.4477153 2.44771525,13 3,13 L3.01463704,13.0010943 C3.00493827,12.8357163 3,12.6686079 3,12.5 C3,10.7536922 4.9877318,9.99260264 5,8.0017538 C5.0122682,6.01090495 3,5.24679885 3,3.5 C3,3.33173274 3.00491834,3.16495885 3.01457832,2.99990801 L3,3 C2.44771525,3 2,2.55228475 2,2 C2,1.44771525 2.44771525,1 3,1 L13,1 Z M10.987,3 L5.012,3 L5.00308914,3.24815712 C5.00103707,3.33163368 5,3.4155948 5,3.5 C5,5.36125069 6.99153646,6.01774089 6.99153646,8.0017538 C6.99153646,9.98576671 5,10.6393737 5,12.5 L5.00307746,12.7513676 L5.01222201,12.9998392 L5.60191711,12.9988344 L6.0425138,12.2959826 C7.02362731,10.7653275 7.67612271,10 8,10 C8.37014547,10 9.16950644,10.9996115 10.3980829,12.9988344 L10.987778,12.9998392 C10.9958674,12.8352104 11,12.66849 11,12.5 C11,10.6393737 8.98689779,10.0147381 8.98689779,8.0017538 C8.98689779,5.98876953 11,5.36125069 11,3.5 L10.9969109,3.24815712 L10.987,3 Z"/>+ <path d="M6,4 L10,4 C8.95166016,6 8.28499349,7 8,7 C7.71500651,7 7.04833984,6 6,4 Z"/>+ </g>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_warning.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_warning.svgnew file mode 100644index 00000000..03014cea--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/altText_warning.svg@@ -0,0 +1,3 @@+<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8.78182 2.63903C8.58882 2.28803 8.25782 2.25003 8.12482 2.25003C7.99019 2.24847 7.85771 2.28393 7.74185 2.35253C7.62599 2.42113 7.5312 2.52023 7.46782 2.63903L1.97082 12.639C1.90673 12.7528 1.87406 12.8816 1.87617 13.0122C1.87828 13.1427 1.91509 13.2704 1.98282 13.382C2.04798 13.4951 2.14207 13.5888 2.25543 13.6535C2.36879 13.7182 2.49732 13.7515 2.62782 13.75H13.6218C13.7523 13.7515 13.8809 13.7182 13.9942 13.6535C14.1076 13.5888 14.2017 13.4951 14.2668 13.382C14.3346 13.2704 14.3714 13.1427 14.3735 13.0122C14.3756 12.8816 14.3429 12.7528 14.2788 12.639L8.78182 2.63903ZM6.37282 2.03703C6.75182 1.34603 7.43882 1.00003 8.12482 1.00003C8.48341 0.997985 8.83583 1.09326 9.14454 1.2757C9.45325 1.45814 9.70668 1.72092 9.87782 2.03603L15.3748 12.036C16.1078 13.369 15.1438 15 13.6228 15H2.62782C1.10682 15 0.141823 13.37 0.875823 12.037L6.37282 2.03703ZM8.74982 9.06203C8.74982 9.22779 8.68397 9.38676 8.56676 9.50397C8.44955 9.62118 8.29058 9.68703 8.12482 9.68703C7.95906 9.68703 7.80009 9.62118 7.68288 9.50397C7.56566 9.38676 7.49982 9.22779 7.49982 9.06203V5.62503C7.49982 5.45927 7.56566 5.3003 7.68288 5.18309C7.80009 5.06588 7.95906 5.00003 8.12482 5.00003C8.29058 5.00003 8.44955 5.06588 8.56676 5.18309C8.68397 5.3003 8.74982 5.45927 8.74982 5.62503V9.06203ZM7.74982 12L7.49982 11.75V11L7.74982 10.75H8.49982L8.74982 11V11.75L8.49982 12H7.74982Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-check.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-check.svgnew file mode 100644index 00000000..71cd16df--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-check.svg@@ -0,0 +1,11 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="40"+ height="40"+ viewBox="0 0 40 40">+ <path+ d="M 1.5006714,23.536225 6.8925879,18.994244 14.585721,26.037937 34.019683,4.5410479 38.499329,9.2235032 14.585721,35.458952 z"+ id="path4"+ style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.25402856;stroke-opacity:1" />+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-comment.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-comment.svgnew file mode 100644index 00000000..86f1f172--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-comment.svg@@ -0,0 +1,16 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ height="40"+ width="40"+ viewBox="0 0 40 40">+ <rect+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"+ width="33.76017"+ height="33.76017"+ x="3.119915"+ y="3.119915" />+ <path+ d="m 20.677967,8.54499 c -7.342801,0 -13.295293,4.954293 -13.295293,11.065751 0,2.088793 0.3647173,3.484376 1.575539,5.150563 L 6.0267418,31.45501 13.560595,29.011117 c 2.221262,1.387962 4.125932,1.665377 7.117372,1.665377 7.3428,0 13.295291,-4.954295 13.295291,-11.065753 0,-6.111458 -5.952491,-11.065751 -13.295291,-11.065751 z"+ style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.93031836;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-help.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-help.svgnew file mode 100644index 00000000..00938fef--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-help.svg@@ -0,0 +1,26 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="40"+ height="40"+ viewBox="0 0 40 40">+ <g+ transform="translate(0,-60)"+ id="layer1">+ <rect+ width="36.460953"+ height="34.805603"+ x="1.7695236"+ y="62.597198"+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.30826771;stroke-opacity:1" />+ <g+ transform="matrix(0.88763677,0,0,0.88763677,2.2472646,8.9890584)">+ <path+ d="M 20,64.526342 C 11.454135,64.526342 4.5263421,71.454135 4.5263421,80 4.5263421,88.545865 11.454135,95.473658 20,95.473658 28.545865,95.473658 35.473658,88.545865 35.473658,80 35.473658,71.454135 28.545865,64.526342 20,64.526342 z m -0.408738,9.488564 c 3.527079,0 6.393832,2.84061 6.393832,6.335441 0,3.494831 -2.866753,6.335441 -6.393832,6.335441 -3.527079,0 -6.393832,-2.84061 -6.393832,-6.335441 0,-3.494831 2.866753,-6.335441 6.393832,-6.335441 z"+ style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.02768445;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />+ <path+ d="m 7.2335209,71.819938 4.9702591,4.161823 c -1.679956,2.581606 -1.443939,6.069592 0.159325,8.677725 l -5.1263071,3.424463 c 0.67516,1.231452 3.0166401,3.547686 4.2331971,4.194757 l 3.907728,-4.567277 c 2.541952,1.45975 5.730694,1.392161 8.438683,-0.12614 l 3.469517,6.108336 c 1.129779,-0.44367 4.742234,-3.449633 5.416358,-5.003859 l -5.46204,-4.415541 c 1.44319,-2.424098 1.651175,-5.267515 0.557303,-7.748623 l 5.903195,-3.833951 C 33.14257,71.704996 30.616217,69.018606 29.02952,67.99296 l -4.118813,4.981678 C 22.411934,71.205099 18.900853,70.937534 16.041319,72.32916 l -3.595408,-5.322091 c -1.345962,0.579488 -4.1293881,2.921233 -5.2123901,4.812869 z m 8.1010311,3.426672 c 2.75284,-2.446266 6.769149,-2.144694 9.048998,0.420874 2.279848,2.56557 2.113919,6.596919 -0.638924,9.043185 -2.752841,2.446267 -6.775754,2.13726 -9.055604,-0.428308 -2.279851,-2.565568 -2.107313,-6.589485 0.64553,-9.035751 z"+ style="fill:#000000;fill-opacity:1;stroke:none" />+ </g>+ </g>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-insert.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-insert.svgnew file mode 100644index 00000000..519ef682--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-insert.svg@@ -0,0 +1,10 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="64"+ height="64"+ viewBox="0 0 64 64">+ <path+ d="M 32.003143,1.4044602 57.432701,62.632577 6.5672991,62.627924 z"+ style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:1.00493038;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-key.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-key.svgnew file mode 100644index 00000000..8d09d537--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-key.svg@@ -0,0 +1,11 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="64"+ height="64"+ viewBox="0 0 64 64">+ <path+ d="M 25.470843,9.4933766 C 25.30219,12.141818 30.139101,14.445969 34.704831,13.529144 40.62635,12.541995 41.398833,7.3856498 35.97505,5.777863 31.400921,4.1549155 25.157674,6.5445892 25.470843,9.4933766 z M 4.5246282,17.652051 C 4.068249,11.832873 9.2742983,5.9270407 18.437379,3.0977088 29.751911,-0.87185184 45.495663,1.4008022 53.603953,7.1104009 c 9.275765,6.1889221 7.158128,16.2079421 -3.171076,21.5939521 -1.784316,1.635815 -6.380222,1.21421 -7.068351,3.186186 -1.04003,0.972427 -1.288046,2.050158 -1.232864,3.168203 1.015111,2.000108 -3.831548,1.633216 -3.270553,3.759574 0.589477,5.264544 -0.179276,10.53738 -0.362842,15.806257 -0.492006,2.184998 1.163456,4.574232 -0.734888,6.610642 -2.482919,2.325184 -7.30604,2.189143 -9.193497,-0.274767 -2.733688,-1.740626 -8.254447,-3.615254 -6.104247,-6.339626 3.468112,-1.708686 -2.116197,-3.449897 0.431242,-5.080274 5.058402,-1.39256 -2.393215,-2.304318 -0.146889,-4.334645 3.069198,-0.977415 2.056986,-2.518352 -0.219121,-3.540397 1.876567,-1.807151 1.484149,-4.868919 -2.565455,-5.942205 0.150866,-1.805474 2.905737,-4.136876 -1.679967,-5.20493 C 10.260902,27.882167 4.6872697,22.95045 4.5245945,17.652051 z"+ id="path604"+ style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.72665179;stroke-opacity:1" />+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-newparagraph.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-newparagraph.svgnew file mode 100644index 00000000..38d2497d--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-newparagraph.svg@@ -0,0 +1,11 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="64"+ height="64"+ viewBox="0 0 64 64">+ <path+ d="M 32.003143,10.913072 57.432701,53.086929 6.567299,53.083723 z"+ id="path2985"+ style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:0.83403099;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-noicon.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-noicon.svgnew file mode 100644index 00000000..c07d1080--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-noicon.svg@@ -0,0 +1,7 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="40"+ height="40"+ viewBox="0 0 40 40">+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-note.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-note.svgnew file mode 100644index 00000000..70173651--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-note.svg@@ -0,0 +1,42 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="40"+ height="40"+ viewBox="0 0 40 40">+ <rect+ width="36.075428"+ height="31.096582"+ x="1.962286"+ y="4.4517088"+ id="rect4"+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.23004246;stroke-opacity:1" />+ <rect+ width="27.96859"+ height="1.5012145"+ x="6.0157046"+ y="10.285"+ id="rect6"+ style="fill:#000000;fill-opacity:1;stroke:none" />+ <rect+ width="27.96859"+ height="0.85783684"+ x="6.0157056"+ y="23.21689"+ id="rect8"+ style="fill:#000000;fill-opacity:1;stroke:none" />+ <rect+ width="27.96859"+ height="0.85783684"+ x="5.8130345"+ y="28.964394"+ id="rect10"+ style="fill:#000000;fill-opacity:1;stroke:none" />+ <rect+ width="27.96859"+ height="0.85783684"+ x="6.0157046"+ y="17.426493"+ id="rect12"+ style="fill:#000000;fill-opacity:1;stroke:none" />+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-paperclip.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-paperclip.svgnew file mode 100644index 00000000..2bed2250--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-paperclip.svg@@ -0,0 +1,6 @@+<!-- This Source Code Form is subject to the terms of the Mozilla Public+ - License, v. 2.0. If a copy of the MPL was not distributed with this+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" height="40" width="40">+ <path d="M9 3.5a1.5 1.5 0 0 0-3-.001v7.95C6 12.83 7.12 14 8.5 14s2.5-1.17 2.5-2.55V5.5a.5.5 0 0 1 1 0v6.03C11.955 13.427 10.405 15 8.5 15S5.044 13.426 5 11.53V3.5a2.5 2.5 0 0 1 5 0v7.003a1.5 1.5 0 0 1-3-.003v-5a.5.5 0 0 1 1 0v5a.5.5 0 0 0 1 0Z"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-paragraph.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-paragraph.svgnew file mode 100644index 00000000..6ae5212b--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-paragraph.svg@@ -0,0 +1,16 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="40"+ height="40"+ viewBox="0 0 40 40">+ <rect+ width="33.76017"+ height="33.76017"+ x="3.119915"+ y="3.119915"+ style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />+ <path+ d="m 17.692678,34.50206 0,-16.182224 c -1.930515,-0.103225 -3.455824,-0.730383 -4.57593,-1.881473 -1.12011,-1.151067 -1.680164,-2.619596 -1.680164,-4.405591 0,-1.992435 0.621995,-3.5796849 1.865988,-4.7617553 1.243989,-1.1820288 3.06352,-1.7730536 5.458598,-1.7730764 l 9.802246,0 0,2.6789711 -2.229895,0 0,26.3251486 -2.632515,0 0,-26.3251486 -3.45324,0 0,26.3251486 z"+ style="font-size:29.42051125px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.07795751;stroke-opacity:1;font-family:Arial;-inkscape-font-specification:Arial" />+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-pushpin.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-pushpin.svgnew file mode 100644index 00000000..6e0896cf--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/annotation-pushpin.svg@@ -0,0 +1,7 @@+<!-- This Source Code Form is subject to the terms of the Mozilla Public+ - License, v. 2.0. If a copy of the MPL was not distributed with this+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" height="40" width="40">+ <path d="M8.156 12.5a.99.99 0 0 0 .707-.294l.523-2.574L10.5 8.499l1.058-1.04 2.65-.601a.996.996 0 0 0 0-1.414l-3.657-3.658a.996.996 0 0 0-1.414 0l-.523 2.576L7.5 5.499 6.442 6.535l-2.65.6a.996.996 0 0 0 0 1.413l3.657 3.658a.999.999 0 0 0 .707.295z"/>+ <path d="M9.842.996c-.386 0-.77.146-1.06.44a.5.5 0 0 0-.136.251l-.492 2.43-1.008 1.03-.953.933-2.511.566a.5.5 0 0 0-.243.133 1.505 1.505 0 0 0-.002 2.123l1.477 1.477-2.768 2.767a.5.5 0 0 0 0 .707.5.5 0 0 0 .708 0l2.767-2.767 1.475 1.474a1.494 1.494 0 0 0 2.123-.002.5.5 0 0 0 .135-.254l.492-2.427 1.008-1.024.953-.937 2.511-.57a.5.5 0 0 0 .243-.132c.586-.58.583-1.543.002-2.125l-3.659-3.656A1.501 1.501 0 0 0 9.842.996Zm.05 1.025a.394.394 0 0 1 .305.12l3.658 3.657c.18.18.141.432.002.627l-2.41.545a.5.5 0 0 0-.24.131L10.15 8.142a.5.5 0 0 0-.007.006L9.029 9.283a.5.5 0 0 0-.133.25l-.48 2.36c-.082.053-.165.109-.26.109a.492.492 0 0 1-.353-.149L4.145 8.195c-.18-.18-.141-.432-.002-.627l2.41-.545a.5.5 0 0 0 .238-.13L7.85 5.857a.5.5 0 0 0 .007-.008l1.114-1.138a.5.5 0 0 0 .133-.25l.472-2.323a.619.619 0 0 1 .317-.117Z"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/checkmark.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/checkmark.svgnew file mode 100644index 00000000..20ba0d20--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/checkmark.svg@@ -0,0 +1,5 @@+<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">+ <g>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M9.79253 0.14683C10.2086 0.418844 10.3253 0.976607 10.0533 1.39263L4.56097 9.79263C4.4081 10.0264 4.15533 10.176 3.87682 10.1974C3.5983 10.2189 3.32561 10.1098 3.13874 9.90217L0.231043 6.6714C-0.10147 6.30194 -0.0715196 5.73288 0.29794 5.40037C0.667399 5.06786 1.23646 5.09781 1.56897 5.46727L3.69438 7.82883L8.54674 0.407579C8.81875 -0.00844234 9.37651 -0.125183 9.79253 0.14683Z" fill="black"/>+ </g>+</svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-actionsButton.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-actionsButton.svgnew file mode 100644index 00000000..3161438c--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-actionsButton.svg@@ -0,0 +1,3 @@+<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M7.51562 11H6.01562L5.51562 11.5V13L6.01562 13.5H7.51562L8.01562 13V11.5L7.51562 11ZM13.2656 11H11.7656L11.2656 11.5V13L11.7656 13.5H13.2656L13.7656 13V11.5L13.2656 11ZM17.5156 11H19.0156L19.5156 11.5V13L19.0156 13.5H17.5156L17.0156 13V11.5L17.5156 11Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-closeButton.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-closeButton.svgnew file mode 100644index 00000000..6fb5f6a2--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-closeButton.svg@@ -0,0 +1,3 @@+<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M13.6241 11.7759L18.3331 7.06694C18.4423 6.94811 18.5015 6.79167 18.4981 6.63028C18.4948 6.46889 18.4292 6.31502 18.3152 6.20081C18.2011 6.0866 18.0473 6.02088 17.8859 6.01736C17.7245 6.01384 17.568 6.0728 17.4491 6.18194L12.7601 10.8709H12.2721L7.58306 6.18294C7.52495 6.12489 7.45598 6.07886 7.38008 6.04747C7.30418 6.01609 7.22284 5.99995 7.14071 6C7.05857 6.00005 6.97725 6.01627 6.90139 6.04774C6.82553 6.07922 6.75661 6.12533 6.69856 6.18344C6.64052 6.24155 6.59449 6.31052 6.5631 6.38642C6.53171 6.46232 6.51558 6.54366 6.51563 6.62579C6.51572 6.79167 6.5817 6.95071 6.69906 7.06794L11.3861 11.7539V12.2449L6.69906 16.9319C6.5898 17.0508 6.53066 17.2072 6.53399 17.3686C6.53732 17.53 6.60288 17.6839 6.71696 17.7981C6.83104 17.9123 6.98483 17.978 7.14622 17.9815C7.3076 17.985 7.46411 17.9261 7.58306 17.8169L12.2701 13.1299H12.7611L17.4481 17.8169C17.5656 17.934 17.7247 17.9997 17.8906 17.9997C18.0564 17.9997 18.2155 17.934 18.3331 17.8169C18.4504 17.6996 18.5163 17.5404 18.5163 17.3744C18.5163 17.2085 18.4504 17.0493 18.3331 16.9319L13.6241 12.2229V11.7759Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-editButton.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-editButton.svgnew file mode 100644index 00000000..92b1316f--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-editButton.svg@@ -0,0 +1,8 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <g>+ <path d="M10.75 7H12.25V5.5H10.75V7Z" fill="black"/>+ <path d="M7.5 7H9V5.5H7.5V7Z" fill="black"/>+ <path d="M4.25 7H5.75V5.5H4.25V7Z" fill="black"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M2 0C0.895786 0 0 0.895786 0 2V10.5C0 11.6042 0.895786 12.5 2 12.5H3V15.25C3 15.5405 3.16778 15.805 3.43066 15.9287C3.6937 16.0523 4.00473 16.0126 4.22852 15.8271L8.27051 12.4775L13.9941 12.4961C15.1007 12.4991 15.9999 11.6033 16 10.4961V2C16 0.895786 15.1042 0 14 0H2ZM14 1.5C14.2758 1.5 14.5 1.72421 14.5 2V10.4961C14.4999 10.7727 14.2753 10.9969 13.998 10.9961L8.00195 10.9775L7.87207 10.9893C7.74389 11.0115 7.62281 11.0664 7.52148 11.1504L4.5 13.6543V11.75C4.5 11.3358 4.16421 11 3.75 11H2C1.72421 11 1.5 10.7758 1.5 10.5V2C1.5 1.72421 1.72421 1.5 2 1.5H14Z" fill="black"/>+ </g>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-popup-editButton.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-popup-editButton.svgnew file mode 100644index 00000000..e4974228--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/comment-popup-editButton.svg@@ -0,0 +1,5 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M0.0189877 13.6645L0.612989 10.4635C0.687989 10.0545 0.884989 9.6805 1.18099 9.3825L9.98199 0.5805C10.756 -0.1925 12.015 -0.1945 12.792 0.5805L14.42 2.2085C15.194 2.9835 15.194 4.2435 14.42 5.0185L5.61599 13.8215C5.31999 14.1165 4.94599 14.3125 4.53799 14.3875L1.33599 14.9815C1.26599 14.9935 1.19799 15.0005 1.12999 15.0005C0.832989 15.0005 0.544988 14.8835 0.330988 14.6695C0.0679874 14.4055 -0.0490122 14.0305 0.0189877 13.6645ZM12.472 5.1965L13.632 4.0365L13.631 3.1885L11.811 1.3675L10.963 1.3685L9.80299 2.5285L12.472 5.1965ZM4.31099 13.1585C4.47099 13.1285 4.61799 13.0515 4.73399 12.9345L11.587 6.0815L8.91899 3.4135L2.06599 10.2655C1.94899 10.3835 1.87199 10.5305 1.84099 10.6915L1.36699 13.2485L1.75199 13.6335L4.31099 13.1585Z" fill="black"/>+</svg>++<!--path d="M0.0189877 14.1645L0.612989 10.9635C0.687989 10.5545 0.884989 10.1805 1.18099 9.8825L9.98199 1.0805C10.756 0.3075 12.015 0.3055 12.792 1.0805L14.42 2.7085C15.194 3.4835 15.194 4.7435 14.42 5.5185L5.61599 14.3215C5.31999 14.6165 4.94599 14.8125 4.53799 14.8875L1.33599 15.4815C1.26599 15.4935 1.19799 15.5005 1.12999 15.5005C0.832989 15.5005 0.544988 15.3835 0.330988 15.1695C0.0679874 14.9055 -0.0490122 14.5305 0.0189877 14.1645ZM12.472 5.6965L13.632 4.5365L13.631 3.6885L11.811 1.8675L10.963 1.8685L9.80299 3.0285L12.472 5.6965ZM4.31099 13.6585C4.47099 13.6285 4.61799 13.5515 4.73399 13.4345L11.587 6.5815L8.91899 3.9135L2.06599 10.7655C1.94899 10.8835 1.87199 11.0305 1.84099 11.1915L1.36699 13.7485L1.75199 14.1335L4.31099 13.6585Z" fill="black"/-->\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorFreeHighlight.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorFreeHighlight.svgnew file mode 100644index 00000000..513f6bdf--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorFreeHighlight.svg@@ -0,0 +1,6 @@+<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M12.2 3.09C12.28 3.01 12.43 3 12.43 3C12.48 3 12.58 3.02 12.66 3.1L14.45 4.89C14.58 5.02 14.58 5.22 14.45 5.35L11.7713 8.02872L9.51628 5.77372L12.2 3.09ZM13.2658 5.12L11.7713 6.6145L10.9305 5.77372L12.425 4.27921L13.2658 5.12Z" fill="#FBFBFE"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M5.98 9.32L8.23 11.57L10.7106 9.08938L8.45562 6.83438L5.98 9.31V9.32ZM8.23 10.1558L9.29641 9.08938L8.45562 8.24859L7.38921 9.315L8.23 10.1558Z" fill="#FBFBFE"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1526 13.1816L16.2125 7.1217C16.7576 6.58919 17.05 5.8707 17.05 5.12C17.05 4.36931 16.7576 3.65084 16.2126 3.11834L14.4317 1.33747C13.8992 0.79242 13.1807 0.5 12.43 0.5C11.6643 0.5 10.9529 0.812929 10.4329 1.33289L3.68289 8.08289C3.04127 8.72452 3.00459 9.75075 3.57288 10.4363L1.29187 12.7239C1.09186 12.9245 0.990263 13.1957 1.0007 13.4685L1 14.5C0.447715 14.5 0 14.9477 0 15.5V17.5C0 18.0523 0.447715 18.5 1 18.5H16C16.5523 18.5 17 18.0523 17 17.5V15.5C17 14.9477 16.5523 14.5 16 14.5H10.2325C9.83594 14.5 9.39953 13.9347 10.1526 13.1816ZM4.39 9.85L4.9807 10.4407L2.39762 13.0312H6.63877L7.10501 12.565L7.57125 13.0312H8.88875L15.51 6.41C15.86 6.07 16.05 5.61 16.05 5.12C16.05 4.63 15.86 4.17 15.51 3.83L13.72 2.04C13.38 1.69 12.92 1.5 12.43 1.5C11.94 1.5 11.48 1.7 11.14 2.04L4.39 8.79C4.1 9.08 4.1 9.56 4.39 9.85ZM16 17.5V15.5H1V17.5H16Z" fill="#FBFBFE"/>+<path d="M15.1616 6.05136L15.1616 6.05132L15.1564 6.05645L8.40645 12.8064C8.35915 12.8537 8.29589 12.88 8.23 12.88C8.16411 12.88 8.10085 12.8537 8.05355 12.8064L7.45857 12.2115L7.10501 11.8579L6.75146 12.2115L6.03289 12.93H3.20465L5.33477 10.7937L5.6873 10.4402L5.33426 10.0871L4.74355 9.49645C4.64882 9.40171 4.64882 9.23829 4.74355 9.14355L11.4936 2.39355C11.7436 2.14354 12.0779 2 12.43 2C12.7883 2 13.1179 2.13776 13.3614 2.38839L13.3613 2.38843L13.3664 2.39355L15.1564 4.18355L15.1564 4.18359L15.1616 4.18864C15.4122 4.43211 15.55 4.76166 15.55 5.12C15.55 5.47834 15.4122 5.80789 15.1616 6.05136ZM7.87645 11.9236L8.23 12.2771L8.58355 11.9236L11.0642 9.44293L11.4177 9.08938L11.0642 8.73582L8.80918 6.48082L8.45562 6.12727L8.10207 6.48082L5.62645 8.95645L5.48 9.10289V9.31V9.32V9.52711L5.62645 9.67355L7.87645 11.9236ZM11.4177 8.38227L11.7713 8.73582L12.1248 8.38227L14.8036 5.70355C15.1288 5.37829 15.1288 4.86171 14.8036 4.53645L13.0136 2.74645C12.8186 2.55146 12.5792 2.5 12.43 2.5H12.4134L12.3967 2.50111L12.43 3C12.3967 2.50111 12.3966 2.50112 12.3965 2.50112L12.3963 2.50114L12.3957 2.50117L12.3947 2.50125L12.3924 2.50142L12.387 2.50184L12.3732 2.50311C12.3628 2.50416 12.3498 2.50567 12.3346 2.50784C12.3049 2.51208 12.2642 2.51925 12.2178 2.53146C12.1396 2.55202 11.9797 2.60317 11.8464 2.73645L9.16273 5.42016L8.80918 5.77372L9.16273 6.12727L11.4177 8.38227ZM1.5 16H15.5V17H1.5V16Z" stroke="#15141A"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorFreeText.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorFreeText.svgnew file mode 100644index 00000000..de2838ef--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorFreeText.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12 2.75H12.5V2.25V1V0.5H12H10.358C9.91165 0.5 9.47731 0.625661 9.09989 0.860442L9.09886 0.861087L8 1.54837L6.89997 0.860979L6.89911 0.860443C6.5218 0.625734 6.08748 0.5 5.642 0.5H4H3.5V1V2.25V2.75H4H5.642C5.66478 2.75 5.6885 2.75641 5.71008 2.76968C5.71023 2.76977 5.71038 2.76986 5.71053 2.76995L6.817 3.461C6.81704 3.46103 6.81709 3.46105 6.81713 3.46108C6.81713 3.46108 6.81713 3.46108 6.81714 3.46109C6.8552 3.48494 6.876 3.52285 6.876 3.567V8V12.433C6.876 12.4771 6.85523 12.515 6.81722 12.5389C6.81715 12.5389 6.81707 12.539 6.817 12.539L5.70953 13.23C5.70941 13.2301 5.70929 13.2302 5.70917 13.2303C5.68723 13.2438 5.6644 13.25 5.641 13.25H4H3.5V13.75V15V15.5H4H5.642C6.08835 15.5 6.52269 15.3743 6.90011 15.1396L6.90086 15.1391L8 14.4526L9.10003 15.14L9.10089 15.1406C9.47831 15.3753 9.91265 15.501 10.359 15.501H12H12.5V15.001V13.751V13.251H12H10.358C10.3352 13.251 10.3115 13.2446 10.2899 13.2313C10.2897 13.2312 10.2896 13.2311 10.2895 13.231L9.183 12.54C9.18298 12.54 9.18295 12.54 9.18293 12.54C9.18291 12.5399 9.18288 12.5399 9.18286 12.5399C9.14615 12.5169 9.125 12.4797 9.125 12.434V8V3.567C9.125 3.52266 9.14603 3.48441 9.18364 3.4606C9.18377 3.46052 9.1839 3.46043 9.18404 3.46035L10.2895 2.76995C10.2896 2.76985 10.2898 2.76975 10.2899 2.76966C10.3119 2.75619 10.3346 2.75 10.358 2.75H12Z" fill="black" stroke="white"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorInk.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorInk.svgnew file mode 100644index 00000000..1dadb5c0--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorInk.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M0.0189877 13.6645L0.612989 10.4635C0.687989 10.0545 0.884989 9.6805 1.18099 9.3825L9.98199 0.5805C10.756 -0.1925 12.015 -0.1945 12.792 0.5805L14.42 2.2085C15.194 2.9835 15.194 4.2435 14.42 5.0185L5.61599 13.8215C5.31999 14.1165 4.94599 14.3125 4.53799 14.3875L1.33599 14.9815C1.26599 14.9935 1.19799 15.0005 1.12999 15.0005C0.832989 15.0005 0.544988 14.8835 0.330988 14.6695C0.0679874 14.4055 -0.0490122 14.0305 0.0189877 13.6645Z" fill="white"/>+<path d="M0.0189877 13.6645L0.612989 10.4635C0.687989 10.0545 0.884989 9.6805 1.18099 9.3825L9.98199 0.5805C10.756 -0.1925 12.015 -0.1945 12.792 0.5805L14.42 2.2085C15.194 2.9835 15.194 4.2435 14.42 5.0185L5.61599 13.8215C5.31999 14.1165 4.94599 14.3125 4.53799 14.3875L1.33599 14.9815C1.26599 14.9935 1.19799 15.0005 1.12999 15.0005C0.832989 15.0005 0.544988 14.8835 0.330988 14.6695C0.0679874 14.4055 -0.0490122 14.0305 0.0189877 13.6645ZM12.472 5.1965L13.632 4.0365L13.631 3.1885L11.811 1.3675L10.963 1.3685L9.80299 2.5285L12.472 5.1965ZM4.31099 13.1585C4.47099 13.1285 4.61799 13.0515 4.73399 12.9345L11.587 6.0815L8.91899 3.4135L2.06599 10.2655C1.94899 10.3835 1.87199 10.5305 1.84099 10.6915L1.36699 13.2485L1.75199 13.6335L4.31099 13.1585Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorTextHighlight.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorTextHighlight.svgnew file mode 100644index 00000000..800340cb--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/cursor-editorTextHighlight.svg@@ -0,0 +1,8 @@+<svg width="29" height="32" viewBox="0 0 29 32" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M28 16.75C28.2761 16.75 28.5 16.5261 28.5 16.25V15C28.5 14.7239 28.2761 14.5 28 14.5H26.358C25.9117 14.5 25.4773 14.6257 25.0999 14.8604L25.0989 14.8611L24 15.5484L22.9 14.861L22.8991 14.8604C22.5218 14.6257 22.0875 14.5 21.642 14.5H20C19.7239 14.5 19.5 14.7239 19.5 15V16.25C19.5 16.5261 19.7239 16.75 20 16.75H21.642C21.6648 16.75 21.6885 16.7564 21.7101 16.7697C21.7102 16.7698 21.7104 16.7699 21.7105 16.77L22.817 17.461C22.817 17.461 22.8171 17.4611 22.8171 17.4611C22.8171 17.4611 22.8171 17.4611 22.8171 17.4611C22.8552 17.4849 22.876 17.5229 22.876 17.567V22.625V27.683C22.876 27.7271 22.8552 27.765 22.8172 27.7889C22.8171 27.7889 22.8171 27.789 22.817 27.789L21.7095 28.48C21.7094 28.4801 21.7093 28.4802 21.7092 28.4803C21.6872 28.4938 21.6644 28.5 21.641 28.5H20C19.7239 28.5 19.5 28.7239 19.5 29V30.25C19.5 30.5261 19.7239 30.75 20 30.75H21.642C22.0883 30.75 22.5227 30.6243 22.9001 30.3896L22.9009 30.3891L24 29.7026L25.1 30.39L25.1009 30.3906C25.4783 30.6253 25.9127 30.751 26.359 30.751H28C28.2761 30.751 28.5 30.5271 28.5 30.251V29.001C28.5 28.7249 28.2761 28.501 28 28.501H26.358C26.3352 28.501 26.3115 28.4946 26.2899 28.4813C26.2897 28.4812 26.2896 28.4811 26.2895 28.481L25.183 27.79C25.183 27.79 25.183 27.79 25.1829 27.79C25.1829 27.7899 25.1829 27.7899 25.1829 27.7899C25.1462 27.7669 25.125 27.7297 25.125 27.684V22.625V17.567C25.125 17.5227 25.146 17.4844 25.1836 17.4606C25.1838 17.4605 25.1839 17.4604 25.184 17.4603L26.2895 16.77C26.2896 16.7699 26.2898 16.7698 26.2899 16.7697C26.3119 16.7562 26.3346 16.75 26.358 16.75H28Z" fill="black" stroke="#FBFBFE" stroke-linejoin="round"/>+<path d="M24.625 17.567C24.625 17.35 24.735 17.152 24.918 17.037L26.026 16.345C26.126 16.283 26.24 16.25 26.358 16.25H28V15H26.358C26.006 15 25.663 15.099 25.364 15.285L24.256 15.978C24.161 16.037 24.081 16.113 24 16.187C23.918 16.113 23.839 16.037 23.744 15.978L22.635 15.285C22.336 15.099 21.993 15 21.642 15H20V16.25H21.642C21.759 16.25 21.874 16.283 21.974 16.345L23.082 17.037C23.266 17.152 23.376 17.35 23.376 17.567V22.625V27.683C23.376 27.9 23.266 28.098 23.082 28.213L21.973 28.905C21.873 28.967 21.759 29 21.641 29H20V30.25H21.642C21.994 30.25 22.337 30.151 22.636 29.965L23.744 29.273C23.84 29.213 23.919 29.137 24 29.064C24.081 29.137 24.161 29.213 24.256 29.273L25.365 29.966C25.664 30.152 26.007 30.251 26.359 30.251H28V29.001H26.358C26.241 29.001 26.126 28.968 26.026 28.906L24.918 28.214C24.734 28.099 24.625 27.901 24.625 27.684V22.625V17.567Z" fill="black"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M12.2 2.59C12.28 2.51 12.43 2.5 12.43 2.5C12.48 2.5 12.58 2.52 12.66 2.6L14.45 4.39C14.58 4.52 14.58 4.72 14.45 4.85L11.7713 7.52872L9.51628 5.27372L12.2 2.59ZM13.2658 4.62L11.7713 6.1145L10.9305 5.27372L12.425 3.77921L13.2658 4.62Z" fill="#FBFBFE"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M5.98 8.82L8.23 11.07L10.7106 8.58938L8.45562 6.33438L5.98 8.81V8.82ZM8.23 9.65579L9.29641 8.58938L8.45562 7.74859L7.38921 8.815L8.23 9.65579Z" fill="#FBFBFE"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1526 12.6816L16.2125 6.6217C16.7576 6.08919 17.05 5.3707 17.05 4.62C17.05 3.86931 16.7576 3.15084 16.2126 2.61834L14.4317 0.837474C13.8992 0.29242 13.1807 0 12.43 0C11.6643 0 10.9529 0.312929 10.4329 0.832893L3.68289 7.58289C3.04127 8.22452 3.00459 9.25075 3.57288 9.93634L1.29187 12.2239C1.09186 12.4245 0.990263 12.6957 1.0007 12.9685L1 14C0.447715 14 0 14.4477 0 15V17C0 17.5523 0.447715 18 1 18H16C16.5523 18 17 17.5523 17 17V15C17 14.4477 16.5523 14 16 14H10.2325C9.83594 14 9.39953 13.4347 10.1526 12.6816ZM4.39 9.35L4.9807 9.9407L2.39762 12.5312H6.63877L7.10501 12.065L7.57125 12.5312H8.88875L15.51 5.91C15.86 5.57 16.05 5.11 16.05 4.62C16.05 4.13 15.86 3.67 15.51 3.33L13.72 1.54C13.38 1.19 12.92 1 12.43 1C11.94 1 11.48 1.2 11.14 1.54L4.39 8.29C4.1 8.58 4.1 9.06 4.39 9.35ZM16 17V15H1V17H16Z" fill="#FBFBFE"/>+<path d="M15.1616 5.55136L15.1616 5.55132L15.1564 5.55645L8.40645 12.3064C8.35915 12.3537 8.29589 12.38 8.23 12.38C8.16411 12.38 8.10085 12.3537 8.05355 12.3064L7.45857 11.7115L7.10501 11.3579L6.75146 11.7115L6.03289 12.43H3.20465L5.33477 10.2937L5.6873 9.94019L5.33426 9.58715L4.74355 8.99645C4.64882 8.90171 4.64882 8.73829 4.74355 8.64355L11.4936 1.89355C11.7436 1.64354 12.0779 1.5 12.43 1.5C12.7883 1.5 13.1179 1.63776 13.3614 1.88839L13.3613 1.88843L13.3664 1.89355L15.1564 3.68355L15.1564 3.68359L15.1616 3.68864C15.4122 3.93211 15.55 4.26166 15.55 4.62C15.55 4.97834 15.4122 5.30789 15.1616 5.55136ZM5.48 8.82V9.02711L5.62645 9.17355L7.87645 11.4236L8.23 11.7771L8.58355 11.4236L11.0642 8.94293L11.4177 8.58938L11.0642 8.23582L8.80918 5.98082L8.45562 5.62727L8.10207 5.98082L5.62645 8.45645L5.48 8.60289V8.81V8.82ZM11.4177 7.88227L11.7713 8.23582L12.1248 7.88227L14.8036 5.20355C15.1288 4.87829 15.1288 4.36171 14.8036 4.03645L13.0136 2.24645C12.8186 2.05146 12.5792 2 12.43 2H12.4134L12.3967 2.00111L12.43 2.5C12.3967 2.00111 12.3966 2.00112 12.3965 2.00112L12.3963 2.00114L12.3957 2.00117L12.3947 2.00125L12.3924 2.00142L12.387 2.00184L12.3732 2.00311C12.3628 2.00416 12.3498 2.00567 12.3346 2.00784C12.3049 2.01208 12.2642 2.01925 12.2178 2.03146C12.1396 2.05202 11.9797 2.10317 11.8464 2.23645L9.16273 4.92016L8.80918 5.27372L9.16273 5.62727L11.4177 7.88227ZM1.5 16.5V15.5H15.5V16.5H1.5Z" stroke="#15141A"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/editor-toolbar-delete.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/editor-toolbar-delete.svgnew file mode 100644index 00000000..f84520d8--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/editor-toolbar-delete.svg@@ -0,0 +1,5 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path fill-rule="evenodd" clip-rule="evenodd"+ d="M11 3H13.6C14 3 14.3 3.3 14.3 3.6C14.3 3.9 14 4.2 13.7 4.2H13.3V14C13.3 15.1 12.4 16 11.3 16H4.80005C3.70005 16 2.80005 15.1 2.80005 14V4.2H2.40005C2.00005 4.2 1.80005 4 1.80005 3.6C1.80005 3.2 2.00005 3 2.40005 3H5.00005V2C5.00005 0.9 5.90005 0 7.00005 0H9.00005C10.1 0 11 0.9 11 2V3ZM6.90005 1.2L6.30005 1.8V3H9.80005V1.8L9.20005 1.2H6.90005ZM11.4 14.7L12 14.1V4.2H4.00005V14.1L4.60005 14.7H11.4ZM7.00005 12.4C7.00005 12.7 6.70005 13 6.40005 13C6.10005 13 5.80005 12.7 5.80005 12.4V7.6C5.70005 7.3 6.00005 7 6.40005 7C6.80005 7 7.00005 7.3 7.00005 7.6V12.4ZM10.2001 12.4C10.2001 12.7 9.90006 13 9.60006 13C9.30006 13 9.00006 12.7 9.00006 12.4V7.6C9.00006 7.3 9.30006 7 9.60006 7C9.90006 7 10.2001 7.3 10.2001 7.6V12.4Z"+ fill="black" />+</svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/editor-toolbar-edit.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/editor-toolbar-edit.svgnew file mode 100644index 00000000..692de38d--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/editor-toolbar-edit.svg@@ -0,0 +1,3 @@+<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M14.9815 14.3461L14.3875 11.1451C14.3125 10.7361 14.1155 10.3621 13.8195 10.0641L5.0185 1.26214C4.2445 0.489141 2.9855 0.487141 2.2085 1.26214L0.5805 2.89014C-0.1935 3.66514 -0.1935 4.92514 0.5805 5.70014L9.3845 14.5031C9.6805 14.7981 10.0545 14.9941 10.4625 15.0691L13.6645 15.6631C13.7345 15.6751 13.8025 15.6821 13.8705 15.6821C14.1675 15.6821 14.4555 15.5651 14.6695 15.3511C14.9325 15.0871 15.0495 14.7121 14.9815 14.3461ZM2.5285 5.87814L1.3685 4.71814L1.3695 3.87014L3.1895 2.04914L4.0375 2.05014L5.1975 3.21014L2.5285 5.87814ZM10.6895 13.8401C10.5295 13.8101 10.3825 13.7331 10.2665 13.6161L3.4135 6.76314L6.0815 4.09514L12.9345 10.9471C13.0515 11.0651 13.1285 11.2121 13.1595 11.3731L13.6335 13.9301L13.2485 14.3151L10.6895 13.8401Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/findbarButton-next.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/findbarButton-next.svgnew file mode 100644index 00000000..8cb39bec--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/findbarButton-next.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.999 8.352L5.534 13.818C5.41551 13.9303 5.25786 13.9918 5.09466 13.9895C4.93146 13.9872 4.77561 13.9212 4.66033 13.8057C4.54505 13.6902 4.47945 13.5342 4.47752 13.3709C4.47559 13.2077 4.53748 13.0502 4.65 12.932L9.585 7.998L4.651 3.067C4.53862 2.94864 4.47691 2.79106 4.47903 2.62786C4.48114 2.46466 4.54692 2.30874 4.66233 2.19333C4.77774 2.07792 4.93366 2.01215 5.09686 2.01003C5.26006 2.00792 5.41763 2.06962 5.536 2.182L11 7.647L10.999 8.352Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/findbarButton-previous.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/findbarButton-previous.svgnew file mode 100644index 00000000..b610879d--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/findbarButton-previous.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M5.001 8.352L10.466 13.818C10.5845 13.9303 10.7421 13.9918 10.9053 13.9895C11.0685 13.9872 11.2244 13.9212 11.3397 13.8057C11.4549 13.6902 11.5205 13.5342 11.5225 13.3709C11.5244 13.2077 11.4625 13.0502 11.35 12.932L6.416 7.999L11.349 3.067C11.4614 2.94864 11.5231 2.79106 11.521 2.62786C11.5189 2.46466 11.4531 2.30874 11.3377 2.19333C11.2223 2.07792 11.0663 2.01215 10.9031 2.01003C10.7399 2.00792 10.5824 2.06962 10.464 2.182L5 7.647L5.001 8.352Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/gv-toolbarButton-download.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/gv-toolbarButton-download.svgnew file mode 100644index 00000000..d56cf3ce--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/gv-toolbarButton-download.svg@@ -0,0 +1,3 @@+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M16.969 10.059C17.262 9.766 17.737 9.766 18.03 10.059C18.323 10.352 18.323 10.827 18.03 11.12L12.15 17H11.35L5.46896 11.12C5.17596 10.827 5.17596 10.352 5.46896 10.059C5.76196 9.766 6.23696 9.766 6.52996 10.059L11 14.529V2.75C11 2.336 11.336 2 11.75 2C12.164 2 12.5 2.336 12.499 2.75V14.529L16.969 10.059ZM4.98193 19.7L5.78193 20.5H17.7169L18.5169 19.7V17.75C18.5169 17.336 18.8529 17 19.2669 17C19.6809 17 20.0169 17.336 20.0169 17.75V19.5C20.0169 20.881 18.8979 22 17.5169 22H5.98193C4.60093 22 3.48193 20.881 3.48193 19.5V17.75C3.48193 17.336 3.81793 17 4.23193 17C4.64593 17 4.98193 17.336 4.98193 17.75V19.7Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/loading-icon.gif b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/loading-icon.gifnew file mode 100644index 00000000..1c72ebb5Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/loading-icon.gif differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/loading.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/loading.svgnew file mode 100644index 00000000..0a15ff68--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/loading.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" style="animation:spinLoadingIcon 1s steps(12,end) infinite"><style>@keyframes spinLoadingIcon{to{transform:rotate(360deg)}}</style><path d="M7 3V1s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z"/><path d="M4.63 4.1l-1-1.73S3.13 1.5 4 1c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 1.37c-.87.57-1.37-.37-1.37-.37z" fill-opacity=".93"/><path d="M3.1 6.37l-1.73-1S.5 4.87 1 4c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 1.37c-.5.87-1.37.37-1.37.37z" fill-opacity=".86"/><path d="M3 9H1S0 9 0 8s1-1 1-1h2s1 0 1 1-1 1-1 1z" fill-opacity=".79"/><path d="M4.1 11.37l-1.73 1S1.5 12.87 1 12c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z" fill-opacity=".72"/><path d="M3.63 13.56l1-1.73s.5-.87 1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z" fill-opacity=".65"/><path d="M7 15v-2s0-1 1-1 1 1 1 1v2s0 1-1 1-1-1-1-1z" fill-opacity=".58"/><path d="M10.63 14.56l-1-1.73s-.5-.87.37-1.37c.87-.5 1.37.37 1.37.37l1 1.73s.5.87-.37 1.37c-.87.5-1.37-.37-1.37-.37z" fill-opacity=".51"/><path d="M13.56 12.37l-1.73-1s-.87-.5-.37-1.37c.5-.87 1.37-.37 1.37-.37l1.73 1s.87.5.37 1.37c-.5.87-1.37.37-1.37.37z" fill-opacity=".44"/><path d="M15 9h-2s-1 0-1-1 1-1 1-1h2s1 0 1 1-1 1-1 1z" fill-opacity=".37"/><path d="M14.56 5.37l-1.73 1s-.87.5-1.37-.37c-.5-.87.37-1.37.37-1.37l1.73-1s.87-.5 1.37.37c.5.87-.37 1.37-.37 1.37z" fill-opacity=".3"/><path d="M9.64 3.1l.98-1.66s.5-.874 1.37-.37c.87.5.37 1.37.37 1.37l-1 1.73s-.5.87-1.37.37c-.87-.5-.37-1.37-.37-1.37z" fill-opacity=".23"/></svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_closingButton.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_closingButton.svgnew file mode 100644index 00000000..8a40715d--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_closingButton.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M7.85822 8.84922L4.85322 11.8542C4.75891 11.9453 4.63261 11.9957 4.50151 11.9946C4.37042 11.9934 4.24501 11.9408 4.15231 11.8481C4.0596 11.7554 4.00702 11.63 4.00588 11.4989C4.00474 11.3678 4.05514 11.2415 4.14622 11.1472L7.15122 8.14222V7.85922L4.14622 4.85322C4.05514 4.75891 4.00474 4.63261 4.00588 4.50151C4.00702 4.37042 4.0596 4.24501 4.15231 4.15231C4.24501 4.0596 4.37042 4.00702 4.50151 4.00588C4.63261 4.00474 4.75891 4.05514 4.85322 4.14622L7.85822 7.15122H8.14122L11.1462 4.14622C11.2405 4.05514 11.3668 4.00474 11.4979 4.00588C11.629 4.00702 11.7544 4.0596 11.8471 4.15231C11.9398 4.24501 11.9924 4.37042 11.9936 4.50151C11.9947 4.63261 11.9443 4.75891 11.8532 4.85322L8.84822 7.85922V8.14222L11.8532 11.1472C11.9443 11.2415 11.9947 11.3678 11.9936 11.4989C11.9924 11.63 11.9398 11.7554 11.8471 11.8481C11.7544 11.9408 11.629 11.9934 11.4979 11.9946C11.3668 11.9957 11.2405 11.9453 11.1462 11.8542L8.14122 8.84922L8.14222 8.85022L7.85822 8.84922Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_info.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_info.svgnew file mode 100644index 00000000..b12b6be4--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_info.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M7.625 0.5C6.64009 0.5 5.66482 0.693993 4.75487 1.0709C3.84493 1.44781 3.01814 2.00026 2.3217 2.6967C1.62526 3.39314 1.07281 4.21993 0.695904 5.12987C0.318993 6.03982 0.125 7.01509 0.125 8C0.125 8.98491 0.318993 9.96018 0.695904 10.8701C1.07281 11.7801 1.62526 12.6069 2.3217 13.3033C3.01814 13.9997 3.84493 14.5522 4.75487 14.9291C5.66482 15.306 6.64009 15.5 7.625 15.5C9.61412 15.5 11.5218 14.7098 12.9283 13.3033C14.3348 11.8968 15.125 9.98912 15.125 8C15.125 6.01088 14.3348 4.10322 12.9283 2.6967C11.5218 1.29018 9.61412 0.5 7.625 0.5ZM8.25 11.375C8.25 11.5408 8.18415 11.6997 8.06694 11.8169C7.94973 11.9342 7.79076 12 7.625 12C7.45924 12 7.30027 11.9342 7.18306 11.8169C7.06585 11.6997 7 11.5408 7 11.375V6.938C7 6.77224 7.06585 6.61327 7.18306 6.49606C7.30027 6.37885 7.45924 6.313 7.625 6.313C7.79076 6.313 7.94973 6.37885 8.06694 6.49606C8.18415 6.61327 8.25 6.77224 8.25 6.938V11.375ZM8.25 5L8 5.25H7.25L7 5V4.25L7.25 4H8L8.25 4.25V5Z" fill="black" />+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_warning.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_warning.svgnew file mode 100644index 00000000..011cfcf3--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/messageBar_warning.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M14.8748 12.037L9.37782 2.037C8.99682 1.346 8.31082 1 7.62482 1C6.93882 1 6.25282 1.346 5.87282 2.037L0.375823 12.037C-0.358177 13.37 0.606823 15 2.12782 15H13.1228C14.6428 15 15.6078 13.37 14.8748 12.037ZM8.24982 11.75L7.99982 12H7.24982L6.99982 11.75V11L7.24982 10.75H7.99982L8.24982 11V11.75ZM8.24982 9.062C8.24982 9.22776 8.18398 9.38673 8.06677 9.50394C7.94955 9.62115 7.79058 9.687 7.62482 9.687C7.45906 9.687 7.30009 9.62115 7.18288 9.50394C7.06567 9.38673 6.99982 9.22776 6.99982 9.062V5.625C6.99982 5.45924 7.06567 5.30027 7.18288 5.18306C7.30009 5.06585 7.45906 5 7.62482 5C7.79058 5 7.94955 5.06585 8.06677 5.18306C8.18398 5.30027 8.24982 5.45924 8.24982 5.625V9.062Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_closeButton.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_closeButton.svgnew file mode 100644index 00000000..92fc5ecf--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_closeButton.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M14 3.06055L9.06055 8L14 12.9385L12.9395 14L8 9.06055L3.06152 14L2.00098 12.9395L6.93848 8L2 3.06152L3.06055 2.00098L7.99902 6.93945L12.9385 2L14 3.06055Z" fill="black"/>+</svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_selected.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_selected.svgnew file mode 100644index 00000000..32c48164--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_selected.svg@@ -0,0 +1,7 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <mask id="mask">+ <rect width="16" height="16" rx="2" fill="white"/>+ <path d="M12 8L4 8" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>+ </mask>+ <rect width="16" height="16" fill="black" mask="url(#mask)"/>+</svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_viewArrow.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_viewArrow.svgnew file mode 100644index 00000000..a4932d42--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_viewArrow.svg@@ -0,0 +1,3 @@+<svg width="8" height="10" viewBox="0 0 8 10" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M4.23336 7.46639L7.84736 3.85339C7.89401 3.8071 7.93104 3.75203 7.9563 3.69136C7.98157 3.63069 7.99458 3.56562 7.99458 3.49989C7.99458 3.43417 7.98157 3.3691 7.9563 3.30843C7.93104 3.24776 7.89401 3.19269 7.84736 3.14639C7.75359 3.05266 7.62644 3 7.49386 3C7.36127 3 7.23412 3.05266 7.14036 3.14639L3.99236 6.29339L0.847356 3.14739C0.753055 3.05631 0.626754 3.00592 0.495655 3.00706C0.364557 3.0082 0.239151 3.06078 0.146447 3.15348C0.0537425 3.24619 0.00115811 3.37159 1.89013e-05 3.50269C-0.00112031 3.63379 0.0492769 3.76009 0.140356 3.85439L3.75236 7.46739L4.23336 7.46639Z" fill="black"/>+</svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_viewButton.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_viewButton.svgnew file mode 100644index 00000000..24c518d4--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/pages_viewButton.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3 7H5C5.53043 7 6.03914 6.78929 6.41421 6.41421C6.78929 6.03914 7 5.53043 7 5V3C7 2.46957 6.78929 1.96086 6.41421 1.58579C6.03914 1.21071 5.53043 1 5 1H3C2.46957 1 1.96086 1.21071 1.58579 1.58579C1.21071 1.96086 1 2.46957 1 3V5C1 5.53043 1.21071 6.03914 1.58579 6.41421C1.96086 6.78929 2.46957 7 3 7ZM11 7H13C13.5304 7 14.0391 6.78929 14.4142 6.41421C14.7893 6.03914 15 5.53043 15 5V3C15 2.46957 14.7893 1.96086 14.4142 1.58579C14.0391 1.21071 13.5304 1 13 1H11C10.4696 1 9.96086 1.21071 9.58579 1.58579C9.21071 1.96086 9 2.46957 9 3V5C9 5.53043 9.21071 6.03914 9.58579 6.41421C9.96086 6.78929 10.4696 7 11 7ZM5 15H3C2.46957 15 1.96086 14.7893 1.58579 14.4142C1.21071 14.0391 1 13.5304 1 13V11C1 10.4696 1.21071 9.96086 1.58579 9.58579C1.96086 9.21071 2.46957 9 3 9H5C5.53043 9 6.03914 9.21071 6.41421 9.58579C6.78929 9.96086 7 10.4696 7 11V13C7 13.5304 6.78929 14.0391 6.41421 14.4142C6.03914 14.7893 5.53043 15 5 15ZM11 15H13C13.5304 15 14.0391 14.7893 14.4142 14.4142C14.7893 14.0391 15 13.5304 15 13V11C15 10.4696 14.7893 9.96086 14.4142 9.58579C14.0391 9.21071 13.5304 9 13 9H11C10.4696 9 9.96086 9.21071 9.58579 9.58579C9.21071 9.96086 9 10.4696 9 11V13C9 13.5304 9.21071 14.0391 9.58579 14.4142C9.96086 14.7893 10.4696 15 11 15Z" fill="black"/>+</svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-documentProperties.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-documentProperties.svgnew file mode 100644index 00000000..dd3917b9--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-documentProperties.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8ZM8.75 4V5.5H7.25V4H8.75ZM8.75 12V7H7.25V12H8.75Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-firstPage.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-firstPage.svgnew file mode 100644index 00000000..f5c917f1--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-firstPage.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M14 3.5H2V5H14V3.5ZM8 8.811L12.939 13.75L14.001 12.689L8.531 7.219C8.238 6.926 7.763 6.926 7.47 7.219L2 12.689L3.061 13.75L8 8.811Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-handTool.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-handTool.svgnew file mode 100644index 00000000..b7073b59--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-handTool.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M7.75 2.125C7.75 1.78021 8.03021 1.5 8.375 1.5C8.71979 1.5 9 1.78021 9 2.125V3.125V8H10.5V3.125C10.5 2.78021 10.7802 2.5 11.125 2.5C11.4698 2.5 11.75 2.78021 11.75 3.125V4.625V8H13.25V4.625C13.25 4.28021 13.5302 4 13.875 4C14.2198 4 14.5 4.28021 14.5 4.625V12.0188L13.3802 13.6628C13.2954 13.7872 13.25 13.9344 13.25 14.085V16H14.75V14.3162L15.8698 12.6722C15.9546 12.5478 16 12.4006 16 12.25V4.625C16 3.45179 15.0482 2.5 13.875 2.5C13.6346 2.5 13.4035 2.53996 13.188 2.6136C12.959 1.68724 12.1219 1 11.125 1C10.8235 1 10.5366 1.06286 10.2768 1.17618C9.9281 0.478968 9.20726 0 8.375 0C7.54274 0 6.8219 0.478968 6.47323 1.17618C6.21337 1.06286 5.9265 1 5.625 1C4.45179 1 3.5 1.95179 3.5 3.125V7.25317C2.66504 6.54282 1.41035 6.58199 0.621672 7.37067C-0.208221 8.20056 -0.208221 9.54644 0.621672 10.3763L0.62188 10.3765L5.499 15.2498V16H6.999V14.939C6.999 14.74 6.9199 14.5491 6.77912 14.4085L1.68233 9.31567C1.43823 9.07156 1.43823 8.67544 1.68233 8.43133C1.92644 8.18722 2.32257 8.18722 2.56667 8.43133L3.71967 9.58433C3.93417 9.79883 4.25676 9.863 4.53701 9.74691C4.81727 9.63082 5 9.35735 5 9.054V3.125C5 2.78021 5.28022 2.5 5.625 2.5C5.96921 2.5 6.24906 2.77927 6.25 3.12326V8H7.75L7.75 3.125L7.75 3.12178V2.125Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-lastPage.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-lastPage.svgnew file mode 100644index 00000000..c04f6507--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-lastPage.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8 8.189L12.939 3.25L14 4.311L8.531 9.781C8.238 10.074 7.763 10.074 7.47 9.781L2 4.311L3.061 3.25L8 8.189ZM14 13.5V12H2V13.5H14Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-rotateCcw.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-rotateCcw.svgnew file mode 100644index 00000000..da73a1b1--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-rotateCcw.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M3.4105 4.83612L4.77001 6.19601C5.06701 6.49201 4.85701 7.00001 4.43701 7.00001H0.862006C0.602006 7.00001 0.391006 6.78901 0.391006 6.52901V2.95401C0.391006 2.53401 0.899006 2.32401 1.19601 2.62101L2.32796 3.75328C3.67958 1.78973 5.9401 0.5 8.5 0.5C12.636 0.5 16 3.864 16 8C16 12.136 12.636 15.5 8.5 15.5C4.704 15.5 1.566 12.663 1.075 9H2.59C3.068 11.833 5.532 14 8.5 14C11.809 14 14.5 11.309 14.5 8C14.5 4.691 11.809 2 8.5 2C6.35262 2 4.46893 3.13503 3.4105 4.83612Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-rotateCw.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-rotateCw.svgnew file mode 100644index 00000000..c41ce736--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-rotateCw.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.5895 4.83613L11.23 6.19601C10.933 6.49201 11.143 7.00001 11.563 7.00001H15.138C15.398 7.00001 15.609 6.78901 15.609 6.52901V2.95401C15.609 2.53401 15.101 2.32401 14.804 2.62101L13.672 3.75328C12.3204 1.78973 10.0599 0.5 7.5 0.5C3.364 0.5 0 3.864 0 8C0 12.136 3.364 15.5 7.5 15.5C11.296 15.5 14.434 12.663 14.925 9H13.41C12.932 11.833 10.468 14 7.5 14C4.191 14 1.5 11.309 1.5 8C1.5 4.691 4.191 2 7.5 2C9.64738 2 11.5311 3.13503 12.5895 4.83613Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollHorizontal.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollHorizontal.svgnew file mode 100644index 00000000..fb440b94--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollHorizontal.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M3 3.78C3 2.7621 2.13279 2.11834 1.25 2.01476V2H1V3.5C1.18133 3.5 1.32279 3.5609 1.40708 3.63029C1.48961 3.69823 1.5 3.75458 1.5 3.78V11.72C1.5 11.7454 1.48961 11.8018 1.40708 11.8697C1.32279 11.9391 1.18133 12 1 12V13.5H1.25V13.4852C2.13279 13.3817 3 12.7379 3 11.72V3.78ZM10.5 4C10.5 3.72386 10.2761 3.5 10 3.5H6.5C6.22386 3.5 6 3.72386 6 4V11.5C6 11.7761 6.22386 12 6.5 12H10C10.2761 12 10.5 11.7761 10.5 11.5V4ZM10 2C11.1046 2 12 2.89543 12 4V11.5C12 12.6046 11.1046 13.5 10 13.5H6.5C5.39543 13.5 4.5 12.6046 4.5 11.5V4C4.5 2.89543 5.39543 2 6.5 2H10ZM15.5 2H15.25V2.01476C14.3672 2.11834 13.5 2.7621 13.5 3.78V11.72C13.5 12.7379 14.3672 13.3817 15.25 13.4852V13.5H15.5V12C15.3187 12 15.1772 11.9391 15.0929 11.8697C15.0104 11.8018 15 11.7454 15 11.72V3.78C15 3.75458 15.0104 3.69823 15.0929 3.63029C15.1772 3.5609 15.3187 3.5 15.5 3.5V2Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollPage.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollPage.svgnew file mode 100644index 00000000..64a9f500--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollPage.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M3.5 2C3.5 1.72421 3.72421 1.5 4 1.5H12C12.2758 1.5 12.5 1.72421 12.5 2V14C12.5 14.2758 12.2758 14.5 12 14.5H4C3.72421 14.5 3.5 14.2758 3.5 14V2ZM4 0C2.89579 0 2 0.895786 2 2V14C2 15.1042 2.89579 16 4 16H12C13.1042 16 14 15.1042 14 14V2C14 0.895786 13.1042 0 12 0H4ZM5.89301 6H7.25V10H5.89301C5.54301 10 5.36801 10.423 5.61501 10.67L7.72101 12.776C7.87401 12.929 8.12301 12.929 8.27601 12.776L10.383 10.669C10.63 10.422 10.455 9.99902 10.105 9.99902H8.75V6H10.106C10.456 6 10.632 5.577 10.383 5.331L8.27601 3.224C8.12301 3.071 7.87401 3.071 7.72101 3.224L5.61501 5.33C5.36801 5.577 5.54301 6 5.89301 6Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollVertical.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollVertical.svgnew file mode 100644index 00000000..dc7e8052--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollVertical.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2 1V1.25H2.01476C2.11834 2.13279 2.7621 3 3.78 3H11.72C12.7379 3 13.3817 2.13279 13.4852 1.25H13.5V1H12C12 1.18133 11.9391 1.32279 11.8697 1.40708C11.8018 1.48961 11.7454 1.5 11.72 1.5H3.78C3.75458 1.5 3.69823 1.48961 3.63029 1.40708C3.5609 1.32279 3.5 1.18133 3.5 1H2ZM4 6C3.72386 6 3.5 6.22386 3.5 6.5V10C3.5 10.2761 3.72386 10.5 4 10.5H11.5C11.7761 10.5 12 10.2761 12 10V6.5C12 6.22386 11.7761 6 11.5 6H4ZM2 6.5C2 5.39543 2.89543 4.5 4 4.5H11.5C12.6046 4.5 13.5 5.39543 13.5 6.5V10C13.5 11.1046 12.6046 12 11.5 12H4C2.89543 12 2 11.1046 2 10V6.5ZM3.78 13.5C2.7621 13.5 2.11834 14.3672 2.01476 15.25H2V15.5H3.5C3.5 15.3187 3.5609 15.1772 3.63029 15.0929C3.69823 15.0104 3.75458 15 3.78 15H11.72C11.7454 15 11.8018 15.0104 11.8697 15.0929C11.9391 15.1772 12 15.3187 12 15.5H13.5V15.25H13.4852C13.3817 14.3672 12.7379 13.5 11.72 13.5H3.78Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollWrapped.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollWrapped.svgnew file mode 100644index 00000000..75fe26bc--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-scrollWrapped.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2.5 1C2.5 1.27579 2.72421 1.5 3 1.5H5C5.27579 1.5 5.5 1.27579 5.5 1H7C7 2.10421 6.10421 3 5 3H3C1.89579 3 1 2.10421 1 1H2.5ZM2.5 6C2.5 5.72421 2.72421 5.5 3 5.5H5C5.27579 5.5 5.5 5.72421 5.5 6V10C5.5 10.2758 5.27579 10.5 5 10.5H3C2.72421 10.5 2.5 10.2758 2.5 10V6ZM3 4C1.89579 4 1 4.89579 1 6V10C1 11.1042 1.89579 12 3 12H5C6.10421 12 7 11.1042 7 10V6C7 4.89579 6.10421 4 5 4H3ZM10 6C10 5.72421 10.2242 5.5 10.5 5.5H12.5C12.7758 5.5 13 5.72421 13 6V10C13 10.2758 12.7758 10.5 12.5 10.5H10.5C10.2242 10.5 10 10.2758 10 10V6ZM10.5 4C9.39579 4 8.5 4.89579 8.5 6V10C8.5 11.1042 9.39579 12 10.5 12H12.5C13.6042 12 14.5 11.1042 14.5 10V6C14.5 4.89579 13.6042 4 12.5 4H10.5ZM3 14.5C2.72421 14.5 2.5 14.7242 2.5 15H1C1 13.8958 1.89579 13 3 13H5C6.10421 13 7 13.8958 7 15H5.5C5.5 14.7242 5.27579 14.5 5 14.5H3ZM10 15C10 14.7242 10.2242 14.5 10.5 14.5H12.5C12.7758 14.5 13 14.7242 13 15H14.5C14.5 13.8958 13.6042 13 12.5 13H10.5C9.39579 13 8.5 13.8958 8.5 15H10ZM10.5 1.5C10.2242 1.5 10 1.27579 10 1H8.5C8.5 2.10421 9.39579 3 10.5 3H12.5C13.6042 3 14.5 2.10421 14.5 1H13C13 1.27579 12.7758 1.5 12.5 1.5H10.5Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-selectTool.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-selectTool.svgnew file mode 100644index 00000000..94d51410--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-selectTool.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M0.371588 2.93131C-0.203366 1.33422 1.3342 -0.20335 2.93129 0.371603L2.93263 0.372085L12.0716 3.68171C12.0718 3.68178 12.0714 3.68163 12.0716 3.68171C13.4459 4.17758 13.8478 5.9374 12.8076 6.9776L11.8079 7.97727L14.6876 10.8569C15.4705 11.6398 15.4705 12.9047 14.6876 13.6876L13.6476 14.7276C12.8647 15.5105 11.5998 15.5105 10.8169 14.7276L7.93725 11.8479L6.97758 12.8076C5.93739 13.8478 4.17779 13.4465 3.68192 12.0722C3.68184 12.072 3.682 12.0724 3.68192 12.0722L0.371588 2.93131ZM1.78292 2.42323C1.78298 2.4234 1.78286 2.42305 1.78292 2.42323L5.09281 11.5629C5.21725 11.9082 5.65728 12.0066 5.91692 11.7469L7.93725 9.72661L11.8776 13.6669C12.0747 13.864 12.3898 13.864 12.5869 13.6669L13.6269 12.6269C13.824 12.4298 13.824 12.1147 13.6269 11.9176L9.68659 7.97727L11.7469 5.91694C12.0066 5.65729 11.9081 5.21727 11.5629 5.09283L11.5619 5.09245L2.42321 1.78293C2.42304 1.78287 2.42339 1.783 2.42321 1.78293C2.02067 1.63847 1.63846 2.02069 1.78292 2.42323Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadEven.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadEven.svgnew file mode 100644index 00000000..ce201e33--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadEven.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" d="M2 3.5C1.72421 3.5 1.5 3.72421 1.5 4V12.5C1.5 12.7758 1.72421 13 2 13H7.25V3.5H2ZM14 13H8.75V3.5H14C14.2758 3.5 14.5 3.72421 14.5 4V12.5C14.5 12.7758 14.2758 13 14 13ZM0 4C0 2.89579 0.895786 2 2 2H14C15.1042 2 16 2.89579 16 4V12.5C16 13.6042 15.1042 14.5 14 14.5H2C0.895786 14.5 0 13.6042 0 12.5V4ZM10 6.5H11.5V7.5H10V9H11.5V10H10V11.5H12.25C12.6642 11.5 13 11.1642 13 10.75V5.75C13 5.33579 12.6642 5 12.25 5H10V6.5ZM4.5 6.5H3V5H5.25C5.66421 5 6 5.33579 6 5.75V7.75C6 8.03408 5.8395 8.29378 5.58541 8.42082L4.5 8.96353V10H6V11.5H3.75C3.33579 11.5 3 11.1642 3 10.75V8.5C3 8.21592 3.1605 7.95622 3.41459 7.82918L4.5 7.28647V6.5Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadNone.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadNone.svgnew file mode 100644index 00000000..e8d487fa--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadNone.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M4 1.5C3.72421 1.5 3.5 1.72421 3.5 2V14C3.5 14.2758 3.72421 14.5 4 14.5H12C12.2758 14.5 12.5 14.2758 12.5 14V2C12.5 1.72421 12.2758 1.5 12 1.5H4ZM2 2C2 0.895786 2.89579 0 4 0H12C13.1042 0 14 0.895786 14 2V14C14 15.1042 13.1042 16 12 16H4C2.89579 16 2 15.1042 2 14V2Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadOdd.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadOdd.svgnew file mode 100644index 00000000..9211a427--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/secondaryToolbarButton-spreadOdd.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M1.5 4C1.5 3.72421 1.72421 3.5 2 3.5H7.25V13H2C1.72421 13 1.5 12.7758 1.5 12.5V4ZM8.75 13V3.5H14C14.2758 3.5 14.5 3.72421 14.5 4V12.5C14.5 12.7758 14.2758 13 14 13H8.75ZM2 2C0.895786 2 0 2.89579 0 4V12.5C0 13.6042 0.895786 14.5 2 14.5H14C15.1042 14.5 16 13.6042 16 12.5V4C16 2.89579 15.1042 2 14 2H2ZM4.75 5H3V6.5H4V11.5H5.5V5.75C5.5 5.33579 5.16421 5 4.75 5ZM10 6.5H11.5V7.28647L10.4146 7.82918C10.1605 7.95622 10 8.21592 10 8.5V10.75C10 11.1642 10.3358 11.5 10.75 11.5H13V10H11.5V8.96353L12.5854 8.42082C12.8395 8.29378 13 8.03408 13 7.75V5.75C13 5.33579 12.6642 5 12.25 5H10V6.5Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/signature-properties-row-check.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/signature-properties-row-check.svgnew file mode 100644index 00000000..f40d8301--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/signature-properties-row-check.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+ <circle cx="8" cy="8" r="7" stroke="black" stroke-width="1" fill="none"/>+ <path d="M5 8.4l2.4 2.4L11.6 6" stroke="black" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-bookmark.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-bookmark.svgnew file mode 100644index 00000000..c4c37c90--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-bookmark.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2 3.5C1.72421 3.5 1.5 3.72421 1.5 4V12C1.5 12.2758 1.72421 12.5 2 12.5H14C14.2758 12.5 14.5 12.2758 14.5 12V4C14.5 3.72421 14.2758 3.5 14 3.5H2ZM0 4C0 2.89579 0.895786 2 2 2H14C15.1042 2 16 2.89579 16 4V12C16 13.1042 15.1042 14 14 14H2C0.895786 14 0 13.1042 0 12V4ZM8.75 8.75H7.25V7.25H8.75V8.75ZM8.00001 4.625C5.91142 4.625 4.14736 5.94291 3.45159 7.77847L3.36761 8L3.45159 8.22153C4.14736 10.0571 5.91142 11.375 8.00001 11.375C10.0886 11.375 11.8527 10.0571 12.5484 8.22153L12.6324 8L12.5484 7.77847C11.8527 5.94291 10.0886 4.625 8.00001 4.625ZM8.00001 10.125C6.53912 10.125 5.28508 9.25455 4.71282 8C5.28508 6.74545 6.53912 5.875 8.00001 5.875C9.4609 5.875 10.7149 6.74545 11.2872 8C10.7149 9.25455 9.4609 10.125 8.00001 10.125Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-currentOutlineItem.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-currentOutlineItem.svgnew file mode 100644index 00000000..01e67623--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-currentOutlineItem.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.803 4.74998V6.02436C10.803 6.39302 10.3571 6.57793 10.0967 6.31753L7.87716 4.098C7.71566 3.93649 7.71566 3.67434 7.87716 3.51283L10.0967 1.29329C10.3571 1.0329 10.8036 1.21722 10.8036 1.58588V3.24998H15V4.74998H10.803ZM8 1.24998H3V2.74998H6.5L8 1.24998ZM6.5 5.24998H3V6.74998H8L6.5 5.24998ZM3 13.25H15V14.75H3V13.25ZM6 9.24998H15V10.75H6V9.24998ZM1.5 5.24998H0V6.74998H1.5V5.24998ZM0 13.25H1.5V14.75H0V13.25ZM1.5 1.24998H0V2.74998H1.5V1.24998ZM3 9.24998H4.5V10.75H3V9.24998Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-download.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-download.svgnew file mode 100644index 00000000..e2e850ad--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-download.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M9.79407 7.31811H7.86307C7.41807 7.31811 7.19407 7.85711 7.50907 8.17211L10.1911 10.8541C10.3861 11.0491 10.7031 11.0491 10.8981 10.8541L13.5801 8.17211C13.8951 7.85711 13.6721 7.31811 13.2261 7.31811H11.2941V4.38211H11.2961V3.13211H11.2941V2.30811H9.79407V3.13211H9.79107V4.38211H9.79507V7.31811H9.79407Z" fill="black"/>+<path d="M14 3.13208H12.796V4.38208H14C14.345 4.38208 14.625 4.66208 14.625 5.00708V13.0071C14.625 13.3521 14.345 13.6321 14 13.6321H2C1.655 13.6321 1.375 13.3521 1.375 13.0071V3.00708C1.375 2.66208 1.655 2.38208 2 2.38208H5.643C5.82 2.38208 5.989 2.45808 6.108 2.58908L7.536 4.17508C7.654 4.30708 7.823 4.38208 8 4.38208H8.291V3.13208H8.278L7.036 1.75208C6.681 1.35808 6.173 1.13208 5.642 1.13208H2C0.966 1.13208 0.125 1.97308 0.125 3.00708V13.0071C0.125 14.0411 0.966 14.8821 2 14.8821H14C15.034 14.8821 15.875 14.0411 15.875 13.0071V5.00708C15.875 3.97308 15.034 3.13208 14 3.13208Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorFreeText.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorFreeText.svgnew file mode 100644index 00000000..13a67bd9--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorFreeText.svg@@ -0,0 +1,5 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M3 2.5C2.72421 2.5 2.5 2.72421 2.5 3V4.75H1V3C1 1.89579 1.89579 1 3 1H13C14.1042 1 15 1.89579 15 3V4.75H13.5V3C13.5 2.72421 13.2758 2.5 13 2.5H3Z" fill="black"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M11 15H5V13.5H11V15Z" fill="black"/>+<path fill-rule="evenodd" clip-rule="evenodd" d="M8.75 2.25V14.25H7.25V2.25H8.75Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorHighlight.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorHighlight.svgnew file mode 100644index 00000000..b3cd7fda--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorHighlight.svg@@ -0,0 +1,6 @@+<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <g>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.10918 11.66C7.24918 11.8 7.43918 11.88 7.63918 11.88C7.83918 11.88 8.02918 11.8 8.16918 11.66L14.9192 4.91C15.2692 4.57 15.4592 4.11 15.4592 3.62C15.4592 3.13 15.2692 2.67 14.9192 2.33L13.1292 0.54C12.7892 0.19 12.3292 0 11.8392 0C11.3492 0 10.8892 0.2 10.5492 0.54L3.79918 7.29C3.50918 7.58 3.50918 8.06 3.79918 8.35L4.38988 8.9407L1.40918 11.93H5.64918L6.51419 11.065L7.10918 11.66ZM7.63918 10.07L5.38918 7.82V7.81L7.8648 5.33438L10.1198 7.58938L7.63918 10.07ZM11.1805 6.52872L13.8592 3.85C13.9892 3.72 13.9892 3.52 13.8592 3.39L12.0692 1.6C11.9892 1.52 11.8892 1.5 11.8392 1.5C11.8392 1.5 11.6892 1.51 11.6092 1.59L8.92546 4.27372L11.1805 6.52872Z" fill="#000"/>+ <path d="M0.40918 14H15.4092V16H0.40918V14Z" fill="#000"/>+ </g>+ </svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorInk.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorInk.svgnew file mode 100644index 00000000..b579eec7--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorInk.svg@@ -0,0 +1,4 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2.49913 12.6251C2.61913 12.6251 2.73913 12.6051 2.85713 12.5661L6.29013 11.4201L13.2891 4.4221C14.0191 3.6911 14.0191 2.5011 13.2891 1.7701L12.2291 0.710098C11.4971 -0.0199023 10.3091 -0.0199023 9.57713 0.710098L2.57813 7.7091L1.43313 11.1451C1.29813 11.5511 1.40213 11.9931 1.70513 12.2951C1.92113 12.5101 2.20613 12.6251 2.49913 12.6251ZM10.4611 1.5951C10.7031 1.3511 11.1021 1.3511 11.3441 1.5951L12.4051 2.6561C12.6491 2.8991 12.6491 3.2961 12.4051 3.5391L11.3401 4.6051L9.39513 2.6601L10.4611 1.5951ZM3.67013 8.3851L8.51013 3.5451L10.4541 5.4891L5.61413 10.3301L2.69713 11.3031L3.67013 8.3851Z" fill="black"/>+<path d="M14.8169 13.314L13.0229 13.862C12.3309 14.073 11.5909 14.111 10.8859 13.968L8.80391 13.551C7.58491 13.308 6.29791 13.48 5.18491 14.036C3.95291 14.652 2.46691 14.412 1.49191 13.436L1.44091 13.385L0.60791 14.321C1.46291 15.175 2.59991 15.625 3.75291 15.625C4.42891 15.625 5.10991 15.471 5.74391 15.153C6.60891 14.721 7.60891 14.586 8.55891 14.777L10.6409 15.194C11.5509 15.376 12.5009 15.327 13.3879 15.056L15.1819 14.508L14.8169 13.314Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorSignature.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorSignature.svgnew file mode 100644index 00000000..0b4e9049--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorSignature.svg@@ -0,0 +1,6 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M11.618 12.868L11.254 13.25H10.423C10.335 13.396 10.182 13.5 10 13.5H2C1.725 13.5 1.5 13.275 1.5 13V2C1.5 1.725 1.725 1.5 2 1.5H6.939L7 1.561V4.5C7 4.776 7.224 5 7.5 5H10.439L10.5 5.061V6.515L12 5.015V4.75C12 4.551 11.921 4.36 11.78 4.22L7.78 0.22C7.64 0.079 7.449 0 7.25 0H2C0.895 0 0 0.895 0 2V13C0 14.105 0.895 15 2 15H10C11.105 15 12 14.105 12 13V12.486L11.618 12.868Z" fill="black"/>+<path d="M13.836 4.946C13.962 4.819 14.13 4.75 14.309 4.75C14.487 4.75 14.655 4.819 14.782 4.945L15.805 5.969C15.931 6.094 16 6.262 16 6.441C16 6.621 15.931 6.789 15.805 6.915L14.9397 7.78033L12.9707 5.81134L13.836 4.946Z" fill="black"/>+<path d="M12.4403 6.34167L8.84 9.942C8.793 9.989 8.767 10.052 8.767 10.119V11.75C8.767 11.888 8.879 12 9.017 12H10.616L10.793 11.927L14.4093 8.31067L12.4403 6.34167Z" fill="black"/>+<path d="M7.517 9.84799V10.016H7.516V11.517C7.49168 11.4944 7.46584 11.4738 7.44007 11.4532C7.39062 11.4138 7.34148 11.3746 7.304 11.322L7.081 11.009C7.071 10.992 7.037 10.946 6.966 10.957C6.93 10.962 6.882 10.982 6.859 11.046C6.705 11.486 6.492 12.087 5.938 12.087H5.921C5.317 12.07 5.009 11.557 4.745 9.98599L4.382 10.954C4.146 11.585 3.535 12.009 2.861 12.009H2.5V10.759H2.861C3.017 10.759 3.158 10.661 3.213 10.515L3.883 8.72799C4.05 8.28199 4.494 8.01899 4.955 8.07299C5.434 8.12799 5.796 8.48599 5.858 8.96399C5.921 9.43699 5.98 9.80399 6.035 10.085C6.24 9.89099 6.504 9.76099 6.795 9.71999C7.048 9.68399 7.291 9.74599 7.517 9.84799Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorStamp.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorStamp.svgnew file mode 100644index 00000000..a1fef492--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-editorStamp.svg@@ -0,0 +1,8 @@+<!-- This Source Code Form is subject to the terms of the Mozilla Public+ - License, v. 2.0. If a copy of the MPL was not distributed with this+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="black">+ <path d="M3 1a2 2 0 0 0-2 2l0 10a2 2 0 0 0 2 2l10 0a2 2 0 0 0 2-2l0-10a2 2 0 0 0-2-2L3 1zm10.75 12.15-.6.6-10.3 0-.6-.6 0-10.3.6-.6 10.3 0 .6.6 0 10.3z"/>+ <path d="m11 12-6 0a1 1 0 0 1-1-1l0-1.321a.75.75 0 0 1 .218-.529L6.35 7.005a.75.75 0 0 1 1.061-.003l2.112 2.102.612-.577a.75.75 0 0 1 1.047.017l.6.605a.75.75 0 0 1 .218.529L12 11a1 1 0 0 1-1 1z"/>+ <path d="m11.6 5-1.2 0-.4.4 0 1.2.4.4 1.2 0 .4-.4 0-1.2z"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-menuArrow.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-menuArrow.svgnew file mode 100644index 00000000..82ffeaab--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-menuArrow.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.23336 10.4664L11.8474 6.85339C11.894 6.8071 11.931 6.75203 11.9563 6.69136C11.9816 6.63069 11.9946 6.56562 11.9946 6.49989C11.9946 6.43417 11.9816 6.3691 11.9563 6.30843C11.931 6.24776 11.894 6.19269 11.8474 6.14639C11.7536 6.05266 11.6264 6 11.4939 6C11.3613 6 11.2341 6.05266 11.1404 6.14639L7.99236 9.29339L4.84736 6.14739C4.75305 6.05631 4.62675 6.00592 4.49566 6.00706C4.36456 6.0082 4.23915 6.06078 4.14645 6.15348C4.05374 6.24619 4.00116 6.37159 4.00002 6.50269C3.99888 6.63379 4.04928 6.76009 4.14036 6.85439L7.75236 10.4674L8.23336 10.4664Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-menuArrowNova.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-menuArrowNova.svgnew file mode 100644index 00000000..f5c80208--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-menuArrowNova.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M12.72 4.883a.75.75 0 0 1 1.062 1.06l-4.544 4.545c-.33.33-.77.512-1.236.512H8c-.467 0-.907-.182-1.237-.512L2.22 5.944a.75.75 0 0 1 1.06-1.061l4.544 4.543a.25.25 0 0 0 .354 0z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-openFile.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-openFile.svgnew file mode 100644index 00000000..e773781d--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-openFile.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.4287 1.08398C10.5111 1.02905 10.608 0.999824 10.707 1H14.7L15 1.3V5.293C15 5.39194 14.9706 5.48864 14.9156 5.57088C14.8606 5.65311 14.7824 5.71718 14.691 5.75498C14.5996 5.79277 14.499 5.80259 14.402 5.78319C14.3049 5.76379 14.2159 5.71605 14.146 5.646L12.973 4.473L12.692 4.192L9.067 7.817C8.94923 7.93347 8.79034 7.99888 8.6247 7.99907C8.45907 7.99925 8.30003 7.93421 8.182 7.818C8.06518 7.70036 7.99962 7.54129 7.99962 7.3755C7.99962 7.20971 8.06518 7.05065 8.182 6.933L11.807 3.308L10.353 1.854C10.2829 1.78407 10.2351 1.6949 10.2158 1.59779C10.1964 1.50068 10.2063 1.40001 10.2442 1.30854C10.2821 1.21707 10.3464 1.13891 10.4287 1.08398ZM7.81694 2.06694C7.69973 2.18415 7.54076 2.25 7.375 2.25H2.85L2.25 2.85V13.15L2.85 13.75H13.15L13.75 13.15V8.625C13.75 8.45924 13.8158 8.30027 13.9331 8.18306C14.0503 8.06585 14.2092 8 14.375 8C14.5408 8 14.6997 8.06585 14.8169 8.18306C14.9342 8.30027 15 8.45924 15 8.625V13C15 13.5304 14.7893 14.0391 14.4142 14.4142C14.0391 14.7893 13.5304 15 13 15H3C2.46957 15 1.96086 14.7893 1.58579 14.4142C1.21071 14.0391 1 13.5304 1 13V3C1 2.46957 1.21071 1.96086 1.58579 1.58579C1.96086 1.21071 2.46957 1 3 1H7.375C7.54076 1 7.69973 1.06585 7.81694 1.18306C7.93415 1.30027 8 1.45924 8 1.625C8 1.79076 7.93415 1.94973 7.81694 2.06694Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-pageDown.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-pageDown.svgnew file mode 100644index 00000000..1fc12e73--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-pageDown.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.35176 10.9989L13.8178 5.53391C13.876 5.47594 13.9222 5.40702 13.9537 5.33113C13.9851 5.25524 14.0013 5.17387 14.0012 5.0917C14.0011 5.00954 13.9848 4.9282 13.9531 4.85238C13.9215 4.77656 13.8751 4.70775 13.8168 4.64991C13.6991 4.53309 13.5401 4.46753 13.3743 4.46753C13.2085 4.46753 13.0494 4.53309 12.9318 4.64991L7.99776 9.58491L3.06776 4.65091C2.9494 4.53853 2.79183 4.47682 2.62863 4.47894C2.46542 4.48106 2.3095 4.54683 2.19409 4.66224C2.07868 4.77765 2.01291 4.93357 2.01079 5.09677C2.00868 5.25997 2.07039 5.41754 2.18276 5.53591L7.64776 10.9999L8.35176 10.9989Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-pageUp.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-pageUp.svgnew file mode 100644index 00000000..0936b9a5--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-pageUp.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.35179 5.001L13.8178 10.466C13.876 10.524 13.9222 10.5929 13.9537 10.6688C13.9852 10.7447 14.0013 10.826 14.0012 10.9082C14.0011 10.9904 13.9848 11.0717 13.9531 11.1475C13.9215 11.2234 13.8751 11.2922 13.8168 11.35C13.6991 11.4668 13.5401 11.5324 13.3743 11.5324C13.2085 11.5324 13.0494 11.4668 12.9318 11.35L7.99879 6.416L3.06679 11.349C2.94842 11.4614 2.79085 11.5231 2.62765 11.521C2.46445 11.5189 2.30853 11.4531 2.19312 11.3377C2.07771 11.2223 2.01193 11.0663 2.00982 10.9031C2.0077 10.7399 2.06941 10.5824 2.18179 10.464L7.64779 5L8.35179 5.001Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-presentationMode.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-presentationMode.svgnew file mode 100644index 00000000..901d5672--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-presentationMode.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M1.5 3C1.5 2.72421 1.72421 2.5 2 2.5H14C14.2758 2.5 14.5 2.72421 14.5 3V11C14.5 11.2758 14.2758 11.5 14 11.5H2C1.72421 11.5 1.5 11.2758 1.5 11V3ZM2 1C0.895786 1 0 1.89579 0 3V11C0 12.1042 0.895786 13 2 13H2.64979L1.35052 15.2499L2.64949 16L4.38194 13H11.6391L13.3715 16L14.6705 15.2499L13.3712 13H14C15.1042 13 16 12.1042 16 11V3C16 1.89579 15.1042 1 14 1H2ZM5.79501 4.64401V9.35601C5.79501 9.85001 6.32901 10.159 6.75701 9.91401L10.88 7.55801C11.312 7.31201 11.312 6.68901 10.88 6.44201L6.75701 4.08601C6.32801 3.84101 5.79501 4.15001 5.79501 4.64401Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-print.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-print.svgnew file mode 100644index 00000000..97a39047--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-print.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M13 4H12V2C12 1.46957 11.7893 0.960859 11.4142 0.585786C11.0391 0.210714 10.5304 0 10 0L6 0C5.46957 0 4.96086 0.210714 4.58579 0.585786C4.21071 0.960859 4 1.46957 4 2V4H3C2.46957 4 1.96086 4.21071 1.58579 4.58579C1.21071 4.96086 1 5.46957 1 6V11C1 11.5304 1.21071 12.0391 1.58579 12.4142C1.96086 12.7893 2.46957 13 3 13H4V14C4 14.5304 4.21071 15.0391 4.58579 15.4142C4.96086 15.7893 5.46957 16 6 16H10C10.5304 16 11.0391 15.7893 11.4142 15.4142C11.7893 15.0391 12 14.5304 12 14V13H13C13.5304 13 14.0391 12.7893 14.4142 12.4142C14.7893 12.0391 15 11.5304 15 11V6C15 5.46957 14.7893 4.96086 14.4142 4.58579C14.0391 4.21071 13.5304 4 13 4V4ZM10.75 14.15L10.15 14.75H5.85L5.25 14.15V10H10.75V14.15ZM10.75 4H5.25V1.85L5.85 1.25H10.15L10.75 1.85V4V4ZM13 7.6L12.6 8H11.4L11 7.6V6.4L11.4 6H12.6L13 6.4V7.6Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-search.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-search.svgnew file mode 100644index 00000000..0cc7ae21--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-search.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M10.089 10.973L13.934 14.817C13.9918 14.8754 14.0605 14.9218 14.1364 14.9534C14.2122 14.9851 14.2936 15.0013 14.3757 15.0012C14.4579 15.0011 14.5392 14.9847 14.6149 14.9529C14.6907 14.9211 14.7594 14.8746 14.817 14.816C14.875 14.7579 14.921 14.6889 14.9523 14.613C14.9836 14.5372 14.9997 14.4559 14.9996 14.3738C14.9995 14.2917 14.9833 14.2104 14.9518 14.1346C14.9203 14.0588 14.8741 13.99 14.816 13.932L10.983 10.1L10.989 9.67299C11.489 8.96674 11.8152 8.15249 11.9413 7.29642C12.0674 6.44034 11.9897 5.5666 11.7145 4.74621C11.4394 3.92582 10.9745 3.18192 10.3578 2.57498C9.74104 1.96804 8.98979 1.51519 8.16509 1.25322C7.34039 0.991255 6.46551 0.927572 5.61157 1.06735C4.75763 1.20712 3.94871 1.54641 3.25057 2.05764C2.55243 2.56887 1.98476 3.23761 1.59371 4.0095C1.20265 4.7814 0.999236 5.63468 1 6.49999C1 7.95868 1.57946 9.35763 2.61091 10.3891C3.64236 11.4205 5.04131 12 6.5 12C7.689 12 8.788 11.62 9.687 10.978L10.089 10.973V10.973ZM6.5 10.75C4.157 10.75 2.25 8.84299 2.25 6.49999C2.25 4.15699 4.157 2.24999 6.5 2.24999C8.843 2.24999 10.75 4.15699 10.75 6.49999C10.75 8.84299 8.843 10.75 6.5 10.75Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-secondaryToolbarToggle.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-secondaryToolbarToggle.svgnew file mode 100644index 00000000..cace8637--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-secondaryToolbarToggle.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M2.53406 13.818L7.99906 8.35203L8.00006 7.64703L2.53606 2.18203C2.41769 2.06965 2.26012 2.00795 2.09692 2.01006C1.93372 2.01218 1.7778 2.07795 1.66239 2.19336C1.54698 2.30877 1.48121 2.46469 1.47909 2.62789C1.47697 2.79109 1.53868 2.94867 1.65106 3.06703L6.58506 7.99803L1.65006 12.932C1.53754 13.0503 1.47565 13.2078 1.47758 13.371C1.47951 13.5342 1.54511 13.6902 1.66039 13.8057C1.77567 13.9213 1.93152 13.9872 2.09472 13.9895C2.25792 13.9918 2.41557 13.9303 2.53406 13.818ZM8.53406 13.818L13.9991 8.35203L14.0001 7.64703L8.53606 2.18203C8.4177 2.06965 8.26012 2.00795 8.09692 2.01006C7.93372 2.01218 7.7778 2.07795 7.66239 2.19336C7.54698 2.30877 7.48121 2.46469 7.47909 2.62789C7.47697 2.79109 7.53868 2.94867 7.65106 3.06703L12.5851 7.99803L7.65006 12.932C7.53754 13.0503 7.47565 13.2078 7.47758 13.371C7.47951 13.5342 7.54511 13.6902 7.66039 13.8057C7.77567 13.9213 7.93152 13.9872 8.09472 13.9895C8.25792 13.9918 8.41557 13.9303 8.53406 13.818Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-signaturePropertiesError.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-signaturePropertiesError.svgnew file mode 100644index 00000000..43a8b413--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-signaturePropertiesError.svg@@ -0,0 +1,7 @@+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+ <mask id="m">+ <rect width="16" height="16" fill="white"/>+ <path d="M5.2 5.2l5.6 5.6M10.8 5.2l-5.6 5.6" stroke="black" stroke-width="1.8" fill="none" stroke-linecap="round"/>+ </mask>+ <circle cx="8" cy="8" r="7" fill="black" mask="url(#m)"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-signaturePropertiesVerified.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-signaturePropertiesVerified.svgnew file mode 100644index 00000000..e294c6c9--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-signaturePropertiesVerified.svg@@ -0,0 +1,7 @@+<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">+ <mask id="m">+ <rect width="16" height="16" fill="white"/>+ <path d="M4.5 8.4l2.4 2.4L11.6 6" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>+ </mask>+ <circle cx="8" cy="8" r="7" fill="black" mask="url(#m)"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewAttachments.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewAttachments.svgnew file mode 100644index 00000000..ab73f6e6--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewAttachments.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M3.5 3.75C3.5 1.67879 5.17879 0 7.25 0C9.32121 0 11 1.67879 11 3.75V10.25C11 11.4922 9.99221 12.5 8.75 12.5C7.50779 12.5 6.5 11.4922 6.5 10.25V3.5H8V10.25C8 10.6638 8.33621 11 8.75 11C9.16379 11 9.5 10.6638 9.5 10.25V3.75C9.5 2.50721 8.49279 1.5 7.25 1.5C6.00721 1.5 5 2.50721 5 3.75V10.75C5 12.8208 6.67921 14.5 8.75 14.5C10.8208 14.5 12.5 12.8208 12.5 10.75V3.5H14V10.75C14 13.6492 11.6492 16 8.75 16C5.85079 16 3.5 13.6492 3.5 10.75V3.75Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewLayers.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewLayers.svgnew file mode 100644index 00000000..1d726682--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewLayers.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M8.36645 2.34562C8.13878 2.21813 7.86122 2.21813 7.63355 2.34562L1.38355 5.84562C1.14669 5.97826 1 6.22853 1 6.5C1 6.77147 1.14669 7.02174 1.38355 7.15438L7.63355 10.6544C7.86122 10.7819 8.13878 10.7819 8.36645 10.6544L14.6165 7.15438C14.8533 7.02174 15 6.77147 15 6.5C15 6.22853 14.8533 5.97826 14.6165 5.84562L8.36645 2.34562ZM8 9.14041L3.28499 6.5L8 3.85959L12.715 6.5L8 9.14041ZM1.63647 9.0766L7.99999 12.6404L14.3255 9.09761L15.0585 10.4063L8.36649 14.1543C8.13881 14.2818 7.86122 14.2819 7.63353 14.1543L0.903534 10.3853L1.63647 9.0766Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewOutline.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewOutline.svgnew file mode 100644index 00000000..7ed1bd97--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewOutline.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M3 1.25H15V2.75H3V1.25ZM15 5.25H3V6.75H15V5.25ZM15 13.25H3V14.75H15V13.25ZM15 9.25H6V10.75H15V9.25ZM0 5.25H1.5V6.75H0V5.25ZM1.5 13.25H0V14.75H1.5V13.25ZM0 1.25H1.5V2.75H0V1.25ZM4.5 9.25H3V10.75H4.5V9.25Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewThumbnail.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewThumbnail.svgnew file mode 100644index 00000000..040d1232--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewThumbnail.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M3.5 2C3.5 1.72421 3.72421 1.5 4 1.5H5.25C5.52579 1.5 5.75 1.72421 5.75 2V5.25C5.75 5.52579 5.52579 5.75 5.25 5.75H4C3.72421 5.75 3.5 5.52579 3.5 5.25V2ZM4 0C2.89579 0 2 0.895786 2 2V5.25C2 6.35421 2.89579 7.25 4 7.25H5.25C6.35421 7.25 7.25 6.35421 7.25 5.25V2C7.25 0.895786 6.35421 0 5.25 0H4ZM3.5 10.75C3.5 10.4742 3.72421 10.25 4 10.25H5.25C5.52579 10.25 5.75 10.4742 5.75 10.75V14C5.75 14.2758 5.52579 14.5 5.25 14.5H4C3.72421 14.5 3.5 14.2758 3.5 14V10.75ZM4 8.75C2.89579 8.75 2 9.64579 2 10.75V14C2 15.1042 2.89579 16 4 16H5.25C6.35421 16 7.25 15.1042 7.25 14V10.75C7.25 9.64579 6.35421 8.75 5.25 8.75H4ZM10.75 1.5C10.4742 1.5 10.25 1.72421 10.25 2V5.25C10.25 5.52579 10.4742 5.75 10.75 5.75H12C12.2758 5.75 12.5 5.52579 12.5 5.25V2C12.5 1.72421 12.2758 1.5 12 1.5H10.75ZM8.75 2C8.75 0.895786 9.64579 0 10.75 0H12C13.1042 0 14 0.895786 14 2V5.25C14 6.35421 13.1042 7.25 12 7.25H10.75C9.64579 7.25 8.75 6.35421 8.75 5.25V2ZM10.25 10.75C10.25 10.4742 10.4742 10.25 10.75 10.25H12C12.2758 10.25 12.5 10.4742 12.5 10.75V14C12.5 14.2758 12.2758 14.5 12 14.5H10.75C10.4742 14.5 10.25 14.2758 10.25 14V10.75ZM10.75 8.75C9.64579 8.75 8.75 9.64579 8.75 10.75V14C8.75 15.1042 9.64579 16 10.75 16H12C13.1042 16 14 15.1042 14 14V10.75C14 9.64579 13.1042 8.75 12 8.75H10.75Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewsManagerToggle.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewsManagerToggle.svgnew file mode 100644index 00000000..1d8d0e4b--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-viewsManagerToggle.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" d="M16 4V12.25C16 12.7804 15.7893 13.2891 15.4142 13.6642C15.0391 14.0393 14.5304 14.25 14 14.25H2C1.46957 14.25 0.960859 14.0393 0.585786 13.6642C0.210714 13.2891 0 12.7804 0 12.25V4C0 3.46957 0.210714 2.96086 0.585786 2.58579C0.960859 2.21071 1.46957 2 2 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4ZM1.25 3.85V12.4L1.85 13H6.75V3.25H1.85L1.25 3.85ZM14.15 13H8V3.25H14.15L14.75 3.85V12.4L14.15 13ZM5.35355 10.1464C5.44732 10.2402 5.5 10.3674 5.5 10.5C5.5 10.6326 5.44732 10.7598 5.35355 10.8536C5.25979 10.9473 5.13261 11 5 11H3C2.86739 11 2.74021 10.9473 2.64645 10.8536C2.55268 10.7598 2.5 10.6326 2.5 10.5C2.5 10.3674 2.55268 10.2402 2.64645 10.1464C2.74021 10.0527 2.86739 10 3 10H5C5.13261 10 5.25979 10.0527 5.35355 10.1464ZM5.5 8C5.5 7.86739 5.44732 7.74021 5.35355 7.64645C5.25979 7.55268 5.13261 7.5 5 7.5H3C2.86739 7.5 2.74021 7.55268 2.64645 7.64645C2.55268 7.74021 2.5 7.86739 2.5 8C2.5 8.13261 2.55268 8.25979 2.64645 8.35355C2.74021 8.44732 2.86739 8.5 3 8.5H5C5.13261 8.5 5.25979 8.44732 5.35355 8.35355C5.44732 8.25979 5.5 8.13261 5.5 8ZM5.35355 5.14645C5.44732 5.24021 5.5 5.36739 5.5 5.5C5.5 5.63261 5.44732 5.75979 5.35355 5.85355C5.25979 5.94732 5.13261 6 5 6H3C2.86739 6 2.74021 5.94732 2.64645 5.85355C2.55268 5.75979 2.5 5.63261 2.5 5.5C2.5 5.36739 2.55268 5.24021 2.64645 5.14645C2.74021 5.05268 2.86739 5 3 5H5C5.13261 5 5.25979 5.05268 5.35355 5.14645Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-zoomIn.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-zoomIn.svgnew file mode 100644index 00000000..30ec51a2--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-zoomIn.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M7.00488 9.75V14C7.00488 14.1658 7.07073 14.3247 7.18794 14.4419C7.30515 14.5592 7.46412 14.625 7.62988 14.625C7.79564 14.625 7.95461 14.5592 8.07183 14.4419C8.18904 14.3247 8.25488 14.1658 8.25488 14V9.75L8.75488 9.25H13.0049C13.1706 9.25 13.3296 9.18415 13.4468 9.06694C13.564 8.94973 13.6299 8.79076 13.6299 8.625C13.6299 8.45924 13.564 8.30027 13.4468 8.18306C13.3296 8.06585 13.1706 8 13.0049 8H8.75488L8.25488 7.5V3.25C8.25488 3.08424 8.18904 2.92527 8.07183 2.80806C7.95461 2.69085 7.79564 2.625 7.62988 2.625C7.46412 2.625 7.30515 2.69085 7.18794 2.80806C7.07073 2.92527 7.00488 3.08424 7.00488 3.25V7.5L6.50488 8H2.25488C2.08912 8 1.93015 8.06585 1.81294 8.18306C1.69573 8.30027 1.62988 8.45924 1.62988 8.625C1.62988 8.79076 1.69573 8.94973 1.81294 9.06694C1.93015 9.18415 2.08912 9.25 2.25488 9.25H6.39188L7.00488 9.75Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-zoomOut.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-zoomOut.svgnew file mode 100644index 00000000..f273b599--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/toolbarButton-zoomOut.svg@@ -0,0 +1,3 @@+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M13.375 9.25C13.5408 9.25 13.6997 9.18415 13.8169 9.06694C13.9342 8.94973 14 8.79076 14 8.625C14 8.45924 13.9342 8.30027 13.8169 8.18306C13.6997 8.06585 13.5408 8 13.375 8H2.625C2.45924 8 2.30027 8.06585 2.18306 8.18306C2.06585 8.30027 2 8.45924 2 8.625C2 8.79076 2.06585 8.94973 2.18306 9.06694C2.30027 9.18415 2.45924 9.25 2.625 9.25H13.375Z" fill="black"/>+</svg>diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/treeitem-collapsed.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/treeitem-collapsed.svgnew file mode 100644index 00000000..831cddfc--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/treeitem-collapsed.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M13 9L6 5v8z"/></svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/treeitem-expanded.svg b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/treeitem-expanded.svgnew file mode 100644index 00000000..2d45f0c8--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/images/treeitem-expanded.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M10 13l4-7H6z"/></svg>\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/pdf_viewer.css b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/pdf_viewer.cssnew file mode 100644index 00000000..b60132df--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/pdf_viewer.css@@ -0,0 +1,6409 @@+/* Copyright 2014 Mozilla Foundation+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++:root{+ --button-primary-bg-color:var(+ --button-background-color-primary,+ light-dark(#0060df, #0df)+ );+ --button-primary-fg-color:var(+ --button-text-color-primary,+ light-dark(#fbfbfe, #15141a)+ );+ --button-primary-border-color:var(--button-primary-bg-color);+ --button-primary-active-bg-color:var(+ --button-background-color-primary-active,+ light-dark(#054096, #aaf2ff)+ );+ --button-primary-active-fg-color:var(--button-primary-fg-color);+ --button-primary-active-border-color:var(--button-primary-active-bg-color);+ --button-primary-hover-bg-color:var(+ --button-background-color-primary-hover,+ light-dark(#0250bb, #80ebff)+ );+ --button-primary-hover-fg-color:var(--button-primary-fg-color);+ --button-primary-hover-border-color:var(--button-primary-hover-bg-color);+ --button-primary-disabled-bg-color:var(--button-primary-bg-color);+ --button-primary-disabled-border-color:var(--button-primary-border-color);+ --button-primary-disabled-fg-color:var(--button-primary-fg-color);++ --button-secondary-bg-color:var(+ --button-background-color,+ light-dark(rgb(21 20 26 / 0.07), rgb(251 251 254 / 0.07))+ );+ --button-secondary-fg-color:var(--text-color, light-dark(#15141a, #fbfbfe));+ --button-secondary-border-color:var(+ --button-border-color,+ var(--button-secondary-bg-color)+ );+ --button-secondary-active-bg-color:var(+ --button-background-color-active,+ light-dark(rgb(21 20 26 / 0.21), rgb(251 251 254 / 0.21))+ );+ --button-secondary-active-fg-color:var(--button-secondary-fg-color);+ --button-secondary-active-border-color:var(--button-secondary-bg-color);+ --button-secondary-hover-bg-color:var(+ --button-background-color-hover,+ light-dark(rgb(21 20 26 / 0.14), rgb(251 251 254 / 0.14))+ );+ --button-secondary-hover-fg-color:var(--button-secondary-fg-color);+ --button-secondary-hover-border-color:var(--button-secondary-hover-bg-color);+ --button-secondary-disabled-bg-color:var(--button-secondary-bg-color);+ --button-secondary-disabled-border-color:var(+ --button-secondary-border-color+ );+ --button-secondary-disabled-fg-color:var(--button-secondary-fg-color);+ --button-disabled-opacity:0.4;+ --hover-filter:brightness(0.9);++ @media (prefers-color-scheme: dark){+ --button-disabled-opacity:0.6;+ --hover-filter:brightness(1.4);+ }++ @media screen and (forced-colors: active){+ --button-primary-bg-color:var(+ --button-background-color-primary,+ ButtonText+ );+ --button-primary-fg-color:var(--button-text-color-primary, ButtonFace);+ --button-primary-border-color:var(+ --button-border-color-primary,+ ButtonText+ );+ --button-primary-active-bg-color:var(+ --button-background-color-primary-active,+ SelectedItem+ );+ --button-primary-active-fg-color:var(+ --button-text-color-primary-active,+ HighlightText+ );+ --button-primary-active-border-color:var(+ --button-border-color-primary-active,+ ButtonText+ );+ --button-primary-hover-bg-color:var(+ --button-background-color-primary-hover,+ SelectedItem+ );+ --button-primary-hover-fg-color:var(+ --button-text-color-primary-hover,+ HighlightText+ );+ --button-primary-hover-border-color:var(+ --button-border-color-primary-hover,+ SelectedItem+ );+ --button-primary-disabled-bg-color:var(+ --button-background-color-primary-disabled,+ GrayText+ );+ --button-primary-disabled-fg-color:var(+ --button-text-color-primary-disabled,+ ButtonFace+ );+ --button-primary-disabled-border-color:var(+ --button-border-color-primary-disabled,+ GrayText+ );++ --button-secondary-bg-color:var(--button-background-color, ButtonFace);+ --button-secondary-fg-color:var(--button-text-color, ButtonText);+ --button-secondary-border-color:var(--button-border-color, ButtonText);+ --button-secondary-active-bg-color:var(+ --button-background-color-active,+ HighlightText+ );+ --button-secondary-active-fg-color:var(+ --button-text-color-active,+ SelectedItem+ );+ --button-secondary-active-border-color:var(+ --button-border-color-active,+ ButtonText+ );+ --button-secondary-hover-bg-color:var(+ --button-background-color-hover,+ HighlightText+ );+ --button-secondary-hover-fg-color:var(+ --button-text-color-hover,+ SelectedItem+ );+ --button-secondary-hover-border-color:var(+ --button-border-color-hover,+ SelectedItem+ );+ --button-secondary-disabled-fg-color:var(+ --button-text-color-disabled,+ GrayText+ );+ --button-secondary-disabled-border-color:var(+ --button-border-color-disabled,+ GrayText+ );+ --button-disabled-opacity:1;+ --hover-filter:none;+ }+}++.primaryButton,+.secondaryButton{+ border-radius:var(--button-border-radius, 4px);+ border:1px solid;+ font:menu;+ font-weight:var(--button-font-weight, 590);+ font-size:var(--button-font-size, 13px);+ padding:var(--button-padding, 4px 16px);+ width:auto;+ min-height:var(--button-min-height, 32px);++ &:hover{+ cursor:pointer;+ filter:var(--hover-filter);+ }++ > span{+ color:inherit;+ font:inherit;+ }++ &:disabled{+ pointer-events:none;+ }+}++.primaryButton{+ color:var(--button-primary-fg-color);+ background-color:var(--button-primary-bg-color);+ border-color:var(--button-primary-border-color);+ opacity:1;++ &:hover{+ color:var(--button-primary-hover-fg-color);+ background-color:var(--button-primary-hover-bg-color);+ border-color:var(--button-primary-hover-border-color);+ }++ &:active{+ color:var(--button-primary-active-fg-color);+ background-color:var(--button-primary-active-bg-color);+ border-color:var(--button-primary-active-border-color);+ }++ &:disabled{+ background-color:var(--button-primary-disabled-bg-color);+ border-color:var(--button-primary-disabled-border-color);+ color:var(--button-primary-disabled-fg-color);+ opacity:var(--button-disabled-opacity);+ }+}++.secondaryButton{+ color:var(--button-secondary-fg-color);+ background-color:var(--button-secondary-bg-color);+ border-color:var(--button-secondary-border-color);++ &:hover{+ color:var(--button-secondary-hover-fg-color);+ background-color:var(--button-secondary-hover-bg-color);+ border-color:var(--button-secondary-hover-border-color);+ }++ &:active{+ color:var(--button-secondary-active-fg-color);+ background-color:var(--button-secondary-active-bg-color);+ border-color:var(--button-secondary-active-border-color);+ }++ &:disabled{+ background-color:var(--button-secondary-disabled-bg-color);+ border-color:var(--button-secondary-disabled-border-color);+ color:var(--button-secondary-disabled-fg-color);+ opacity:var(--button-disabled-opacity);+ }+}++.messageBar{+ --closing-button-icon:url(images/messageBar_closingButton.svg);+ --message-bar-close-button-color:var(--text-primary-color);+ --message-bar-close-button-color-hover:var(--text-primary-color);+ --message-bar-close-button-border-radius:var(--border-radius-small, 4px);+ --message-bar-close-button-border:none;+ --message-bar-close-button-hover-bg-color:var(+ --button-background-color-hover,+ light-dark(rgb(21 20 26 / 0.14), rgb(251 251 254 / 0.14))+ );+ --message-bar-close-button-active-bg-color:var(+ --button-background-color-active,+ light-dark(rgb(21 20 26 / 0.21), rgb(251 251 254 / 0.21))+ );+ --message-bar-close-button-focus-bg-color:var(+ --button-background-color,+ light-dark(rgb(21 20 26 / 0.07), rgb(251 251 254 / 0.07))+ );++ @media screen and (forced-colors: active){+ --message-bar-close-button-color:var(--button-text-color, ButtonText);+ --message-bar-close-button-border:1px solid var(--button-border-color, ButtonText);+ --message-bar-close-button-hover-bg-color:var(+ --button-background-color-hover,+ SelectedItemText+ );+ --message-bar-close-button-active-bg-color:var(+ --button-background-color-hover,+ SelectedItemText+ );+ --message-bar-close-button-focus-bg-color:var(+ --button-background-color-hover,+ SelectedItemText+ );+ --message-bar-close-button-color-hover:var(+ --button-text-color-hover,+ SelectedItem+ );+ }++ display:flex;+ position:relative;+ padding:8px 8px 8px 16px;+ flex-direction:column;+ justify-content:center;+ align-items:center;+ gap:8px;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ border-radius:var(--border-radius-small, 4px);++ border:1px solid var(--message-bar-border-color);+ background:var(--message-bar-bg-color);+ color:var(--message-bar-fg-color);++ > div{+ display:flex;+ align-items:flex-start;+ gap:8px;+ align-self:stretch;++ &::before{+ content:"";+ display:inline-block;+ width:16px;+ height:16px;+ -webkit-mask-image:var(--message-bar-icon);+ mask-image:var(--message-bar-icon);+ -webkit-mask-size:cover;+ mask-size:cover;+ background-color:var(--message-bar-icon-color);+ flex-shrink:0;+ }+ }++ button{+ cursor:pointer;++ &:focus-visible{+ outline:var(--focus-ring-outline);+ outline-offset:2px;+ }+ }++ .closeButton{+ width:32px;+ height:32px;+ background:none;+ border-radius:var(--message-bar-close-button-border-radius);+ border:var(--message-bar-close-button-border);++ display:flex;+ align-items:center;+ justify-content:center;++ &::before{+ content:"";+ display:inline-block;+ width:16px;+ height:16px;+ -webkit-mask-image:var(--closing-button-icon);+ mask-image:var(--closing-button-icon);+ -webkit-mask-size:cover;+ mask-size:cover;+ background-color:var(--message-bar-close-button-color);+ }++ &:is(:hover, :active, :focus)::before{+ background-color:var(--message-bar-close-button-color-hover);+ }++ &:hover{+ background-color:var(--message-bar-close-button-hover-bg-color);+ }++ &:active{+ background-color:var(--message-bar-close-button-active-bg-color);+ }++ &:focus{+ background-color:var(--message-bar-close-button-focus-bg-color);+ }++ > span{+ display:inline-block;+ width:0;+ height:0;+ overflow:hidden;+ }+ }+}++#editorUndoBar{+ --message-bar-icon:url(images/messageBar_info.svg);+ --message-bar-icon-color:light-dark(#0060df, #73a7f3);+ --message-bar-bg-color:light-dark(#deeafc, #003070);+ --message-bar-fg-color:var(--text-primary-color);+ --message-bar-border-color:light-dark(+ rgb(0 0 0 / 0.08),+ rgb(255 255 255 / 0.08)+ );++ @media screen and (forced-colors: active){+ --message-bar-icon-color:CanvasText;+ --message-bar-bg-color:Canvas;+ --message-bar-border-color:CanvasText;+ }++ position:fixed;+ top:50px;+ left:50%;+ transform:translateX(-50%);+ z-index:10;++ padding-block:8px;+ padding-inline:16px 8px;++ font:menu;+ font-size:15px;++ cursor:default;++ button{+ cursor:pointer;+ }++ #editorUndoBarUndoButton{+ margin-inline-start:8px;+ border-color:var(--color-accent-primary, light-dark(#0060df, #0df));+ }++ > div{+ align-items:center;+ }+}++.dialog{+ --dialog-bg-color:var(--background-color-canvas, light-dark(white, #1c1b22));+ --dialog-border-color:var(+ --background-color-canvas,+ light-dark(white, #1c1b22)+ );+ --dialog-shadow:0 2px 14px 0 light-dark(rgb(58 57 68 / 0.2), #15141a);+ --text-secondary-color:light-dark(#5b5b66, #cfcfd8);+ --separator-color:light-dark(#f0f0f4, #52525e);+ --textarea-border-color:var(--border-color-interactive, #8f8f9d);+ --textarea-bg-color:light-dark(white, #42414d);+ --textarea-fg-color:var(--text-secondary-color);++ --input-text-bg-color:light-dark(white, #42414d);+ --input-text-fg-color:var(--text-primary-color);++ @media screen and (forced-colors: active){+ --dialog-bg-color:var(--background-color-canvas, Canvas);+ --dialog-border-color:var(--border-color, CanvasText);+ --dialog-shadow:none;+ --text-secondary-color:CanvasText;+ --separator-color:CanvasText;++ --textarea-border-color:ButtonBorder;+ --textarea-bg-color:Field;+ --textarea-fg-color:ButtonText;++ --input-text-bg-color:Field;+ --input-text-fg-color:FieldText;+ }++ font:message-box;+ font-size:13px;+ font-weight:400;+ line-height:150%;+ border-radius:var(--border-radius-medium, 4px);+ padding:12px 16px;+ border:1px solid var(--dialog-border-color);+ background:var(--dialog-bg-color);+ color:var(--text-primary-color);+ box-shadow:var(--dialog-shadow);++ .mainContainer{+ *:focus-visible{+ outline:var(--focus-ring-outline);+ outline-offset:2px;+ }++ .title{+ display:flex;+ width:auto;+ flex-direction:column;+ justify-content:flex-end;+ align-items:flex-start;+ gap:12px;++ > span{+ font-size:13px;+ font-style:normal;+ font-weight:590;+ line-height:150%;+ }+ }++ .dialogSeparator{+ width:100%;+ height:0;+ margin-block:4px;+ border-top:1px solid var(--separator-color);+ border-bottom:none;+ }++ .dialogButtonsGroup{+ display:flex;+ gap:12px;+ align-self:flex-end;+ }+ input:is([type="checkbox"], [type="radio"]){+ accent-color:var(--color-accent-primary, light-dark(#0060df, #0df));+ width:var(--checkbox-size, 16px);+ height:var(--checkbox-size, 16px);+ }++ .radio{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:4px;++ > .radioButton{+ display:flex;+ gap:8px;+ align-self:stretch;+ align-items:center;+ }++ > .radioLabel{+ display:flex;+ padding-inline-start:24px;+ align-items:flex-start;+ gap:10px;+ align-self:stretch;++ > span{+ flex:1 0 0;+ font-size:11px;+ color:var(--text-secondary-color);+ }+ }+ }++ button:not(:is(.toggle-button, .closeButton, .clearInputButton)){+ border-radius:var(--button-border-radius, 4px);+ border-width:1px;+ border-style:solid;+ font:menu;+ font-weight:var(--button-font-weight, 590);+ font-size:var(--button-font-size, 13px);+ padding:var(--button-padding, 4px 16px);+ width:auto;+ min-height:var(--button-min-height, 32px);++ &:hover{+ cursor:pointer;+ filter:var(--hover-filter);+ }++ > span{+ color:inherit;+ font:inherit;+ }+ &:disabled{+ pointer-events:none;+ }+ }++ a{+ color:var(--link-fg-color);++ &:hover{+ color:var(--link-hover-fg-color);+ }+ }++ textarea{+ font:inherit;+ padding:8px;+ resize:none;+ margin:0;+ box-sizing:border-box;+ border-radius:var(--border-radius-small, 4px);+ border:1px solid var(--textarea-border-color);+ background:var(--textarea-bg-color);+ color:var(--textarea-fg-color);++ &:focus{+ outline-offset:0;+ border-color:transparent;+ }++ &:disabled{+ pointer-events:none;+ opacity:0.4;+ }+ }++ input[type="text"]{+ background-color:var(--input-text-bg-color);+ color:var(--input-text-fg-color);+ }++ .messageBar{+ --message-bar-bg-color:light-dark(#ffebcd, #5a3100);+ --message-bar-fg-color:light-dark(#15141a, #fbfbfe);+ --message-bar-border-color:light-dark(+ rgb(0 0 0 / 0.08),+ rgb(255 255 255 / 0.08)+ );+ --message-bar-icon:url(images/messageBar_warning.svg);+ --message-bar-icon-color:light-dark(#cd411e, #e49c49);++ @media screen and (forced-colors: active){+ --message-bar-bg-color:HighlightText;+ --message-bar-fg-color:CanvasText;+ --message-bar-border-color:CanvasText;+ --message-bar-icon-color:CanvasText;+ }++ align-self:stretch;++ > div{+ &::before,+ > div{+ margin-block:4px;+ }++ > div{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:8px;+ flex:1 0 0;++ .title{+ font-size:13px;+ font-weight:590;+ }++ .description{+ font-size:13px;+ }+ }+ }+ }++ .toggler{+ display:flex;+ align-items:center;+ gap:8px;+ align-self:stretch;++ > .togglerLabel{+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ }+ }+ }+}++.textLayer{+ color-scheme:only light;++ position:absolute;+ text-align:initial;+ inset:0;+ overflow:clip;+ opacity:1;+ line-height:1;+ letter-spacing:normal;+ word-spacing:normal;+ -webkit-text-size-adjust:none;+ -moz-text-size-adjust:none;+ text-size-adjust:none;+ forced-color-adjust:none;+ transform-origin:0 0;+ caret-color:CanvasText;+ z-index:0;++ &.highlighting{+ touch-action:none;+ }++ :is(span, br){+ color:transparent;+ position:absolute;+ white-space:pre;+ cursor:text;+ transform-origin:0% 0%;+ -webkit-user-select:text;+ -moz-user-select:text;+ user-select:text;+ }+ --min-font-size:1;+ --text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));+ --min-font-size-inv:calc(1 / var(--min-font-size));++ > :not(.markedContent),+ .markedContent span:not(.markedContent){+ z-index:1;++ --font-height:0;+ font-size:calc(var(--text-scale-factor) * var(--font-height));++ --scale-x:1;+ --rotate:0deg;+ transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));+ }++ .markedContent{+ display:contents;+ }++ span[role="img"]{+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ cursor:default;+ }++ .highlight{+ --highlight-bg-color:rgb(180 0 170 / 0.25);+ --highlight-selected-bg-color:rgb(0 100 0 / 0.25);+ --highlight-backdrop-filter:none;+ --highlight-selected-backdrop-filter:none;++ @media screen and (forced-colors: active){+ --highlight-bg-color:transparent;+ --highlight-selected-bg-color:transparent;+ --highlight-backdrop-filter:var(--hcm-highlight-filter);+ --highlight-selected-backdrop-filter:var(+ --hcm-highlight-selected-filter+ );+ }++ margin:-1px;+ padding:1px;+ background-color:var(--highlight-bg-color);+ backdrop-filter:var(--highlight-backdrop-filter);+ border-radius:4px;++ &.appended{+ position:initial;+ }++ &.begin{+ border-radius:4px 0 0 4px;+ }++ &.end{+ border-radius:0 4px 4px 0;+ }++ &.middle{+ border-radius:0;+ }++ &.selected{+ background-color:var(--highlight-selected-bg-color);+ backdrop-filter:var(--highlight-selected-backdrop-filter);+ scroll-margin-top:50px;+ }+ }++ ::-moz-selection{+ background:rgba(0 0 255 / 0.25);+ background:color-mix(in srgb, AccentColor, transparent 50%);+ color:transparent;+ }++ ::selection{+ background:rgba(0 0 255 / 0.25);+ background:color-mix(in srgb, AccentColor, transparent 50%);+ color:transparent;+ }++ &.selectionRendering{+ ::-moz-selection{+ background:transparent;+ color:transparent;+ }+ ::selection{+ background:transparent;+ color:transparent;+ }+ }+ br::-moz-selection{+ background:transparent;+ }+ br::selection{+ background:transparent;+ }++ .endOfContent{+ display:block;+ position:absolute;+ inset:100% 0 0;+ z-index:0;+ cursor:default;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ }++ &.selecting .endOfContent{+ top:0;+ }+}++.textLayerImages{+ position:absolute;+ inset:0;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;++ canvas{+ position:absolute;+ transform-origin:0% 0%;+ }+}++.annotationLayer{+ color-scheme:only light;++ --annotation-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");+ --annotation-unfocused-field-filter:url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='pdfjsFillableField' x='0%' y='0%' width='100%' height='100%' color-interpolation-filters='sRGB'><feFlood flood-color='rgb(0,54,255)' flood-opacity='0.13' result='f'/><feComposite in='f' in2='SourceGraphic' operator='over'/></filter></svg>#pdfjsFillableField");+ --input-focus-border-color:Highlight;+ --input-focus-outline:1px solid Canvas;+ --input-unfocused-border-color:transparent;+ --input-disabled-border-color:transparent;+ --input-hover-border-color:black;+ --link-outline:none;++ @media screen and (forced-colors: active){+ --input-focus-border-color:CanvasText;+ --input-unfocused-border-color:ActiveText;+ --input-disabled-border-color:GrayText;+ --input-hover-border-color:Highlight;+ --link-outline:1.5px solid LinkText;++ .textWidgetAnnotation :is(input, textarea):required,+ .choiceWidgetAnnotation select:required,+ .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required{+ outline:1.5px solid selectedItem;+ }++ .linkAnnotation{+ outline:var(--link-outline);++ &:hover{+ backdrop-filter:var(--hcm-highlight-filter);+ }++ & > a:hover{+ opacity:0 !important;+ background:none !important;+ box-shadow:none;+ }+ }++ .popupAnnotation .popup{+ outline:calc(1.5px * var(--total-scale-factor)) solid CanvasText !important;+ background-color:ButtonFace !important;+ color:ButtonText !important;+ }++ .highlightArea:hover::after{+ position:absolute;+ top:0;+ left:0;+ width:100%;+ height:100%;+ backdrop-filter:var(--hcm-highlight-filter);+ content:"";+ pointer-events:none;+ }++ .popupAnnotation.focused .popup{+ outline:calc(3px * var(--total-scale-factor)) solid Highlight !important;+ }+ }++ position:absolute;+ top:0;+ left:0;+ pointer-events:none;+ transform-origin:0 0;++ &[data-main-rotation="90"] .norotate{+ transform:rotate(270deg) translateX(-100%);+ }+ &[data-main-rotation="180"] .norotate{+ transform:rotate(180deg) translate(-100%, -100%);+ }+ &[data-main-rotation="270"] .norotate{+ transform:rotate(90deg) translateY(-100%);+ }++ &.disabled{+ section,+ .popup{+ pointer-events:none;+ }+ }++ .annotationContent{+ position:absolute;+ width:100%;+ height:100%;+ pointer-events:none;++ &.freetext{+ background:transparent;+ border:none;+ inset:0;+ overflow:visible;+ white-space:nowrap;+ font:10px sans-serif;+ line-height:1.35;+ }+ }++ section{+ position:absolute;+ text-align:initial;+ pointer-events:auto;+ box-sizing:border-box;+ transform-origin:0 0;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;++ &:has(div.annotationContent){+ canvas.annotationContent{+ display:none;+ }+ }++ .overlaidText{+ position:absolute;+ top:0;+ left:0;+ width:0;+ height:0;+ display:inline-block;+ overflow:hidden;+ }+ }+ .hasOwnCanvas:not(.sandboxModified) :is(input, textarea){+ display:none;+ }++ .hasOwnCanvas.sandboxModified canvas.annotationContent{+ display:none;+ }++ .textLayer.selecting ~ & section{+ pointer-events:none;+ }++ :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a{+ position:absolute;+ font-size:1em;+ top:0;+ left:0;+ width:100%;+ height:100%;+ }++ :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)+ > a:hover{+ opacity:0.2;+ background-color:rgb(255 255 0);+ }++ .linkAnnotation.hasBorder:hover{+ background-color:rgb(255 255 0 / 0.2);+ }++ .hasBorder{+ background-size:100% 100%;+ }++ .textAnnotation img{+ position:absolute;+ cursor:pointer;+ width:100%;+ height:100%;+ top:0;+ left:0;+ }++ .textWidgetAnnotation :is(input, textarea),+ .choiceWidgetAnnotation select,+ .buttonWidgetAnnotation:is(.checkBox, .radioButton) input{+ background-image:var(--annotation-unfocused-field-background);+ border:2px solid var(--input-unfocused-border-color);+ box-sizing:border-box;+ font:calc(9px * var(--total-scale-factor)) sans-serif;+ height:100%;+ margin:0;+ vertical-align:top;+ width:100%;+ }++ .textWidgetAnnotation :is(input, textarea):required,+ .choiceWidgetAnnotation select:required,+ .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:required{+ outline:1.5px solid red;+ }++ .choiceWidgetAnnotation select option{+ padding:0;+ }++ .textWidgetAnnotation textarea{+ resize:none;+ }++ .textWidgetAnnotation :is(input, textarea)[disabled],+ .choiceWidgetAnnotation select[disabled],+ .buttonWidgetAnnotation:is(.checkBox, .radioButton) input[disabled]{+ background:none;+ border:2px solid var(--input-disabled-border-color);+ cursor:not-allowed;+ }++ .textWidgetAnnotation :is(input, textarea):hover,+ .choiceWidgetAnnotation select:hover,+ .buttonWidgetAnnotation:is(.checkBox, .radioButton) input:hover{+ border:2px solid var(--input-hover-border-color);+ }+ .textWidgetAnnotation :is(input, textarea):hover,+ .choiceWidgetAnnotation select:hover,+ .buttonWidgetAnnotation.checkBox input:hover{+ border-radius:2px;+ }++ .textWidgetAnnotation :is(input, textarea):focus,+ .choiceWidgetAnnotation select:focus{+ background:none;+ border:2px solid var(--input-focus-border-color);+ border-radius:2px;+ outline:var(--input-focus-outline);+ }++ .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus{+ background-image:none;+ background-color:transparent;+ }++ .buttonWidgetAnnotation.checkBox :focus{+ border:2px solid var(--input-focus-border-color);+ border-radius:2px;+ outline:var(--input-focus-outline);+ }++ .buttonWidgetAnnotation.radioButton :focus{+ border:2px solid var(--input-focus-border-color);+ outline:var(--input-focus-outline);+ }++ .buttonWidgetAnnotation:is(.checkBox, .radioButton){+ [data-canvas-name]{+ filter:var(--annotation-unfocused-field-filter);+ }++ &:focus-within [data-canvas-name]{+ filter:none;+ }++ [data-canvas-name="checked"]{+ &:has(~ input:checked){+ display:block;+ }++ &:has(~ input:not(:checked)){+ display:none;+ }+ }++ [data-canvas-name="unchecked"]{+ &:has(~ input:checked){+ display:none;+ }++ &:has(~ input:not(:checked)){+ display:block;+ }+ }+ }++ .textWidgetAnnotation input.comb{+ --comb-width:0px;+ --comb-letter-spacing:calc(var(--comb-width) - 1ch);++ font-family:monospace;+ letter-spacing:var(--comb-letter-spacing);+ overflow-x:hidden;+ padding:0;+ text-indent:calc(+ var(--comb-offset, 0) * var(--comb-width) + var(--comb-letter-spacing) / 2+ );+ }++ .textWidgetAnnotation input.comb:focus{+ background-image:repeating-linear-gradient(+ to right,+ transparent 0 calc(var(--comb-width) - 1px),+ var(--input-focus-border-color) calc(var(--comb-width) - 1px)+ var(--comb-width)+ );+ }++ .buttonWidgetAnnotation:is(.checkBox, .radioButton) input{+ -webkit-appearance:none;+ -moz-appearance:none;+ appearance:none;+ }++ .buttonWidgetAnnotation:is(.checkBox, .radioButton):has(+ [data-canvas-name="checked"]+ )+ input:checked,+ .buttonWidgetAnnotation:is(.checkBox, .radioButton):has(+ [data-canvas-name="unchecked"]+ )+ input:not(:checked){+ background-image:none;+ }++ .fileAttachmentAnnotation .popupTriggerArea{+ height:100%;+ width:100%;+ }++ .mediaAnnotation{+ pointer-events:auto;++ .mediaContent{+ width:100%;+ }++ video.mediaContent{+ height:100%;+ -o-object-fit:contain;+ object-fit:contain;+ }++ audio.mediaContent{+ position:absolute;+ bottom:0;+ }++ .mediaPlayButton{+ height:100%;+ width:100%;+ margin:0;+ padding:0;+ border:none;+ cursor:pointer;+ background-color:transparent;+ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='rgba(0,0,0,0.55)'/%3E%3Cpath d='M40 32 L70 50 L40 68 Z' fill='white'/%3E%3C/svg%3E");+ background-position:center;+ background-repeat:no-repeat;+ background-size:calc(48px * var(--total-scale-factor));++ &:hover{+ background-color:rgba(255 255 255 / 0.1);+ }+ }+ }++ .popupAnnotation{+ position:absolute;+ font-size:calc(9px * var(--total-scale-factor));+ pointer-events:none;+ width:-moz-max-content;+ width:max-content;+ max-width:45%;+ height:auto;+ }++ .popup{+ background-color:rgb(255 255 153);+ color:black;+ box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) rgb(136 136 136);+ border-radius:calc(2px * var(--total-scale-factor));+ outline:1.5px solid rgb(255 255 74);+ padding:calc(6px * var(--total-scale-factor));+ cursor:pointer;+ font:message-box;+ white-space:normal;+ word-wrap:break-word;+ pointer-events:auto;+ -webkit-user-select:text;+ -moz-user-select:text;+ user-select:text;+ }++ .popupAnnotation.focused .popup{+ outline-width:3px;+ }++ .popup *{+ font-size:calc(9px * var(--total-scale-factor));+ }++ .popup > .header{+ display:inline-block;+ }++ .popup > .header > .title{+ display:inline;+ font-weight:bold;+ }++ .popup > .header .popupDate{+ display:inline-block;+ margin-left:calc(5px * var(--total-scale-factor));+ width:-moz-fit-content;+ width:fit-content;+ }++ .popupContent{+ border-top:1px solid rgb(51 51 51);+ margin-top:calc(2px * var(--total-scale-factor));+ padding-top:calc(2px * var(--total-scale-factor));+ }++ .richText > *{+ white-space:pre-wrap;+ font-size:calc(9px * var(--total-scale-factor));+ }++ .popupTriggerArea{+ cursor:pointer;++ &:hover{+ backdrop-filter:var(--hcm-highlight-filter);+ }+ }++ section svg{+ position:absolute;+ width:100%;+ height:100%;+ top:0;+ left:0;+ }++ .annotationTextContent{+ position:absolute;+ width:100%;+ height:100%;+ opacity:0;+ color:transparent;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ pointer-events:none;++ span{+ width:100%;+ display:inline-block;+ }+ }++ svg.quadrilateralsContainer{+ contain:strict;+ width:0;+ height:0;+ position:absolute;+ top:0;+ left:0;+ z-index:-1;+ }+}++:root{+ --xfa-unfocused-field-background:url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");+ --xfa-focus-outline:auto;+}++@media screen and (forced-colors: active){+ :root{+ --xfa-focus-outline:2px solid CanvasText;+ }+ .xfaLayer *:required{+ outline:1.5px solid selectedItem;+ }+}++.xfaLayer{+ color-scheme:only light;++ background-color:transparent;+}++.xfaLayer .highlight{+ margin:-1px;+ padding:1px;+ background-color:rgb(239 203 237);+ border-radius:4px;+}++.xfaLayer .highlight.appended{+ position:initial;+}++.xfaLayer .highlight.begin{+ border-radius:4px 0 0 4px;+}++.xfaLayer .highlight.end{+ border-radius:0 4px 4px 0;+}++.xfaLayer .highlight.middle{+ border-radius:0;+}++.xfaLayer .highlight.selected{+ background-color:rgb(203 223 203);+}++.xfaPage{+ overflow:hidden;+ position:relative;+}++.xfaContentarea{+ position:absolute;+}++.xfaPrintOnly{+ display:none;+}++.xfaLayer{+ position:absolute;+ text-align:initial;+ top:0;+ left:0;+ transform-origin:0 0;+ line-height:1.2;+}++.xfaLayer *{+ color:inherit;+ font:inherit;+ font-style:inherit;+ font-weight:inherit;+ font-kerning:inherit;+ letter-spacing:-0.01px;+ text-align:inherit;+ text-decoration:inherit;+ box-sizing:border-box;+ background-color:transparent;+ padding:0;+ margin:0;+ pointer-events:auto;+ line-height:inherit;+}++.xfaLayer *:required{+ outline:1.5px solid red;+}++.xfaLayer div,+.xfaLayer svg,+.xfaLayer svg *{+ pointer-events:none;+}++.xfaLayer a{+ color:blue;+}++.xfaRich li{+ margin-left:3em;+}++.xfaFont{+ color:black;+ font-weight:normal;+ font-kerning:none;+ font-size:10px;+ font-style:normal;+ letter-spacing:0;+ text-decoration:none;+ vertical-align:0;+}++.xfaCaption{+ overflow:hidden;+ flex:0 0 auto;+}++.xfaCaptionForCheckButton{+ overflow:hidden;+ flex:1 1 auto;+}++.xfaLabel{+ height:100%;+ width:100%;+}++.xfaLeft{+ display:flex;+ flex-direction:row;+ align-items:center;+}++.xfaRight{+ display:flex;+ flex-direction:row-reverse;+ align-items:center;+}++:is(.xfaLeft, .xfaRight) > :is(.xfaCaption, .xfaCaptionForCheckButton){+ max-height:100%;+}++.xfaTop{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+}++.xfaBottom{+ display:flex;+ flex-direction:column-reverse;+ align-items:flex-start;+}++:is(.xfaTop, .xfaBottom) > :is(.xfaCaption, .xfaCaptionForCheckButton){+ width:100%;+}++.xfaBorder{+ background-color:transparent;+ position:absolute;+ pointer-events:none;+}++.xfaWrapped{+ width:100%;+ height:100%;+}++:is(.xfaTextfield, .xfaSelect):focus{+ background-image:none;+ background-color:transparent;+ outline:var(--xfa-focus-outline);+ outline-offset:-1px;+}++:is(.xfaCheckbox, .xfaRadio):focus{+ outline:var(--xfa-focus-outline);+}++.xfaTextfield,+.xfaSelect{+ height:100%;+ width:100%;+ flex:1 1 auto;+ border:none;+ resize:none;+ background-image:var(--xfa-unfocused-field-background);+}++.xfaSelect{+ padding-inline:2px;+}++:is(.xfaTop, .xfaBottom) > :is(.xfaTextfield, .xfaSelect){+ flex:0 1 auto;+}++.xfaButton{+ cursor:pointer;+ width:100%;+ height:100%;+ border:none;+ text-align:center;+}++.xfaLink{+ width:100%;+ height:100%;+ position:absolute;+ top:0;+ left:0;+}++.xfaCheckbox,+.xfaRadio{+ width:100%;+ height:100%;+ flex:0 0 auto;+ border:none;+}++.xfaRich{+ white-space:pre-wrap;+ width:100%;+ height:100%;+}++.xfaImage{+ -o-object-position:left top;+ object-position:left top;+ -o-object-fit:contain;+ object-fit:contain;+ width:100%;+ height:100%;+}++.xfaLrTb,+.xfaRlTb,+.xfaTb{+ display:flex;+ flex-direction:column;+ align-items:stretch;+}++.xfaLr{+ display:flex;+ flex-direction:row;+ align-items:stretch;+}++.xfaRl{+ display:flex;+ flex-direction:row-reverse;+ align-items:stretch;+}++.xfaTb > div{+ justify-content:left;+}++.xfaPosition{+ position:relative;+}++.xfaArea{+ position:relative;+}++.xfaValignMiddle{+ display:flex;+ align-items:center;+}++.xfaTable{+ display:flex;+ flex-direction:column;+ align-items:stretch;+}++.xfaTable .xfaRow{+ display:flex;+ flex-direction:row;+ align-items:stretch;+}++.xfaTable .xfaRlRow{+ display:flex;+ flex-direction:row-reverse;+ align-items:stretch;+ flex:1;+}++.xfaTable .xfaRlRow > div{+ flex:1;+}++:is(.xfaNonInteractive, .xfaDisabled, .xfaReadOnly) :is(input, textarea){+ background:initial;+}++@media print{+ .xfaTextfield,+ .xfaSelect{+ background:transparent;+ }++ .xfaSelect{+ -webkit-appearance:none;+ -moz-appearance:none;+ appearance:none;+ text-indent:1px;+ text-overflow:"";+ }+}++.canvasWrapper{+ svg{+ transform:none;++ &.moving{+ z-index:100000;+ }++ &.highlight,+ &.highlightOutline{+ &[data-main-rotation="90"]{+ mask,+ use:not(.clip, .mask){+ transform:matrix(0, 1, -1, 0, 1, 0);+ }+ }++ &[data-main-rotation="180"]{+ mask,+ use:not(.clip, .mask){+ transform:matrix(-1, 0, 0, -1, 1, 1);+ }+ }++ &[data-main-rotation="270"]{+ mask,+ use:not(.clip, .mask){+ transform:matrix(0, -1, 1, 0, 0, 1);+ }+ }+ }++ &.draw{+ position:absolute;+ mix-blend-mode:normal;++ &[data-draw-rotation="90"]{+ transform:rotate(90deg);+ }++ &[data-draw-rotation="180"]{+ transform:rotate(180deg);+ }++ &[data-draw-rotation="270"]{+ transform:rotate(270deg);+ }+ }++ &.highlight{+ --blend-mode:multiply;++ @media screen and (forced-colors: active){+ --blend-mode:difference;+ }++ position:absolute;+ mix-blend-mode:var(--blend-mode);++ &:not(.free){+ fill-rule:evenodd;+ }+ }++ &.highlightOutline{+ position:absolute;+ mix-blend-mode:normal;+ fill-rule:evenodd;+ fill:none;++ &:not(.free){+ &.hovered:not(.selected){+ stroke:var(--hover-outline-color);+ stroke-width:var(--outline-width);+ }++ &.selected{+ .mainOutline{+ stroke:var(--outline-around-color);+ stroke-width:calc(+ var(--outline-width) + 2 * var(--outline-around-width)+ );+ }++ .secondaryOutline{+ stroke:var(--outline-color);+ stroke-width:var(--outline-width);+ }+ }+ }++ &.free{+ &.hovered:not(.selected){+ stroke:var(--hover-outline-color);+ stroke-width:calc(2 * var(--outline-width));+ }++ &.selected{+ .mainOutline{+ stroke:var(--outline-around-color);+ stroke-width:calc(+ 2 * (var(--outline-width) + var(--outline-around-width))+ );+ }++ .secondaryOutline{+ stroke:var(--outline-color);+ stroke-width:calc(2 * var(--outline-width));+ }+ }+ }+ }+ }+}++.toggle-button{+ --toggle-background-color:var(+ --button-background-color,+ color-mix(in srgb, currentColor 7%, transparent)+ );+ --toggle-background-color-hover:var(+ --button-background-color-hover,+ color-mix(in srgb, currentColor 14%, transparent)+ );+ --toggle-background-color-active:var(+ --button-background-color-active,+ color-mix(in srgb, currentColor 21%, transparent)+ );+ --toggle-background-color-pressed:var(+ --color-accent-primary,+ light-dark(#0060df, #0df)+ );+ --toggle-background-color-pressed-hover:var(+ --color-accent-primary-hover,+ light-dark(#0250bb, #80ebff)+ );+ --toggle-background-color-pressed-active:var(+ --color-accent-primary-active,+ light-dark(#054096, #aaf2ff)+ );+ --toggle-border-color:var(+ --border-color-interactive,+ light-dark(#8f8f9d, #f9f9fa)+ );+ --toggle-border-color-hover:var(--toggle-border-color);+ --toggle-border-color-active:var(--toggle-border-color);+ --toggle-border-radius:var(--border-radius-circle, 9999px);+ --toggle-border-width:var(--border-width, 1px);+ --toggle-height:var(--size-item-small, 16px);+ --toggle-width:var(--size-item-large, 32px);+ --toggle-dot-background-color:var(--toggle-border-color);+ --toggle-dot-background-color-hover:var(--toggle-dot-background-color);+ --toggle-dot-background-color-active:var(--toggle-dot-background-color);+ --toggle-dot-background-color-on-pressed:var(+ --background-color-canvas,+ light-dark(white, #1c1b22)+ );+ --toggle-dot-margin:1px;+ --toggle-dot-height:calc(+ var(--toggle-height) - 2 * var(--toggle-dot-margin) - 2 *+ var(--toggle-border-width)+ );+ --toggle-dot-width:var(--toggle-dot-height);+ --toggle-dot-transform-x:calc(+ var(--toggle-width) - 4 * var(--toggle-dot-margin) - var(--toggle-dot-width)+ );+ --input-width:var(--toggle-width);++ -webkit-appearance:none;++ -moz-appearance:none;++ appearance:none;+ padding:0;+ border:var(--toggle-border-width) solid var(--toggle-border-color);+ height:var(--toggle-height);+ width:var(--toggle-width);+ border-radius:var(--toggle-border-radius);+ background-color:var(--toggle-background-color);+ box-sizing:border-box;++ &:focus-visible{+ outline:var(--focus-ring-outline);+ outline-offset:var(--focus-outline-offset, 2px);+ }++ &:enabled:hover{+ background-color:var(--toggle-background-color-hover);+ border-color:var(--toggle-border-color);+ }++ &:enabled:hover:active{+ background-color:var(--toggle-background-color-active);+ border-color:var(--toggle-border-color);+ }++ &::before{+ display:block;+ content:"";+ background-color:var(--toggle-dot-background-color);+ height:var(--toggle-dot-height);+ width:var(--toggle-dot-width);+ margin:var(--toggle-dot-margin);+ border-radius:var(--toggle-border-radius);+ translate:0;+ }+}++.toggle-button[aria-pressed="true"]{+ background-color:var(--toggle-background-color-pressed);+ border-color:transparent;++ &:enabled:hover{+ background-color:var(--toggle-background-color-pressed-hover);+ border-color:transparent;+ }++ &:enabled:hover:active{+ background-color:var(--toggle-background-color-pressed-active);+ border-color:transparent;+ }++ &::before{+ translate:var(--toggle-dot-transform-x);+ background-color:var(--toggle-dot-background-color-on-pressed);+ }++ &:enabled:hover::before,+ &:enabled:hover:active::before{+ background-color:var(--toggle-dot-background-color-on-pressed);+ }++ &:-moz-locale-dir(rtl)::before,+ &:dir(rtl)::before{+ translate:calc(-1 * var(--toggle-dot-transform-x));+ }+}++@media (prefers-reduced-motion: no-preference){+ .toggle-button::before{+ transition:translate 100ms;+ }+}++@media (prefers-contrast){+ .toggle-button:enabled:hover{+ border-color:var(--toggle-border-color-hover);+ }++ .toggle-button:enabled:hover:active{+ border-color:var(--toggle-border-color-active);+ }++ .toggle-button[aria-pressed="true"]:enabled{+ border-color:var(--toggle-border-color);+ position:relative;++ &:hover{+ border-color:var(--toggle-border-color-hover);++ &:active{+ background-color:var(--toggle-dot-background-color-active);+ border-color:var(--toggle-dot-background-color-hover);+ }+ }+ }++ .toggle-button:enabled:hover::before,+ .toggle-button:enabled:hover:active::before{+ background-color:var(--toggle-dot-background-color-hover);+ }+}++@media (forced-colors){+ .toggle-button{+ --toggle-background-color:var(--button-background-color, ButtonFace);+ --toggle-background-color-pressed:var(--color-accent-primary, ButtonText);+ --toggle-background-color-pressed-hover:var(+ --color-accent-primary-hover,+ SelectedItem+ );+ --toggle-background-color-pressed-active:var(+ --color-accent-primary-active,+ SelectedItem+ );+ --toggle-border-color:var(--border-color-interactive, ButtonText);+ --toggle-dot-background-color:var(--color-accent-primary, ButtonText);+ --toggle-dot-background-color-hover:var(+ --color-accent-primary-hover,+ SelectedItem+ );+ --toggle-dot-background-color-active:var(+ --color-accent-primary-active,+ SelectedItem+ );+ --toggle-dot-background-color-on-pressed:var(+ --button-background-color,+ ButtonFace+ );+ --toggle-border-color-hover:var(+ --border-color-interactive-hover,+ SelectedItem+ );+ --toggle-border-color-active:var(+ --border-color-interactive-active,+ ButtonText+ );+ }++ .toggle-button[aria-pressed="true"]:enabled::after{+ border:1px solid var(--button-background-color, ButtonFace);+ content:"";+ position:absolute;+ height:var(--toggle-height);+ width:var(--toggle-width);+ display:block;+ border-radius:var(--toggle-border-radius);+ inset:-2px;+ }++ .toggle-button[aria-pressed="true"]:enabled:hover:active::after{+ border-color:var(--toggle-border-color-active);+ }+}++:root{+ --clear-signature-button-icon:url(images/editor-toolbar-delete.svg);+ --signature-bg:var(+ --background-color-box-info,+ light-dark(#f9f9fb, #2b2a33)+ );+ --signature-hover-bg:var(+ --button-background-color-hover,+ light-dark(#f0f0f4, var(--signature-bg))+ );+ --button-signature-bg:transparent;+ --button-signature-color:var(--main-color);+ --button-signature-active-bg:light-dark(#cfcfd8, #5b5b66);+ --button-signature-active-border:none;+ --button-signature-active-color:var(--button-signature-color);+ --button-signature-border:none;+ --button-signature-hover-bg:light-dark(#e0e0e6, #52525e);+ --button-signature-hover-color:var(--button-signature-color);++ @media screen and (forced-colors: active){+ --signature-bg:HighlightText;+ --signature-hover-bg:var(--signature-bg);+ --button-signature-bg:HighlightText;+ --button-signature-color:ButtonText;+ --button-signature-active-bg:ButtonText;+ --button-signature-active-color:HighlightText;+ --button-signature-border:1px solid ButtonText;+ --button-signature-hover-bg:Highlight;+ --button-signature-hover-color:HighlightText;+ }+}++.signatureDialog{+ --primary-color:var(--text-primary-color);+ --signature-border-color:var(--border-color-interactive, #8f8f9d);+ --open-link-fg:var(--link-fg-color);+ --open-link-hover-fg:var(--link-hover-fg-color);++ @media screen and (forced-colors: active){+ --primary-color:ButtonText;+ --signature-border-color:var(--border-color-interactive, ButtonText);+ --open-link-fg:ButtonText;+ --open-link-hover-fg:ButtonText;+ }++ width:570px;+ max-width:100%;+ min-width:300px;+ padding:16px 0;++ .mainContainer{+ width:100%;+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:12px;++ span:not([role="sectionhead"]){+ font-size:13px;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ }++ .title{+ margin-inline-start:16px;+ }+ }++ .inputWithClearButton{+ --button-dimension:24px;+ --clear-button-icon:url(images/messageBar_closingButton.svg);++ width:100%;+ position:relative;+ display:flex;+ align-items:center;+ justify-content:center;++ > input{+ width:100%;+ height:var(--size-item-large, 32px);+ padding-inline:8px calc(4px + var(--button-dimension));+ box-sizing:border-box;+ border-radius:var(--border-radius-small, 4px);+ border:1px solid var(--signature-border-color);+ }++ .clearInputButton{+ position:absolute;+ inset-block-start:4px;+ inset-inline-end:4px;+ display:inline-block;+ width:var(--button-dimension);+ height:var(--button-dimension);+ background-color:var(--input-text-fg-color);+ -webkit-mask-size:cover;+ mask-size:cover;+ -webkit-mask-image:var(--clear-button-icon);+ mask-image:var(--clear-button-icon);+ padding:0;+ border:0;+ }+ }+}++#addSignatureDialog{+ --secondary-color:var(--text-secondary-color);+ --bg-hover:var(+ --button-background-color-hover,+ light-dark(#e0e0e6, #52525e)+ );+ --tab-top-line-active-color:var(+ --color-accent-primary,+ light-dark(#0060df, #0df)+ );+ --tab-top-line-active-hover-color:var(--tab-text-hover-color);+ --tab-top-line-hover-color:var(--border-color-interactive, #8f8f9d);+ --tab-top-line-inactive-color:light-dark(#cfcfd8, #8f8f9d);+ --tab-bottom-line-active-color:var(--tab-top-line-inactive-color);+ --tab-bottom-line-hover-color:var(--tab-top-line-inactive-color);+ --tab-bottom-line-inactive-color:var(--tab-top-line-inactive-color);+ --tab-bg:var(--dialog-bg-color);+ --tab-bg-active-color:var(--tab-bg);+ --tab-bg-active-hover-color:var(--bg-hover);+ --tab-bg-hover:var(--bg-hover);+ --tab-panel-border:none;+ --tab-panel-border-radius:var(--border-radius-small, 4px);+ --tab-text-color:var(--primary-color);+ --tab-text-active-color:var(--tab-top-line-active-color);+ --tab-text-active-hover-color:var(--tab-text-hover-color);+ --tab-text-hover-color:var(--tab-text-color);+ --signature-placeholder-color:var(--secondary-color);+ --signature-draw-placeholder-color:var(--primary-color);+ --signature-color:var(--primary-color);+ --save-warning-color:var(--secondary-color);+ --thickness-bg:var(--dialog-bg-color);+ --thickness-label-color:var(--primary-color);+ --thickness-slider-color:var(--primary-color);+ --thickness-border:none;+ --draw-cursor:url(images/cursor-editorInk.svg) 0 16, pointer;++ @media screen and (forced-colors: active){+ --secondary-color:ButtonText;+ --bg:HighlightText;+ --bg-hover:var(--bg);+ --tab-top-line-active-color:var(--color-accent-primary, ButtonText);+ --tab-top-line-active-hover-color:HighlightText;+ --tab-top-line-hover-color:var(--border-color-interactive, SelectedItem);+ --tab-top-line-inactive-color:ButtonText;+ --tab-bottom-line-active-color:var(--tab-top-line-active-color);+ --tab-bottom-line-hover-color:var(--tab-top-line-hover-color);+ --tab-bg:var(--bg);+ --tab-bg-active-color:SelectedItem;+ --tab-bg-active-hover-color:SelectedItem;+ --tab-panel-border:1px solid ButtonText;+ --tab-panel-border-radius:8px;+ --tab-text-color:ButtonText;+ --tab-text-active-color:HighlightText;+ --tab-text-active-hover-color:HighlightText;+ --tab-text-hover-color:SelectedItem;+ --signature-color:ButtonText;+ --thickness-bg:Canvas;+ --thickness-label-color:CanvasText;+ --thickness-slider-color:ButtonText;+ --thickness-border:1px solid var(--signature-border-color);+ }++ #addSignatureDialogLabel{+ overflow:hidden;+ position:absolute;+ inset:0;+ width:0;+ height:0;+ }++ &.waiting::after{+ content:"";+ cursor:wait;+ position:absolute;+ inset:0;+ width:100%;+ height:100%;+ }++ .mainContainer{+ [role="tablist"]{+ width:100%;+ display:flex;+ align-items:flex-start;+ gap:0;++ > [role="tab"]{+ flex:1 0 0;+ align-self:stretch;+ background-color:var(--tab-bg);+ padding-inline:0;+ cursor:default;++ border-inline:0;+ border-block-width:1px;+ border-block-style:solid;+ border-block-start-color:var(--tab-top-line-inactive-color);+ border-block-end-color:var(--tab-bottom-line-inactive-color);+ border-radius:0;++ font:menu;+ font-size:13px;+ font-style:normal;+ line-height:normal;+ font-weight:400;+ color:var(--tab-text-color);++ &:hover{+ border-block-start-width:2px;+ border-block-start-color:var(--tab-top-line-hover-color);+ border-block-end-color:var(--tab-bottom-line-hover-color);+ background-color:var(--tab-bg-hover);+ color:var(--tab-text-hover-color);+ }++ &:focus-visible{+ outline:2px solid var(--tab-top-line-active-color);+ outline-offset:-2px;+ }++ &[aria-selected="true"]{+ border-block-start-width:2px;+ border-block-start-color:var(--tab-top-line-active-color);+ border-block-end-color:var(--tab-bottom-line-active-color);+ background-color:var(--tab-bg-active-color);+ font-weight:590;+ color:var(--tab-text-active-color);++ &:hover{+ border-block-start-color:var(--tab-top-line-active-hover-color);+ background-color:var(--tab-bg-active-hover-color);+ color:var(--tab-text-active-hover-color);+ }+ }+ }+ }++ #addSignatureActionContainer{+ width:100%;+ height:auto;+ display:flex;+ flex-direction:column;+ align-items:flex-end;+ align-self:stretch;+ gap:12px;+ padding-inline:16px;+ box-sizing:border-box;++ > [role="tabpanel"]{+ position:relative;+ width:100%;+ height:220px;+ background-color:var(--signature-bg);+ border:var(--tab-panel-border);+ border-radius:var(--tab-panel-border-radius);++ > svg{+ position:absolute;+ inset:0;+ width:100%;+ height:100%;+ background-color:transparent;+ }++ &#addSignatureTypeContainer{+ display:none;++ #addSignatureTypeInput{+ position:absolute;+ inset:0;+ width:100%;+ height:100%;+ border:0;+ padding:0;+ text-align:center;+ color:var(--signature-color);+ background-color:transparent;+ border-radius:var(--tab-panel-border-radius);++ font-family:"Brush script", "Apple Chancery", "Segoe script", "Freestyle Script", "Palace Script MT", "Brush Script MT", TK, cursive, serif;+ font-size:44px;+ font-style:italic;+ font-weight:400;++ &::-moz-placeholder{+ color:var(--signature-placeholder-color);+ text-align:center;++ font:menu;+ font-style:normal;+ font-weight:274;+ font-size:44px;+ line-height:normal;+ }++ &::placeholder{+ color:var(--signature-placeholder-color);+ text-align:center;++ font:menu;+ font-style:normal;+ font-weight:274;+ font-size:44px;+ line-height:normal;+ }+ }+ }++ &#addSignatureDrawContainer{+ display:none;++ > span{+ position:absolute;+ top:0;+ left:0;+ width:100%;+ height:100%;+ display:grid;+ align-items:center;+ justify-content:center;++ background-color:transparent;+ color:var(--signature-placeholder-color);+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ }++ > svg{+ stroke:var(--signature-color);+ fill:none;+ stroke-opacity:1;+ stroke-linecap:round;+ stroke-linejoin:round;+ stroke-miterlimit:10;++ &:hover{+ cursor:var(--draw-cursor);+ }+ }++ #thickness{+ position:absolute;+ width:100%;+ inset-block-end:0;+ display:grid;+ align-items:center;+ justify-content:center;+ pointer-events:none;++ > span{+ color:var(--signature-draw-placeholder-color);+ }++ > div{+ width:auto;+ height:auto;+ display:flex;+ align-items:center;+ justify-content:center;+ gap:8px;+ padding:6px 8px 7px;+ margin:0;+ background-color:var(--thickness-bg);+ border-radius:4px 4px 0 0;+ border-inline:var(--thickness-border);+ border-top:var(--thickness-border);+ pointer-events:auto;+ position:relative;+ top:1px;++ > label{+ color:var(--thickness-label-color);+ }++ > input{+ width:100px;+ height:14px;+ background-color:transparent;++ &::-webkit-slider-runnable-track,+ &::-moz-range-track,+ &::-moz-range-progress{+ background-color:var(--thickness-slider-color);+ }++ &::-webkit-slider-thumb,+ &::-moz-range-thumb{+ background-color:var(--thickness-bg);+ }++ border-radius:4.5px;+ border:0;+ color:var(--signature-color);+ }+ }+ }+ }++ &#addSignatureImageContainer{+ display:none;++ > svg{+ stroke:none;+ stroke-width:0;+ fill:var(--signature-color);+ fill-opacity:1;+ }++ #addSignatureImagePlaceholder{+ position:absolute;+ top:0;+ left:0;+ width:100%;+ height:100%;+ background-color:transparent;+ display:flex;+ flex-direction:column;+ align-items:center;+ justify-content:center;++ span{+ color:var(--signature-placeholder-color);+ }++ a{+ color:var(--open-link-fg);+ text-decoration:underline;+ cursor:pointer;++ &:hover{+ color:var(--open-link-hover-fg);+ }+ }+ }++ #addSignatureFilePicker{+ visibility:hidden;+ position:relative;+ width:0;+ height:0;+ }+ }+ }++ &[data-selected="type"] > #addSignatureTypeContainer,+ &[data-selected="draw"] > #addSignatureDrawContainer,+ &[data-selected="image"] > #addSignatureImageContainer{+ display:block;+ }++ #addSignatureControls{+ display:flex;+ flex-direction:column;+ justify-content:center;+ align-items:flex-start;+ gap:12px;+ align-self:stretch;++ #horizontalContainer{+ display:flex;+ align-items:flex-end;+ gap:16px;+ align-self:stretch;++ #addSignatureDescriptionContainer{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:4px;+ flex:1 0 0;++ &:has(input:disabled) > label{+ opacity:0.4;+ }++ > label{+ width:auto;+ }+ }++ #clearSignatureButton{+ display:flex;+ align-items:center;++ > span{+ display:flex;+ height:24px;+ align-items:center;+ gap:4px;+ flex-shrink:0;++ &::after{+ content:"";+ display:inline-block;+ width:16px;+ height:16px;+ -webkit-mask-image:var(--clear-signature-button-icon);+ mask-image:var(--clear-signature-button-icon);+ -webkit-mask-size:cover;+ mask-size:cover;+ background-color:currentColor;+ flex-shrink:0;+ }+ }+ }+ }++ #addSignatureSaveContainer{+ display:grid;+ grid-template-columns:max-content auto;+ gap:4px;+ width:100%;++ > input{+ margin:0;++ &:disabled + label{+ opacity:0.4;+ }+ }++ > label{+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ }++ &:not(.fullStorage) #addSignatureSaveWarning{+ display:none;+ }++ &.fullStorage #addSignatureSaveWarning{+ display:block;+ opacity:1;+ color:var(--save-warning-color);+ font-size:11px;+ }+ }+ }+ }+ }+}++#editSignatureDescriptionDialog{+ .mainContainer{+ padding-inline:16px;+ box-sizing:border-box;++ .title{+ margin-inline-start:0;+ }++ #editSignatureDescriptionAndView{+ width:auto;+ display:flex;+ justify-content:flex-end;+ align-items:flex-start;+ gap:12px;+ align-self:stretch;++ #editSignatureDescriptionContainer{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:4px;+ flex:1 1 auto;+ }++ > svg{+ width:210px;+ height:180px;+ padding:8px;+ background-color:var(--signature-bg);++ > path{+ stroke:var(--button-signature-color);+ stroke-width:1px;+ stroke-linecap:round;+ stroke-linejoin:round;+ stroke-miterlimit:10;+ vector-effect:non-scaling-stroke;+ fill:none;++ &.contours{+ fill:var(--button-signature-color);+ stroke-width:0.5px;+ }+ }+ }+ }+ }+}++#editorSignatureParamsToolbar{+ padding:8px;++ #addSignatureDoorHanger{+ gap:8px;+ padding:2px;++ .toolbarAddSignatureButtonContainer{+ height:32px;+ display:flex;+ justify-content:space-between;+ align-items:center;+ align-self:stretch;+ gap:8px;++ button{+ border:var(--button-signature-border);+ border-radius:4px;+ background-color:var(--button-signature-bg);+ color:var(--button-signature-color);++ &:hover{+ background-color:var(--button-signature-hover-bg);+ }++ &:active{+ border:var(--button-signature-active-border);+ background-color:var(--button-signature-active-bg);+ color:var(--button-signature-active-color);++ &::before{+ background-color:var(--button-signature-active-color);+ }+ }++ &:focus-visible{+ outline:var(--focus-ring-outline);++ &::before{+ background-color:var(--button-signature-color);+ }+ }+ }++ .deleteButton{+ &::before{+ -webkit-mask-image:var(--clear-signature-button-icon);+ mask-image:var(--clear-signature-button-icon);+ }+ }++ .toolbarAddSignatureButton{+ width:calc(0.8 * var(--editor-toolbar-min-width));+ height:100%;+ min-height:var(--menuitem-height);+ aspect-ratio:unset;+ display:flex;+ align-items:center;+ justify-content:flex-start;+ outline:none;+ border-radius:4px;+ box-sizing:border-box;+ font:message-box;+ position:relative;+ flex:1 1 auto;+ padding:0;+ gap:8px;+ text-align:start;+ white-space:normal;+ cursor:default;+ overflow:hidden;++ > svg{+ display:inline-block;+ height:100%;+ aspect-ratio:1;+ background-color:var(--signature-bg);+ flex:none;+ padding:4px;+ box-sizing:border-box;+ border:none;+ border-radius:4px;++ > path{+ stroke:var(--button-signature-color);+ stroke-width:1px;+ stroke-linecap:round;+ stroke-linejoin:round;+ stroke-miterlimit:10;+ vector-effect:non-scaling-stroke;+ fill:none;++ &.contours{+ fill:var(--button-signature-color);+ stroke-width:0.5px;+ }+ }+ }++ &:is(:hover, :active) > svg{+ border-radius:4px 0 0 4px;+ background-color:var(--signature-hover-bg);+ }++ &:hover{+ > span{+ color:var(--button-signature-hover-color);+ }+ }++ &:active{+ background-color:var(--button-signature-active-bg);+ }++ &:is([disabled="disabled"], [disabled]){+ opacity:0.5;+ pointer-events:none;+ }++ > span{+ height:auto;+ text-overflow:ellipsis;+ white-space:nowrap;+ flex:1 1 auto;+ font:menu;+ font-size:13px;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ overflow:hidden;+ }+ }+ }+ }+}++.editDescription.altText{+ --alt-text-add-image:url(images/editor-toolbar-edit.svg) !important;++ &::before{+ width:16px !important;+ height:16px !important;+ }+}++.commentPopup,+#commentManagerDialog{+ width:360px;+ max-width:100%;+ min-width:200px;+ position:absolute;+ padding:8px 16px 16px;+ margin-left:0;+ margin-top:0;+ box-sizing:border-box;++ border-radius:8px;+}++#commentManagerDialog{+ --comment-close-button-icon:url(images/comment-closeButton.svg);++ .mainContainer{+ width:100%;+ height:auto;+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:4px;++ #commentManagerToolbar{+ width:100%;+ height:32px;+ display:flex;+ justify-content:flex-start;+ align-items:flex-start;+ gap:8px;+ align-self:stretch;++ cursor:move;+ }++ #commentManagerTextInput{+ width:100%;+ min-height:132px;+ margin-bottom:12px;+ }+ }+}++.annotationLayer.disabled :is(.annotationCommentButton){+ display:none;+}++:is(.annotationLayer, .annotationEditorLayer){+ .annotationCommentButton{+ color-scheme:light dark;+ --comment-button-bg:var(+ --background-color-canvas,+ light-dark(white, #1c1b22)+ );+ --comment-button-fg:light-dark(#5b5b66, #fbfbfe);+ --comment-button-active-bg:light-dark(#0041a4, #a6ecf4);+ --comment-button-active-fg:var(+ --button-text-color-primary,+ light-dark(white, #15141a)+ );+ --comment-button-hover-bg:var(+ --color-accent-primary-hover,+ light-dark(#0053cb, #61dce9)+ );+ --comment-button-hover-fg:var(+ --button-text-color-primary,+ light-dark(white, #15141a)+ );+ --comment-button-selected-bg:var(+ --color-accent-primary,+ light-dark(#0062fa, #00cadb)+ );+ --comment-button-border-color:var(+ --border-color-interactive,+ light-dark(#8f8f9d, #bfbfc9)+ );+ --comment-button-active-border-color:var(--comment-button-active-bg);+ --comment-button-focus-border-color:light-dark(#cfcfd8, #3a3944);+ --comment-button-hover-border-color:var(--comment-button-hover-bg);+ --comment-button-selected-border-color:var(--comment-button-selected-bg);+ --comment-button-selected-fg:var(+ --button-text-color-primary,+ light-dark(white, #15141a)+ );+ --comment-button-dim:24px;+ --comment-button-box-shadow:0 0.25px 0.75px 0 light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)), 0 2px 6px 0 light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));+ --comment-button-focus-outline-color:var(+ --focus-outline-color,+ light-dark(#0062fa, #00cadb)+ );+ @media screen and (forced-colors: active){+ --comment-button-bg:var(--button-background-color, ButtonFace);+ --comment-button-fg:var(--button-text-color, ButtonText);+ --comment-button-hover-bg:var(+ --button-background-color-hover,+ SelectedItemText+ );+ --comment-button-hover-fg:var(--button-text-color-hover, SelectedItem);+ --comment-button-active-bg:var(+ --button-background-color-active,+ SelectedItemText+ );+ --comment-button-active-fg:var(--button-text-color-active, SelectedItem);+ --comment-button-border-color:var(--button-border-color, ButtonBorder);+ --comment-button-active-border-color:var(+ --button-border-color-active,+ ButtonBorder+ );+ --comment-button-hover-border-color:var(+ --button-border-color-hover,+ SelectedItem+ );+ --comment-button-box-shadow:none;+ --comment-button-focus-outline-color:var(+ --focus-outline-color,+ CanvasText+ );+ --comment-button-selected-bg:var(+ --button-background-color-primary,+ ButtonBorder+ );+ --comment-button-selected-fg:var(+ --button-text-color-primary,+ ButtonFace+ );+ }++ position:absolute;+ width:var(--comment-button-dim);+ height:var(--comment-button-dim);+ background-color:var(--comment-button-bg);+ border-radius:6px 6px 6px 0;+ border:1px solid var(--comment-button-border-color);+ box-shadow:var(--comment-button-box-shadow);+ cursor:auto;+ z-index:1;+ padding:4px;+ margin:0;+ box-sizing:border-box;+ pointer-events:auto;++ &:dir(rtl){+ border-radius:6px 6px 0;+ }++ &::before{+ content:"";+ display:inline-block;+ width:100%;+ height:100%;+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-size:cover;+ mask-size:cover;+ -webkit-mask-image:var(--comment-edit-button-icon);+ mask-image:var(--comment-edit-button-icon);+ background-color:var(--comment-button-fg);+ margin:0;+ padding:0;+ transform:scaleX(var(--dir-factor));+ }++ &:focus-visible{+ outline:2px solid var(--comment-button-focus-outline-color);+ outline-offset:1px;+ border-color:var(--comment-button-focus-border-color);+ }++ &:hover{+ background-color:var(--comment-button-hover-bg) !important;+ border-color:var(--comment-button-hover-border-color);++ &::before{+ background-color:var(--comment-button-hover-fg);+ }+ }++ &:active{+ background-color:var(--comment-button-active-bg) !important;+ border-color:var(--comment-button-active-border-color);++ &::before{+ background-color:var(--comment-button-active-fg);+ }+ }++ &.selected{+ background-color:var(--comment-button-selected-bg) !important;+ border-color:var(--comment-button-selected-border-color);++ &::before{+ background-color:var(--comment-button-selected-fg);+ }+ }+ }+}++#editorCommentsSidebar,+.commentPopup{+ --comment-close-button-icon:url(images/comment-closeButton.svg);+ --comment-popup-edit-button-icon:url(images/comment-popup-editButton.svg);+ --comment-popup-delete-button-icon:url(images/editor-toolbar-delete.svg);++ --comment-date-fg-color:light-dark(+ rgb(21 20 26 / 0.69),+ rgb(251 251 254 / 0.69)+ );+ --comment-bg-color:light-dark(#f9f9fb, #1c1b22);+ --comment-hover-bg-color:light-dark(#e0e0e6, #2c2b33);+ --comment-active-bg-color:light-dark(#d1d1d9, #3a3944);+ --comment-hover-brightness:0.89;+ --comment-hover-filter:brightness(var(--comment-hover-brightness));+ --comment-active-brightness:0.825;+ --comment-active-filter:brightness(var(--comment-active-brightness));+ --comment-border-color:light-dark(#f0f0f4, #52525e);+ --comment-focus-outline-color:var(+ --focus-outline-color,+ light-dark(#0062fa, #00cadb)+ );+ --comment-fg-color:var(--text-color, light-dark(#15141a, #fbfbfe));+ --comment-count-bg-color:light-dark(#e2f7ff, #00317e);+ --comment-indicator-active-fg-color:light-dark(#0041a4, #a6ecf4);+ --comment-indicator-active-filter:brightness(+ calc(1 / var(--comment-active-brightness))+ );+ --comment-indicator-focus-fg-color:light-dark(#5b5b66, #fbfbfe);+ --comment-indicator-hover-fg-color:var(+ --color-accent-primary-hover,+ light-dark(#0053cb, #61dce9)+ );+ --comment-indicator-hover-filter:brightness(+ calc(1 / var(--comment-hover-brightness))+ );+ --comment-indicator-selected-fg-color:var(+ --color-accent-primary,+ light-dark(#0062fa, #00cadb)+ );++ --button-comment-bg:transparent;+ --button-comment-color:var(--main-color);+ --button-comment-active-bg:light-dark(#cfcfd8, #5b5b66);+ --button-comment-active-border:none;+ --button-comment-active-color:var(--button-comment-color);+ --button-comment-border:none;+ --button-comment-hover-bg:light-dark(#e0e0e6, #52525e);+ --button-comment-hover-color:var(--button-comment-color);++ @media screen and (forced-colors: active){+ --comment-date-fg-color:CanvasText;+ --comment-bg-color:Canvas;+ --comment-hover-bg-color:Canvas;+ --comment-hover-filter:none;+ --comment-active-bg-color:Canvas;+ --comment-active-filter:none;+ --comment-border-color:CanvasText;+ --comment-fg-color:var(--text-color, CanvasText);+ --comment-count-bg-color:Canvas;+ --comment-indicator-active-fg-color:SelectedItem;+ --comment-indicator-focus-fg-color:var(--text-color, CanvasText);+ --comment-indicator-hover-fg-color:var(--text-color, CanvasText);+ --comment-indicator-selected-fg-color:SelectedItem;+ --button-comment-bg:ButtonFace;+ --button-comment-color:ButtonText;+ --button-comment-active-bg:Highlight;+ --button-comment-active-color:HighlightText;+ --button-comment-border:1px solid ButtonText;+ --button-comment-hover-bg:Highlight;+ --button-comment-hover-color:HighlightText;+ }+}++#editorCommentsSidebar{+ display:flex;+ height:auto;+ padding-bottom:16px;+ flex-direction:column;+ align-items:flex-start;+ overflow-y:visible;++ #editorCommentsSidebarHeader{+ width:100%;+ box-sizing:border-box;+ padding:16px;+ display:flex;+ align-items:center;+ justify-content:space-between;++ .commentCount{+ display:flex;+ align-items:baseline;+ gap:6px;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;++ #editorCommentsSidebarTitle{+ font:menu;+ font-style:normal;+ font-weight:590;+ line-height:normal;+ font-size:17px;+ color:var(--comment-fg-color);+ }++ #editorCommentsSidebarCount{+ padding:0 4px;+ border-radius:4px;+ background-color:var(--comment-count-bg-color);++ color:var(--comment-fg-color);+ text-align:center;++ font:menu;+ font-size:13px;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ }+ }++ #editorCommentsSidebarCloseButton{+ width:32px;+ height:32px;+ padding:8px;+ border-radius:4px;+ border:var(--button-comment-border);+ background-color:var(--button-comment-bg);+ cursor:pointer;++ &::before{+ content:"";+ display:inline-block;+ width:100%;+ height:100%;+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ -webkit-mask-image:var(--comment-close-button-icon);+ mask-image:var(--comment-close-button-icon);+ background-color:var(--button-comment-color);+ }++ &:hover{+ background-color:var(--button-comment-hover-bg);++ &::before{+ background-color:var(--button-comment-hover-color);+ }+ }++ &:active{+ border:var(--button-comment-active-border);+ background-color:var(--button-comment-active-bg);++ &::before{+ background-color:var(--button-comment-active-color);+ }+ }++ &:focus-visible{+ outline:var(--focus-ring-outline);+ }++ > span{+ display:inline-block;+ width:0;+ height:0;+ overflow:hidden;+ }+ }+ }++ #editorCommentsSidebarListContainer{+ overflow:auto;+ width:100%;++ #editorCommentsSidebarList{+ display:flex;+ width:auto;+ padding:4px 16px;+ gap:10px;+ align-items:flex-start;+ flex-direction:column;+ list-style-type:none;++ .sidebarComment{+ display:flex;+ width:auto;+ padding:8px 16px 16px;+ flex-direction:column;+ align-items:flex-start;+ align-self:stretch;+ gap:4px;++ border-radius:8px;+ border:0.5px solid var(--comment-border-color);+ background-color:var(--comment-bg-color);++ &:not(.noComments){+ &:hover{+ @media screen and (forced-colors: active){+ background-color:var(--comment-hover-bg-color);+ }+ filter:var(--comment-hover-filter);++ time::after{+ display:inline-block;+ background-color:var(--comment-indicator-hover-fg-color);+ filter:var(--comment-indicator-hover-filter);+ }+ }++ &:active{+ @media screen and (forced-colors: active){+ background-color:var(--comment-active-bg-color);+ }+ filter:var(--comment-active-filter);++ time::after{+ display:inline-block;+ background-color:var(--comment-indicator-active-fg-color);+ filter:var(--comment-indicator-active-filter);+ }+ }++ &:is(:focus, :focus-visible) time::after{+ display:inline-block;+ background-color:var(--comment-indicator-focus-fg-color);+ }++ &:focus-visible{+ outline:2px solid var(--comment-focus-outline-color);+ outline-offset:2px;+ }++ &.selected{+ .sidebarCommentText{+ max-height:-moz-fit-content;+ max-height:fit-content;+ -webkit-line-clamp:unset;+ }++ time::after{+ display:inline-block;+ background-color:var(--comment-indicator-selected-fg-color);+ }+ }+ }++ .sidebarCommentText{+ font:menu;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ font-size:15px;+ width:100%;+ height:-moz-fit-content;+ height:fit-content;+ max-height:80px;+ display:-webkit-box;+ -webkit-box-orient:vertical;+ -webkit-line-clamp:2;+ overflow:hidden;+ overflow-wrap:break-word;++ .richText{+ --total-scale-factor:1.5;+ }+ }++ &.noComments{+ .sidebarCommentText{+ max-height:-moz-fit-content;+ max-height:fit-content;+ -webkit-line-clamp:unset;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ }++ a{+ font:menu;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ font-size:15px;+ width:100%;+ height:auto;+ overflow-wrap:break-word;+ margin-block-start:15px;+ color:var(--link-fg-color);++ &:focus-visible{+ outline:var(--focus-ring-outline);+ }++ &:hover{+ color:var(--link-hover-fg-color);+ }+ }+ }++ time{+ width:100%;+ display:inline-flex;+ align-items:center;+ justify-content:space-between;++ font:menu;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ font-size:13px;++ &::after{+ content:"";+ display:none;+ width:16px;+ height:16px;+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ -webkit-mask-image:var(--comment-edit-button-icon);+ mask-image:var(--comment-edit-button-icon);+ transform:scaleX(var(--dir-factor));+ }+ }+ }+ }+ }+}++.commentPopup{+ color-scheme:light dark;++ --divider-color:light-dark(#cfcfd8, #3a3944);+ --comment-shadow:0 0.5px 2px 0 light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)), 0 4px 16px 0 light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));++ @media screen and (forced-colors: active){+ --divider-color:CanvasText;+ --comment-shadow:none;+ }++ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:12px;+ z-index:100001;+ pointer-events:auto;+ margin-top:2px;++ border:0.5px solid var(--comment-border-color);+ background:var(--comment-bg-color);+ box-shadow:var(--comment-shadow);++ &:focus-visible{+ outline:none;+ }++ &.dragging{+ cursor:move !important;++ *{+ cursor:move !important;+ }++ button{+ pointer-events:none !important;+ }+ }++ &:not(.selected) .commentPopupButtons{+ visibility:hidden !important;+ }++ hr{+ width:100%;+ height:1px;+ border:none;+ border-top:1px solid var(--divider-color);+ margin:0;+ padding:0;+ }++ .commentPopupTop{+ display:flex;+ width:100%;+ height:auto;+ padding-bottom:4px;+ justify-content:space-between;+ align-items:center;+ align-self:stretch;+ cursor:move;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;++ .commentPopupTime{+ font:menu;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ font-size:13px;+ color:var(--comment-date-fg-color);+ }++ .commentPopupButtons{+ display:flex;+ align-items:center;+ gap:2px;+ cursor:default;++ > button{+ width:32px;+ height:32px;+ padding:8px;+ border:var(--button-comment-border);+ border-radius:4px;+ background-color:var(--button-comment-bg);+ color:var(--button-comment-color);++ &:hover{+ background-color:var(--button-comment-hover-bg);++ &::before{+ background-color:var(--button-comment-hover-color);+ }+ }++ &:active{+ border:var(--button-comment-active-border);+ background-color:var(--button-comment-active-bg);+ color:var(--button-comment-active-color);++ &::before{+ background-color:var(--button-comment-active-color);+ }+ }++ &:focus-visible{+ background-color:var(--button-comment-hover-bg);+ outline:2px solid var(--comment-focus-outline-color);+ outline-offset:0;+ }++ &::before{+ content:"";+ display:inline-block;+ width:100%;+ height:100%;+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ }++ &.commentPopupEdit::before{+ -webkit-mask-image:var(--comment-popup-edit-button-icon);+ mask-image:var(--comment-popup-edit-button-icon);+ }++ &.commentPopupDelete::before{+ -webkit-mask-image:var(--comment-popup-delete-button-icon);+ mask-image:var(--comment-popup-delete-button-icon);+ }+ }+ }+ }++ .commentPopupText{+ width:100%;+ height:auto;++ font:menu;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ font-size:15px;+ color:var(--comment-fg-color);+ }+}++.commentPopupText,+.sidebarCommentText .richText{+ margin-block:0;++ p:first-of-type{+ margin-block:0;+ }++ > *{+ white-space:pre-wrap;+ font-size:max(15px, calc(10px * var(--total-scale-factor)));+ overflow-wrap:break-word;+ }++ span{+ color:var(--comment-fg-color) !important;+ }+}++:root{+ --editor-toolbar-vert-offset:6px;+ --outline-width:2px;+ --outline-color:var(--color-blue-60, #0060df);+ --outline-around-width:1px;+ --outline-around-color:var(--color-gray-20, #f0f0f4);+ --hover-outline-around-color:var(--outline-around-color);+ --editor-selection-outline:solid var(--outline-width) var(--outline-color);+ --unfocus-outline:solid var(--outline-width) transparent;+ --focus-outline-around:solid var(--outline-around-width) var(--outline-around-color);+ --hover-outline-color:var(--color-gray-60, #8f8f9d);+ --hover-outline:solid var(--outline-width) var(--hover-outline-color);+ --hover-outline-around:solid var(--outline-around-width) var(--hover-outline-around-color);+ --freetext-line-height:1.35;+ --freetext-padding:2px;+ --resizer-bg-color:var(--outline-color);+ --resizer-size:6px;+ --resizer-shift:calc(+ 0px - (var(--outline-width) + var(--resizer-size)) / 2 -+ var(--outline-around-width)+ );+ --editorFreeText-editing-cursor:text;+ --editorInk-editing-cursor:url(images/cursor-editorInk.svg) 0 16, pointer;+ --editorHighlight-editing-cursor:url(images/cursor-editorTextHighlight.svg) 24 24, text;+ --editorFreeHighlight-editing-cursor:url(images/cursor-editorFreeHighlight.svg) 1 18, pointer;++ --new-alt-text-warning-image:url(images/altText_warning.svg);+}++.textLayer{+ &.highlighting{+ cursor:var(--editorFreeHighlight-editing-cursor);++ &:not(.free) span{+ cursor:var(--editorHighlight-editing-cursor);++ &[role="img"]{+ cursor:var(--editorFreeHighlight-editing-cursor);+ }+ }++ &.free span{+ cursor:var(--editorFreeHighlight-editing-cursor);+ }+ }+}++.page:has(.annotationEditorLayer.nonEditing)+ .annotationLayer+ .editorAnnotation{+ position:absolute;+ pointer-events:none;+}++#viewerContainer.pdfPresentationMode:fullscreen,+.annotationEditorLayer.disabled{+ .noAltTextBadge{+ display:none !important;+ }+}++@media (min-resolution: 1.1dppx){+ :root{+ --editorFreeText-editing-cursor:url(images/cursor-editorFreeText.svg) 0 16, text;+ }+}++@media screen and (forced-colors: active){+ :root{+ --outline-color:CanvasText;+ --outline-around-color:ButtonFace;+ --resizer-bg-color:ButtonText;+ --hover-outline-color:var(--color-accent-primary-hover, Highlight);+ --hover-outline-around-color:SelectedItemText;+ }+}++[data-editor-rotation="90"]{+ transform:rotate(90deg);+}++[data-editor-rotation="180"]{+ transform:rotate(180deg);+}++[data-editor-rotation="270"]{+ transform:rotate(270deg);+}++.annotationEditorLayer{+ background:transparent;+ position:absolute;+ inset:0;+ font-size:calc(100px * var(--total-scale-factor));+ transform-origin:0 0;+ cursor:auto;++ .selectedEditor{+ z-index:100000 !important;+ }++ &.drawing *{+ pointer-events:none !important;+ }++ &.getElements{+ pointer-events:auto !important;+ > div{+ pointer-events:auto !important;+ }+ }+}++.annotationEditorLayer.waiting{+ content:"";+ cursor:wait;+ position:absolute;+ inset:0;+ width:100%;+ height:100%;+}++.annotationEditorLayer.disabled{+ pointer-events:none;++ &.highlightEditing+ :is(+ .freeTextEditor,+ .inkEditor,+ .stampEditor,+ .signatureEditor,+ .commentPopup+ ){+ pointer-events:auto;+ }+}++.annotationEditorLayer.freetextEditing{+ cursor:var(--editorFreeText-editing-cursor);+}++.annotationEditorLayer.inkEditing{+ cursor:var(--editorInk-editing-cursor);+}++.annotationEditorLayer .draw{+ box-sizing:border-box;+}++.annotationEditorLayer+ :is(.freeTextEditor, .inkEditor, .stampEditor, .signatureEditor){+ position:absolute;+ background:transparent;+ z-index:1;+ transform-origin:0 0;+ cursor:auto;+ max-width:100%;+ max-height:100%;+ border:var(--unfocus-outline);++ &.draggable.selectedEditor{+ cursor:move;+ }++ &.selectedEditor{+ border:var(--editor-selection-outline);+ outline:var(--focus-outline-around);++ &::before{+ content:"";+ position:absolute;+ inset:0;+ border:var(--focus-outline-around);+ pointer-events:none;+ }+ }++ &:hover:not(.selectedEditor){+ border:var(--hover-outline);+ outline:var(--hover-outline-around);++ &::before{+ content:"";+ position:absolute;+ inset:0;+ border:var(--focus-outline-around);+ }+ }+}++.annotationEditorLayer+ :is(+ .freeTextEditor,+ .inkEditor,+ .stampEditor,+ .highlightEditor,+ .signatureEditor+ ),+.textLayer{+ .editToolbar{+ --editor-toolbar-delete-image:url(images/editor-toolbar-delete.svg);+ --editor-toolbar-bg-color:light-dark(#f0f0f4, #2b2a33);+ --editor-toolbar-highlight-image:url(images/toolbarButton-editorHighlight.svg);+ --editor-toolbar-fg-color:light-dark(#2e2e56, #fbfbfe);+ --editor-toolbar-border-color:var(--border-color-interactive, #8f8f9d);+ --editor-toolbar-hover-border-color:var(--editor-toolbar-border-color);+ --editor-toolbar-hover-bg-color:light-dark(#e0e0e6, #52525e);+ --editor-toolbar-hover-fg-color:var(--editor-toolbar-fg-color);+ --editor-toolbar-hover-outline:none;+ --editor-toolbar-focus-outline-color:var(+ --focus-outline-color,+ light-dark(#0060df, #0df)+ );+ --editor-toolbar-shadow:0 2px 6px 0 rgb(58 57 68 / 0.2);+ --editor-toolbar-height:28px;+ --editor-toolbar-padding:2px;+ --alt-text-done-color:var(+ --color-accent-attention,+ light-dark(#2ac3a2, #54ffbd)+ );+ --alt-text-warning-color:light-dark(#0090ed, #80ebff);+ --alt-text-hover-done-color:var(--alt-text-done-color);+ --alt-text-hover-warning-color:var(--alt-text-warning-color);++ @media screen and (forced-colors: active){+ --editor-toolbar-bg-color:var(--button-background-color, ButtonFace);+ --editor-toolbar-fg-color:var(--button-text-color, ButtonText);+ --editor-toolbar-border-color:var(--button-border-color, ButtonText);+ --editor-toolbar-hover-border-color:var(+ --button-border-color-hover,+ AccentColor+ );+ --editor-toolbar-hover-bg-color:var(+ --button-background-color-hover,+ ButtonFace+ );+ --editor-toolbar-hover-fg-color:var(+ --button-text-color-hover,+ AccentColor+ );+ --editor-toolbar-hover-outline:2px solid var(--editor-toolbar-hover-border-color);+ --editor-toolbar-focus-outline-color:var(+ --button-border-color,+ ButtonBorder+ );+ --editor-toolbar-shadow:none;+ --alt-text-done-color:var(--editor-toolbar-fg-color);+ --alt-text-warning-color:var(--editor-toolbar-fg-color);+ --alt-text-hover-done-color:var(--editor-toolbar-hover-fg-color);+ --alt-text-hover-warning-color:var(--editor-toolbar-hover-fg-color);+ }++ display:flex;+ width:-moz-fit-content;+ width:fit-content;+ height:var(--editor-toolbar-height);+ flex-direction:column;+ justify-content:center;+ align-items:center;+ cursor:default;+ pointer-events:auto;+ box-sizing:content-box;+ padding:var(--editor-toolbar-padding);+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;++ position:absolute;+ inset-inline-end:0;+ inset-block-start:calc(100% + var(--editor-toolbar-vert-offset));++ border-radius:6px;+ background-color:var(--editor-toolbar-bg-color);+ border:1px solid var(--editor-toolbar-border-color);+ box-shadow:var(--editor-toolbar-shadow);++ &.hidden{+ display:none;+ }++ &:has(:focus-visible){+ border-color:transparent;+ }++ &:dir(ltr){+ transform-origin:100% 0;+ }++ &:dir(rtl){+ transform-origin:0 0;+ }++ .buttons{+ display:flex;+ justify-content:center;+ align-items:center;+ gap:0;+ height:100%;++ button{+ padding:0;+ }++ .divider{+ width:0;+ height:calc(+ 2 * var(--editor-toolbar-padding) + var(--editor-toolbar-height)+ );+ border-left:1px solid var(--editor-toolbar-border-color);+ border-right:none;+ display:inline-block;+ margin-inline:2px;+ }++ .basic{+ width:var(--editor-toolbar-height);++ &::before{+ content:"";+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ display:inline-block;+ background-color:var(--editor-toolbar-fg-color);+ width:100%;+ height:100%;+ }++ &:hover::before{+ background-color:var(--editor-toolbar-hover-fg-color);+ }++ &.highlightButton::before{+ -webkit-mask-image:var(--editor-toolbar-highlight-image);+ mask-image:var(--editor-toolbar-highlight-image);+ }++ &.commentButton::before{+ -webkit-mask-image:var(--comment-edit-button-icon);+ mask-image:var(--comment-edit-button-icon);+ }++ &.deleteButton::before{+ -webkit-mask-image:var(--editor-toolbar-delete-image);+ mask-image:var(--editor-toolbar-delete-image);+ }+ }++ > *{+ height:var(--editor-toolbar-height);+ }++ > :not(.divider){+ border:none;+ background-color:transparent;+ cursor:pointer;++ &:hover{+ border-radius:2px;+ background-color:var(--editor-toolbar-hover-bg-color);+ color:var(--editor-toolbar-hover-fg-color);+ outline:var(--editor-toolbar-hover-outline);+ outline-offset:1px;++ &:active{+ outline:none;+ }+ }++ &:focus-visible{+ border-radius:2px;+ outline:2px solid var(--editor-toolbar-focus-outline-color);+ }+ }++ .altText{+ --alt-text-add-image:url(images/altText_add.svg);+ --alt-text-done-image:url(images/altText_done.svg);++ display:flex;+ align-items:center;+ justify-content:center;+ width:-moz-max-content;+ width:max-content;+ padding-inline:8px;+ pointer-events:all;+ font:menu;+ font-weight:590;+ font-size:12px;+ color:var(--editor-toolbar-fg-color);++ &:disabled{+ pointer-events:none;+ }++ &::before{+ content:"";+ -webkit-mask-image:var(--alt-text-add-image);+ mask-image:var(--alt-text-add-image);+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ display:inline-block;+ width:12px;+ height:13px;+ background-color:var(--editor-toolbar-fg-color);+ margin-inline-end:4px;+ }++ &:hover::before{+ background-color:var(--editor-toolbar-hover-fg-color);+ }++ &.done::before{+ -webkit-mask-image:var(--alt-text-done-image);+ mask-image:var(--alt-text-done-image);+ }++ &.new{+ &::before{+ width:16px;+ height:16px;+ -webkit-mask-image:var(--new-alt-text-warning-image);+ mask-image:var(--new-alt-text-warning-image);+ background-color:var(--alt-text-warning-color);+ -webkit-mask-size:cover;+ mask-size:cover;+ }++ &:hover::before{+ background-color:var(--alt-text-hover-warning-color);+ }++ &.done{+ &::before{+ -webkit-mask-image:var(--alt-text-done-image);+ mask-image:var(--alt-text-done-image);+ background-color:var(--alt-text-done-color);+ }++ &:hover::before{+ background-color:var(--alt-text-hover-done-color);+ }+ }+ }++ .tooltip{+ display:none;+ word-wrap:anywhere;++ &.show{+ --alt-text-tooltip-bg:light-dark(#f0f0f4, #1c1b22);+ --alt-text-tooltip-fg:var(+ --text-color,+ light-dark(#15141a, #fbfbfe)+ );+ --alt-text-tooltip-border:var(--border-color-interactive, #8f8f9d);+ --alt-text-tooltip-shadow:0 2px 6px 0 light-dark(rgb(58 57 68 / 0.2), #15141a);++ @media screen and (forced-colors: active){+ --alt-text-tooltip-bg:Canvas;+ --alt-text-tooltip-fg:var(--text-color, CanvasText);+ --alt-text-tooltip-border:var(--border-color, CanvasText);+ --alt-text-tooltip-shadow:none;+ }++ display:inline-flex;+ flex-direction:column;+ align-items:center;+ justify-content:center;+ position:absolute;+ top:calc(100% + 2px);+ inset-inline-start:0;+ padding-block:2px 3px;+ padding-inline:3px;+ max-width:300px;+ width:-moz-max-content;+ width:max-content;+ height:auto;+ font-size:12px;++ border:0.5px solid var(--alt-text-tooltip-border);+ background:var(--alt-text-tooltip-bg);+ box-shadow:var(--alt-text-tooltip-shadow);+ color:var(--alt-text-tooltip-fg);++ pointer-events:none;+ }+ }+ }++ .comment{+ width:var(--editor-toolbar-height);++ &::before{+ content:"";+ -webkit-mask-image:var(--comment-edit-button-icon);+ mask-image:var(--comment-edit-button-icon);+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ display:inline-block;+ background-color:var(--editor-toolbar-fg-color);+ width:100%;+ height:100%;+ }+ }+ }+ }+}++.annotationEditorLayer .freeTextEditor{+ padding:calc(var(--freetext-padding) * var(--total-scale-factor));+ width:auto;+ height:auto;+ touch-action:none;+}++.annotationEditorLayer .freeTextEditor .internal{+ background:transparent;+ border:none;+ inset:0;+ overflow:visible;+ white-space:nowrap;+ font:10px sans-serif;+ line-height:var(--freetext-line-height);+ text-align:start;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+}++.annotationEditorLayer .freeTextEditor .overlay{+ position:absolute;+ display:none;+ background:transparent;+ inset:0;+ width:100%;+ height:100%;+}++.annotationEditorLayer freeTextEditor .overlay.enabled{+ display:block;+}++.annotationEditorLayer .freeTextEditor .internal:empty::before{+ content:attr(default-content);+ color:gray;+}++.annotationEditorLayer .freeTextEditor .internal:focus{+ outline:none;+ -webkit-user-select:auto;+ -moz-user-select:auto;+ user-select:auto;+}++.annotationEditorLayer .inkEditor{+ width:100%;+ height:100%;+}++.annotationEditorLayer .inkEditor.editing{+ cursor:inherit;+}++.annotationEditorLayer .inkEditor .inkEditorCanvas{+ position:absolute;+ inset:0;+ width:100%;+ height:100%;+ touch-action:none;+}++.annotationEditorLayer .stampEditor{+ width:auto;+ height:auto;++ canvas{+ position:absolute;+ width:100%;+ height:100%;+ margin:0;+ top:0;+ left:0;+ }++ .noAltTextBadge{+ --no-alt-text-badge-border-color:light-dark(#f0f0f4, #52525e);+ --no-alt-text-badge-bg-color:light-dark(#cfcfd8, #fbfbfe);+ --no-alt-text-badge-fg-color:light-dark(#5b5b66, #15141a);++ @media screen and (forced-colors: active){+ --no-alt-text-badge-border-color:ButtonText;+ --no-alt-text-badge-bg-color:ButtonFace;+ --no-alt-text-badge-fg-color:ButtonText;+ }++ position:absolute;+ inset-inline-end:5px;+ inset-block-end:5px;+ display:inline-flex;+ width:32px;+ height:32px;+ padding:3px;+ justify-content:center;+ align-items:center;+ pointer-events:none;+ z-index:1;++ border-radius:2px;+ border:1px solid var(--no-alt-text-badge-border-color);+ background:var(--no-alt-text-badge-bg-color);++ &::before{+ content:"";+ display:inline-block;+ width:16px;+ height:16px;+ -webkit-mask-image:var(--new-alt-text-warning-image);+ mask-image:var(--new-alt-text-warning-image);+ -webkit-mask-size:cover;+ mask-size:cover;+ background-color:var(--no-alt-text-badge-fg-color);+ }+ }+}++.annotationEditorLayer{+ :is(.freeTextEditor, .inkEditor, .stampEditor, .signatureEditor){+ & > .resizers{+ position:absolute;+ inset:0;+ z-index:1;++ &.hidden{+ display:none;+ }++ & > .resizer{+ width:var(--resizer-size);+ height:var(--resizer-size);+ background:content-box var(--resizer-bg-color);+ border:var(--focus-outline-around);+ border-radius:2px;+ position:absolute;++ &.topLeft{+ top:var(--resizer-shift);+ left:var(--resizer-shift);+ }++ &.topMiddle{+ top:var(--resizer-shift);+ left:calc(50% + var(--resizer-shift));+ }++ &.topRight{+ top:var(--resizer-shift);+ right:var(--resizer-shift);+ }++ &.middleRight{+ top:calc(50% + var(--resizer-shift));+ right:var(--resizer-shift);+ }++ &.bottomRight{+ bottom:var(--resizer-shift);+ right:var(--resizer-shift);+ }++ &.bottomMiddle{+ bottom:var(--resizer-shift);+ left:calc(50% + var(--resizer-shift));+ }++ &.bottomLeft{+ bottom:var(--resizer-shift);+ left:var(--resizer-shift);+ }++ &.middleLeft{+ top:calc(50% + var(--resizer-shift));+ left:var(--resizer-shift);+ }+ }+ }+ }++ &[data-main-rotation="0"]+ :is([data-editor-rotation="0"], [data-editor-rotation="180"]),+ &[data-main-rotation="90"]+ :is([data-editor-rotation="270"], [data-editor-rotation="90"]),+ &[data-main-rotation="180"]+ :is([data-editor-rotation="180"], [data-editor-rotation="0"]),+ &[data-main-rotation="270"]+ :is([data-editor-rotation="90"], [data-editor-rotation="270"]){+ & > .resizers > .resizer{+ &.topLeft,+ &.bottomRight{+ cursor:nwse-resize;+ }++ &.topMiddle,+ &.bottomMiddle{+ cursor:ns-resize;+ }++ &.topRight,+ &.bottomLeft{+ cursor:nesw-resize;+ }++ &.middleRight,+ &.middleLeft{+ cursor:ew-resize;+ }+ }+ }++ &[data-main-rotation="0"]+ :is([data-editor-rotation="90"], [data-editor-rotation="270"]),+ &[data-main-rotation="90"]+ :is([data-editor-rotation="0"], [data-editor-rotation="180"]),+ &[data-main-rotation="180"]+ :is([data-editor-rotation="270"], [data-editor-rotation="90"]),+ &[data-main-rotation="270"]+ :is([data-editor-rotation="180"], [data-editor-rotation="0"]){+ & > .resizers > .resizer{+ &.topLeft,+ &.bottomRight{+ cursor:nesw-resize;+ }++ &.topMiddle,+ &.bottomMiddle{+ cursor:ew-resize;+ }++ &.topRight,+ &.bottomLeft{+ cursor:nwse-resize;+ }++ &.middleRight,+ &.middleLeft{+ cursor:ns-resize;+ }+ }+ }++ &+ :is(+ [data-main-rotation="0"] [data-editor-rotation="90"],+ [data-main-rotation="90"] [data-editor-rotation="0"],+ [data-main-rotation="180"] [data-editor-rotation="270"],+ [data-main-rotation="270"] [data-editor-rotation="180"]+ ){+ .editToolbar{+ rotate:270deg;++ &:dir(ltr){+ inset-inline-end:calc(0px - var(--editor-toolbar-vert-offset));+ inset-block-start:0;+ }++ &:dir(rtl){+ inset-inline-end:calc(100% + var(--editor-toolbar-vert-offset));+ inset-block-start:0;+ }+ }+ }++ &+ :is(+ [data-main-rotation="0"] [data-editor-rotation="180"],+ [data-main-rotation="90"] [data-editor-rotation="90"],+ [data-main-rotation="180"] [data-editor-rotation="0"],+ [data-main-rotation="270"] [data-editor-rotation="270"]+ ){+ .editToolbar{+ rotate:180deg;+ inset-inline-end:100%;+ inset-block-start:calc(0px - var(--editor-toolbar-vert-offset));+ }+ }++ &+ :is(+ [data-main-rotation="0"] [data-editor-rotation="270"],+ [data-main-rotation="90"] [data-editor-rotation="180"],+ [data-main-rotation="180"] [data-editor-rotation="90"],+ [data-main-rotation="270"] [data-editor-rotation="0"]+ ){+ .editToolbar{+ rotate:90deg;++ &:dir(ltr){+ inset-inline-end:calc(100% + var(--editor-toolbar-vert-offset));+ inset-block-start:100%;+ }++ &:dir(rtl){+ inset-inline-start:calc(0px - var(--editor-toolbar-vert-offset));+ inset-block-start:0;+ }+ }+ }+}++.dialog.altText{+ &::backdrop{+ -webkit-mask:url(#alttext-manager-mask);+ mask:url(#alttext-manager-mask);+ }+ &.positioned{+ margin:0;+ }++ & #altTextContainer{+ width:300px;+ height:-moz-fit-content;+ height:fit-content;+ display:inline-flex;+ flex-direction:column;+ align-items:flex-start;+ gap:16px;++ & #overallDescription{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:4px;+ align-self:stretch;++ & span{+ align-self:stretch;+ }++ & .title{+ font-size:13px;+ font-style:normal;+ font-weight:590;+ }+ }++ & #addDescription{+ display:flex;+ flex-direction:column;+ align-items:stretch;+ gap:8px;++ & .descriptionArea{+ flex:1;+ padding-inline:24px 10px;++ textarea{+ width:100%;+ min-height:75px;+ }+ }+ }++ & #buttons{+ display:flex;+ justify-content:flex-end;+ align-items:flex-start;+ gap:8px;+ align-self:stretch;+ }+ }+}++.dialog.newAltText{+ --new-alt-text-ai-disclaimer-icon:url(images/altText_disclaimer.svg);+ --new-alt-text-spinner-icon:url(images/altText_spinner.svg);+ --preview-image-bg-color:light-dark(#f0f0f4, #2b2a33);+ --preview-image-border:none;++ @media screen and (forced-colors: active){+ --preview-image-bg-color:ButtonFace;+ --preview-image-border:1px solid ButtonText;+ }++ width:80%;+ max-width:570px;+ min-width:300px;+ padding:0;++ &.noAi{+ #newAltTextDisclaimer,+ #newAltTextCreateAutomatically{+ display:none !important;+ }+ }++ &.aiInstalling{+ #newAltTextCreateAutomatically{+ display:none !important;+ }+ #newAltTextDownloadModel{+ display:flex !important;+ }+ }++ &.error{+ #newAltTextNotNow{+ display:none !important;+ }++ #newAltTextCancel{+ display:inline-block !important;+ }+ }++ &:not(.error) #newAltTextError{+ display:none !important;+ }++ #newAltTextContainer{+ display:flex;+ width:auto;+ padding:16px;+ flex-direction:column;+ justify-content:flex-end;+ align-items:flex-start;+ gap:12px;+ flex:0 1 auto;+ line-height:normal;++ #mainContent{+ display:flex;+ justify-content:flex-end;+ align-items:flex-start;+ gap:12px;+ align-self:stretch;+ flex:1 1 auto;++ #descriptionAndSettings{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:16px;+ flex:1 0 0;+ align-self:stretch;+ }++ #descriptionInstruction{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:8px;+ align-self:stretch;+ flex:1 1 auto;++ #newAltTextDescriptionContainer{+ width:100%;+ height:70px;+ position:relative;++ textarea{+ width:100%;+ height:100%;+ padding:8px;++ &::-moz-placeholder{+ color:var(--text-secondary-color);+ }++ &::placeholder{+ color:var(--text-secondary-color);+ }+ }++ .altTextSpinner{+ display:none;+ position:absolute;+ width:16px;+ height:16px;+ inset-inline-start:8px;+ inset-block-start:8px;+ -webkit-mask-size:cover;+ mask-size:cover;+ background-color:var(--text-secondary-color);+ pointer-events:none;+ }++ &.loading{+ textarea::-moz-placeholder{+ color:transparent;+ }+ textarea::placeholder{+ color:transparent;+ }++ .altTextSpinner{+ display:inline-block;+ -webkit-mask-image:var(--new-alt-text-spinner-icon);+ mask-image:var(--new-alt-text-spinner-icon);+ }+ }+ }++ #newAltTextDescription{+ font-size:11px;+ }++ #newAltTextDisclaimer{+ display:flex;+ flex-direction:row;+ align-items:flex-start;+ gap:4px;+ font-size:11px;++ &::before{+ content:"";+ display:inline-block;+ width:17px;+ height:16px;+ -webkit-mask-image:var(--new-alt-text-ai-disclaimer-icon);+ mask-image:var(--new-alt-text-ai-disclaimer-icon);+ -webkit-mask-size:cover;+ mask-size:cover;+ background-color:var(--text-secondary-color);+ flex:1 0 auto;+ }+ }+ }++ #newAltTextDownloadModel{+ display:flex;+ align-items:center;+ gap:4px;+ align-self:stretch;++ &::before{+ content:"";+ display:inline-block;+ width:16px;+ height:16px;+ -webkit-mask-image:var(--new-alt-text-spinner-icon);+ mask-image:var(--new-alt-text-spinner-icon);+ -webkit-mask-size:cover;+ mask-size:cover;+ background-color:var(--text-secondary-color);+ }+ }++ #newAltTextImagePreview{+ width:180px;+ aspect-ratio:1;+ display:flex;+ justify-content:center;+ align-items:center;+ flex:0 0 auto;+ background-color:var(--preview-image-bg-color);+ border:var(--preview-image-border);++ > canvas{+ max-width:100%;+ max-height:100%;+ }+ }+ }+ }+}++.colorPicker{+ --hover-outline-color:var(+ --color-accent-primary-hover,+ light-dark(#0250bb, #80ebff)+ );+ --selected-outline-color:light-dark(#0060df, #aaf2ff);+ --swatch-border-color:light-dark(#cfcfd8, #52525e);++ @media screen and (forced-colors: active){+ --hover-outline-color:Highlight;+ --selected-outline-color:var(--hover-outline-color);+ --swatch-border-color:ButtonText;+ }++ .swatch{+ width:16px;+ height:16px;+ border:1px solid var(--swatch-border-color);+ border-radius:100%;+ outline-offset:2px;+ box-sizing:border-box;+ forced-color-adjust:none;+ }++ button:is(:hover, .selected) > .swatch{+ border:none;+ }+}++.basicColorPicker{+ width:28px;++ &::-moz-color-swatch{+ border-radius:100%;+ margin:0;+ }++ &::-webkit-color-swatch{+ border-radius:100%;+ margin:0;+ }+}++.annotationEditorLayer{+ &[data-main-rotation="0"]{+ .highlightEditor:not(.free) > .editToolbar{+ rotate:0deg;+ }+ }++ &[data-main-rotation="90"]{+ .highlightEditor:not(.free) > .editToolbar{+ rotate:270deg;+ }+ }++ &[data-main-rotation="180"]{+ .highlightEditor:not(.free) > .editToolbar{+ rotate:180deg;+ }+ }++ &[data-main-rotation="270"]{+ .highlightEditor:not(.free) > .editToolbar{+ rotate:90deg;+ }+ }++ .highlightEditor{+ position:absolute;+ background:transparent;+ z-index:1;+ cursor:auto;+ max-width:100%;+ max-height:100%;+ border:none;+ outline:none;+ pointer-events:none;+ transform-origin:0 0;++ &:not(.free){+ transform:none;+ }++ .internal{+ position:absolute;+ top:0;+ left:0;+ width:100%;+ height:100%;+ pointer-events:auto;+ }++ &.disabled .internal{+ pointer-events:none;+ }++ &.selectedEditor{+ .internal{+ cursor:pointer;+ }+ }++ .editToolbar{+ --editor-toolbar-colorpicker-arrow-image:url(images/toolbarButton-menuArrow.svg);++ transform-origin:center !important;++ .buttons{+ .colorPicker{+ position:relative;+ width:auto;+ display:flex;+ justify-content:center;+ align-items:center;+ gap:4px;+ padding:4px;++ &::after{+ content:"";+ -webkit-mask-image:var(--editor-toolbar-colorpicker-arrow-image);+ mask-image:var(--editor-toolbar-colorpicker-arrow-image);+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ display:inline-block;+ background-color:var(--editor-toolbar-fg-color);+ width:12px;+ height:12px;+ }++ &:hover::after{+ background-color:var(--editor-toolbar-hover-fg-color);+ }++ &:has(.dropdown:not(.hidden)){+ background-color:var(--editor-toolbar-hover-bg-color);++ &::after{+ scale:-1;+ }+ }++ .dropdown{+ position:absolute;+ display:flex;+ justify-content:center;+ align-items:center;+ flex-direction:column;+ gap:11px;+ padding-block:8px;+ border-radius:6px;+ background-color:var(--editor-toolbar-bg-color);+ border:1px solid var(--editor-toolbar-border-color);+ box-shadow:var(--editor-toolbar-shadow);+ inset-block-start:calc(100% + 4px);+ width:calc(100% + 2 * var(--editor-toolbar-padding));++ button{+ width:100%;+ height:auto;+ border:none;+ cursor:pointer;+ display:flex;+ justify-content:center;+ align-items:center;+ background:none;++ &:is(:active, :focus-visible){+ outline:none;+ }++ > .swatch{+ outline-offset:2px;+ }++ &[aria-selected="true"] > .swatch{+ outline:2px solid var(--selected-outline-color);+ }++ &:is(:hover, :active, :focus-visible) > .swatch{+ outline:2px solid var(--hover-outline-color);+ }+ }+ }+ }+ }+ }+ }+}++.editorParamsToolbar:has(#highlightParamsToolbarContainer){+ padding:unset;+}++#highlightParamsToolbarContainer{+ gap:16px;+ padding-inline:10px;+ padding-block-end:12px;++ .colorPicker{+ display:flex;+ flex-direction:column;+ gap:8px;++ .dropdown{+ display:flex;+ justify-content:space-between;+ align-items:center;+ flex-direction:row;+ height:auto;++ button{+ width:auto;+ height:auto;+ border:none;+ cursor:pointer;+ display:flex;+ justify-content:center;+ align-items:center;+ background:none;+ flex:0 0 auto;+ padding:0;++ .swatch{+ width:24px;+ height:24px;+ }++ &:is(:active, :focus-visible){+ outline:none;+ }++ &[aria-selected="true"] > .swatch{+ outline:2px solid var(--selected-outline-color);+ }++ &:is(:hover, :active, :focus-visible) > .swatch{+ outline:2px solid var(--hover-outline-color);+ }+ }+ }+ }++ #editorHighlightThickness{+ display:flex;+ flex-direction:column;+ align-items:center;+ gap:4px;+ align-self:stretch;++ .editorParamsLabel{+ height:auto;+ align-self:stretch;+ }++ .thicknessPicker{+ display:flex;+ justify-content:space-between;+ align-items:center;+ align-self:stretch;++ --example-color:light-dark(#bfbfc9, #80808e);++ @media screen and (forced-colors: active){+ --example-color:CanvasText;+ }++ :is(& > .editorParamsSlider[disabled]){+ opacity:0.4;+ }++ &::before,+ &::after{+ content:"";+ width:8px;+ aspect-ratio:1;+ display:block;+ border-radius:100%;+ background-color:var(--example-color);+ }+ &::after{+ width:24px;+ }++ .editorParamsSlider{+ width:unset;+ height:14px;+ }+ }+ }++ #editorHighlightVisibility{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ gap:8px;+ align-self:stretch;++ .divider{+ --divider-color:light-dark(#d7d7db, #8f8f9d);++ @media screen and (forced-colors: active){+ --divider-color:CanvasText;+ }++ margin-block:4px;+ width:100%;+ height:1px;+ background-color:var(--divider-color);+ }++ .toggler{+ display:flex;+ justify-content:space-between;+ align-items:center;+ align-self:stretch;+ }+ }+}++#altTextSettingsDialog{+ padding:16px;++ #altTextSettingsContainer{+ display:flex;+ width:573px;+ flex-direction:column;+ gap:16px;++ .mainContainer{+ gap:16px;+ }++ .description{+ color:var(--text-secondary-color);+ }++ #aiModelSettings{+ display:flex;+ flex-direction:column;+ gap:12px;+ }++ #automaticAltText,+ #altTextEditor{+ display:flex;+ flex-direction:column;+ gap:8px;+ }++ #createModelDescription,+ #aiModelSettings,+ #showAltTextDialogDescription{+ padding-inline-start:40px;+ }++ #automaticSettings{+ display:flex;+ flex-direction:column;+ gap:16px;+ }+ }+}++button.hasPopupMenu{+ &[aria-expanded="true"] + menu{+ visibility:visible;+ }++ &[aria-expanded="false"] + menu{+ visibility:hidden;+ }+}++.popupMenu{+ --menuitem-checkmark-icon:url(images/checkmark.svg);+ --menu-mark-icon-size:0;+ --menu-icon-size:16px;+ --menuitem-gap:5px;+ --menuitem-border-color:transparent;+ --menuitem-active-bg:color-mix(+ in srgb,+ var(--menu-text-color),+ transparent 79%+ );+ --menuitem-text-active-fg:var(--menu-text-color);+ --menuitem-active-border-color:var(--menuitem-border-color);+ --menuitem-focus-bg:color-mix(+ in srgb,+ var(--menu-text-color),+ transparent 93%+ );+ --menuitem-focus-outline-color:var(+ --focus-outline-color,+ light-dark(#0062fa, #00cadb)+ );+ --menuitem-focus-border-color:light-dark(white, black);++ --menu-bg:var(--background-color-box, light-dark(white, #23222b));+ --menu-background-blend-mode:normal;+ --menu-box-shadow:0 0.375px 1.5px 0 light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)), 0 3px 12px 0 light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));+ --menu-border-color:light-dark(rgb(21 20 26 / 0.1), rgb(251 251 254 / 0.1));+ --menuitem-border-radius:8px;+ --menu-backdrop-filter:none;+ --menu-text-color:var(--text-color, light-dark(#15141a, #fbfbfe));+ --menu-text-disabled-color:var(--menu-text-color);+ --menuitem-text-hover-fg:var(--menu-text-color);+ --menuitem-hover-bg:color-mix(+ in srgb,+ var(--menu-text-color),+ transparent 86%+ );+ --menuitem-hover-background-blend-mode:normal;+ --disabled-opacity:0.62;++ @media screen and (forced-colors: active){+ --menu-bg:var(--background-color-box, Canvas);+ --menu-background-blend-mode:normal;+ --menu-box-shadow:none;+ --menu-backdrop-filter:none;+ --menu-text-color:var(--text-color, ButtonText);+ --menu-text-disabled-color:GrayText;+ --menu-border-color:CanvasText;+ --menuitem-border-color:none;+ --menuitem-hover-bg:SelectedItemText;+ --menuitem-text-hover-fg:SelectedItem;+ --menuitem-active-bg:SelectedItemText;+ --menuitem-active-border-color:ButtonText;+ --menuitem-text-active-fg:SelectedItem;+ --menuitem-focus-bg:ButtonFace;+ --menuitem-focus-outline-color:var(--focus-outline-color, CanvasText);+ --menuitem-focus-border-color:none;+ --disabled-opacity:1;+ }++ display:flex;+ flex-direction:column;+ width:-moz-max-content;+ width:max-content;+ height:auto;+ position:relative;+ left:0;+ top:1px;+ margin:0;+ padding:5px;+ box-sizing:border-box;++ background:var(--menu-bg);+ background-blend-mode:var(--menu-background-blend-mode);+ box-shadow:var(--menu-box-shadow);+ border-radius:6px;+ border:1px solid var(--menu-border-color);+ backdrop-filter:var(--menu-backdrop-filter);++ &.withMark{+ --menu-mark-icon-size:16px;+ }++ > button{+ display:flex;+ align-items:center;+ position:relative;+ width:100%;+ height:26px;+ padding-inline:calc(var(--menu-mark-icon-size) + var(--menuitem-gap)) var(--menuitem-gap);+ gap:var(--menuitem-gap);+ box-sizing:border-box;+ border-radius:var(--menuitem-border-radius);+ border:1px solid var(--menuitem-border-color);+ background:transparent;++ &.selected::after{+ content:"";+ display:inline-block;+ width:11px;+ height:11px;+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ -webkit-mask-image:var(--menuitem-checkmark-icon);+ mask-image:var(--menuitem-checkmark-icon);+ background-color:var(--menu-text-color);+ position:absolute;+ inset-inline-start:var(--menuitem-gap);+ top:50%;+ transform:translateY(-50%) scaleX(var(--dir-factor));+ }++ &:disabled{+ opacity:var(--disabled-opacity);++ &.selected::after{+ background-color:var(--menu-text-disabled-color);+ }++ &:not(.noIcon)::before{+ background-color:var(--menu-text-disabled-color);+ }++ > span{+ color:var(--menu-text-disabled-color);+ }+ }++ &:not(:disabled){+ &:hover{+ background:var(--menuitem-hover-bg);+ background-blend-mode:var(--menuitem-hover-background-blend-mode);++ &:not(.noIcon)::before{+ background-color:var(--menuitem-text-hover-fg);+ }++ > span{+ color:var(--menuitem-text-hover-fg);+ }++ &.selected::after{+ background-color:var(--menuitem-text-hover-fg);+ }+ }++ &:active{+ background-color:var(--menuitem-active-bg);+ border-color:var(--menuitem-active-border-color);++ > span{+ color:var(--menuitem-text-active-fg);+ }+ }++ &:focus-visible{+ border-color:var(--menuitem-focus-border-color);+ background-color:var(--menuitem-focus-bg);+ outline:2px solid var(--menuitem-focus-outline-color);+ outline-offset:2px;+ }+ }++ &:not(.noIcon)::before{+ display:inline-block;+ width:var(--menu-icon-size);+ height:var(--menu-icon-size);+ content:"";+ -webkit-mask-size:cover;+ mask-size:cover;+ -webkit-mask-position:center;+ mask-position:center;+ background-color:var(--menu-text-color);+ }++ > span{+ display:flex;+ align-items:center;+ align-self:stretch;+ width:100%;+ min-width:-moz-max-content;+ min-width:max-content;+ text-align:start;+ color:var(--menu-text-color);+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ padding-inline-start:6px;++ font:menu;+ font-size:13px;+ font-style:normal;+ font-weight:510;+ line-height:normal;+ }+ }++}++.treeView{+ --treeitem-color:light-dark(rgb(0 0 0 / 0.8), rgb(255 255 255 / 0.8));+ --treeitem-bg-color:light-dark(rgb(0 0 0 / 0.15), rgb(255 255 255 / 0.15));+ --treeitem-hover-color:light-dark(rgb(0 0 0 / 0.9), rgb(255 255 255 / 0.9));+ --treeitem-selected-color:light-dark(+ rgb(0 0 0 / 0.9),+ rgb(255 255 255 / 0.9)+ );+ --treeitem-selected-bg-color:light-dark(+ rgb(0 0 0 / 0.25),+ rgb(255 255 255 / 0.25)+ );+ --treeitem-expanded-icon:url(images/treeitem-expanded.svg);+ --treeitem-collapsed-icon:url(images/treeitem-collapsed.svg);++ &.withNesting{+ .treeItemToggler{+ &::before{+ position:absolute;+ display:inline-block;+ width:16px;+ height:16px;+ inset-inline-end:4px;++ content:"";+ background-color:var(--toolbar-icon-bg-color);+ -webkit-mask-image:var(--treeitem-expanded-icon);+ mask-image:var(--treeitem-expanded-icon);+ -webkit-mask-size:cover;+ mask-size:cover;+ }++ position:relative;+ float:inline-start;+ height:0;+ width:0;+ color:rgb(255 255 255 / 0.5);++ &.treeItemsHidden{+ &::before{+ -webkit-mask-image:var(--treeitem-collapsed-icon);+ mask-image:var(--treeitem-collapsed-icon);+ transform:scaleX(var(--dir-factor));+ }++ ~ .treeItems{+ display:none;+ }+ }++ &:hover + a,+ &:hover ~ .treeItems{+ background-color:var(--treeitem-bg-color);+ background-clip:padding-box;+ border-radius:2px;+ color:var(--treeitem-hover-color);+ }+ }++ > .treeItem,+ .treeItem > .treeItems{+ margin-inline-start:20px;+ }+ }++ &#layersView .treeItem > a{+ *{+ cursor:pointer;+ }++ > label{+ display:flex;+ align-items:center;+ padding-inline-start:4px;+ > input{+ margin-top:1px;+ }+ }+ }++ .treeItem{+ > a{+ text-decoration:none;+ display:inline-block;+ min-width:calc(100% - 4px);+ height:auto;+ margin-bottom:1px;+ padding:2px 0 5px;+ padding-inline-start:4px;+ border-radius:2px;+ color:var(--treeitem-color);+ font-size:13px;+ line-height:15px;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ white-space:normal;+ cursor:default;++ &:hover{+ background-color:var(--treeitem-bg-color);+ background-clip:padding-box;+ border-radius:2px;+ color:var(--treeitem-hover-color);++ }+ }++ &.selected > a{+ background-color:var(--treeitem-selected-bg-color);+ color:var(--treeitem-selected-color);+ }+ }+}++#outerContainer{+ &.viewsManagerMoving{+ #viewsManager{+ visibility:visible;+ }+ }++ &.viewsManagerOpen{+ #viewsManager{+ visibility:visible;+ inset-inline-start:8px;+ }++ #viewerContainer:not(.pdfPresentationMode){+ inset-inline-start:var(--viewsManager-width, 0);+ transition-property:inset-inline-start;+ }+ }++ &.viewsManagerResizing :is(#sidebarContainer, #viewerContainer, #loadingBar){+ transition-duration:0s;+ }+}++#viewsManager{+ --views-manager-button-icon:url(images/pages_viewButton.svg);+ --views-manager-button-arrow-icon:url(images/pages_viewArrow.svg);+ --views-manager-add-file-button-icon:url(images/toolbarButton-zoomIn.svg);+ --current-outline-button-icon:url(images/toolbarButton-currentOutlineItem.svg);+ --menuitem-thumbnailsView-icon:url(images/pages_viewButton.svg);+ --menuitem-outlinesView-icon:url(images/toolbarButton-viewOutline.svg);+ --menuitem-attachmentsView-icon:url(images/toolbarButton-viewAttachments.svg);+ --menuitem-layersView-icon:url(images/toolbarButton-viewLayers.svg);+ --manage-button-icon:url(images/toolbarButton-pageDown.svg);+ --close-button-icon:url(images/pages_closeButton.svg);+ --undo-label-icon:url(images/altText_done.svg);+ --pages-selected-icon:url(images/pages_selected.svg);+ --spinner-icon:url(images/altText_spinner.svg);++ --sidebar-bg-color:light-dark(rgb(255 255 255 / 0.92), rgb(66 65 77 / 0.92));+ --sidebar-backdrop-filter:blur(7px);+ --sidebar-width:230px;+ --sidebar-min-width:min-content;+ --sidebar-max-width:50vw;+ --sidebar-block-padding:8px;++ --views-text-color:var(--text-color, light-dark(#15141a, #fbfbfe));+ --button-fg:var(--views-text-color);+ --button-no-bg:var(--button-background-color-toolbar, transparent);+ --button-bg:var(+ --button-background-color,+ light-dark(rgb(21 20 26 / 0.07), rgb(251 251 254 / 0.07))+ );+ --views-button-border-color:var(--button-border-color, transparent);+ --button-hover-bg:var(+ --button-background-color-hover,+ light-dark(rgb(21 20 26 / 0.14), rgb(251 251 254 / 0.14))+ );+ --button-hover-fg:var(--views-text-color);+ --button-hover-border-color:var(--views-button-border-color);+ --button-active-bg:var(+ --button-background-color-active,+ light-dark(rgb(21 20 26 / 0.21), rgb(251 251 254 / 0.21))+ );+ --button-active-fg:var(--views-text-color);+ --button-active-border-color:var(--views-button-border-color);+ --button-focus-no-bg:color-mix(+ in srgb,+ var(--views-text-color),+ transparent 93%+ );+ --button-focus-outline-color:var(+ --focus-outline-color,+ light-dark(#0062fa, #00cadb)+ );+ --button-focus-border-color:light-dark(white, black);+ --status-border-color:transparent;+ --status-actions-bg:light-dark(+ rgb(21 20 26 / 0.03),+ rgb(251 251 254 / 0.03)+ );+ --status-undo-bg:light-dark(rgb(0 98 250 / 0.08), rgb(0 202 219 / 0.08));+ --status-waiting-bg:var(--status-undo-bg);+ --indicator-color:var(--color-accent-primary, light-dark(#0062fa, #00cadb));+ --status-warning-bg:light-dark(#ffe8ea, #6e001f);+ --indicator-warning-color:light-dark(#b20037, #ffa0aa);+ --header-shadow:0 0.25px 0.75px -0.75px light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)), 0 2px 6px -6px light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));+ --header-bg:light-dark(rgb(255 255 255 / 0.92), #42414e);+ --image-outline:none;+ --image-border-width:6px;+ --image-border-color:light-dark(#cfcfd8, #3a3944);+ --image-hover-border-color:#bfbfc9;+ --image-current-border-color:var(--button-focus-outline-color);+ --image-current-focused-outline-color:var(--image-hover-border-color);+ --image-page-number-bg:light-dark(#f0f0f4, #42414d);+ --image-page-number-fg:var(--views-text-color);+ --image-page-number-border-color:transparent;+ --image-hover-page-number-bg:var(--image-page-number-bg);+ --image-hover-page-number-fg:var(--image-page-number-fg);+ --image-current-page-number-bg:var(--image-current-border-color);+ --image-current-page-number-fg:light-dark(#fff, #15141a);+ --image-current-hover-page-number-bg:var(--image-current-page-number-bg);+ --image-current-hover-page-number-fg:var(--image-current-page-number-fg);+ --image-shadow:0 0.375px 1.5px 0 light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)), 0 0 0 1px var(--image-border-color), 0 3px 12px 0 light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));+ --image-hover-shadow:0 0.375px 1.5px 0 light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)), 0 0 0 1px light-dark(rgb(21 20 26 / 0.1), rgb(251 251 254 / 0.1)), 0 0 0 var(--image-border-width) var(--image-hover-border-color), 0 3px 12px 0 light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));+ --image-current-shadow:0 0.375px 1.5px 0 light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)), 0 0 0 var(--image-border-width) var(--image-current-border-color), 0 3px 12px 0 light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));+ --image-dragging-placeholder-bg:light-dark(+ rgb(0 98 250 / 0.08),+ rgb(0 202 219 / 0.08)+ );+ --image-dragging-placeholder-border:var(--image-outline);+ --multiple-dragging-bg:white;+ --image-multiple-dragging-shadow:0 0 0 var(--image-border-width) var(--image-current-border-color), var(--image-border-width) var(--image-border-width) 0 calc(var(--image-border-width) / 2) var(--multiple-dragging-bg), var(--image-border-width) var(--image-border-width) 0 calc(3 * var(--image-border-width) / 2) var(--image-current-border-color);+ --image-dragging-shadow:0 0 0 var(--image-border-width) var(--image-current-border-color);+ --multiple-dragging-indicator-bg:var(--indicator-color);+ --multiple-dragging-text-color:light-dark(#fbfbfe, #15141a);++ @media screen and (forced-colors: active){+ --views-text-color:var(--text-color, CanvasText);+ --button-fg:var(--button-text-color, ButtonText);+ --button-bg:var(--button-background-color, ButtonFace);+ --button-no-bg:var(--button-background-color, ButtonFace);+ --views-button-border-color:var(--button-border-color, ButtonText);+ --button-hover-bg:var(--button-background-color-hover, SelectedItemText);+ --button-hover-fg:var(--button-text-color-hover, SelectedItem);+ --button-hover-border-color:var(--button-border-color-hover, SelectedItem);+ --button-active-bg:var(--button-background-color-active, SelectedItemText);+ --button-active-fg:var(--button-text-color-active, SelectedItem);+ --button-active-border-color:var(--button-border-color-active, ButtonText);+ --button-focus-no-bg:var(--button-background-color, ButtonFace);+ --button-focus-outline-color:var(--focus-outline-color, CanvasText);+ --button-focus-border-color:none;+ --status-border-color:CanvasText;+ --status-undo-bg:none;+ --indicator-color:var(--text-color, CanvasText);+ --status-warning-bg:none;+ --indicator-warning-color:CanvasText;+ --header-shadow:none;+ --image-shadow:none;+ --image-outline:1px solid ButtonText;+ --image-focus-outline-color:CanvasText;+ --image-hover-border-color:SelectedItem;+ --image-hover-page-number-bg:SelectedItemText;+ --image-hover-page-number-fg:SelectedItem;+ --image-current-page-number-bg:ButtonText;+ --image-current-page-number-fg:ButtonFace;+ --image-current-border-color:var(--border-color, ButtonText);+ --image-current-focused-outline-color:var(--image-hover-border-color);+ --image-current-hover-page-number-bg:SelectedItem;+ --image-current-hover-page-number-fg:SelectedItemText;+ --image-page-number-bg:ButtonFace;+ --image-page-number-fg:ButtonText;+ --image-page-number-border-color:var(--image-page-number-fg);+ --multiple-dragging-bg:Canvas;+ --multiple-dragging-indicator-bg:var(--text-color, ButtonBorder);+ --multiple-dragging-text-color:Canvas;+ --image-dragging-placeholder-bg:Canvas;+ --image-dragging-placeholder-border:1px GrayText solid;+ }++ display:flex;+ padding-bottom:16px;+ flex-direction:column;+ align-items:flex-start;+ inset-block-start:calc(100% + var(--sidebar-block-padding));+ height:calc(+ var(--viewer-container-height) - 2 * var(--sidebar-block-padding)+ );+ position:absolute;++ inset-inline-start:calc(+ -1 * var(--viewsManager-width, --sidebar-width) - 1px+ );+ transition-property:inset-inline-start;+ transition-duration:var(--sidebar-transition-duration);+ transition-timing-function:var(--sidebar-transition-timing-function);++ .sidebarResizer{+ inset-inline-start:calc(100% + 4px);+ }++ .viewsManagerButton{+ width:auto;+ color:var(--button-fg);+ border-radius:var(--button-border-radius, 8px);+ border:1px solid var(--views-button-border-color);+ background:var(--button-bg);++ &:hover{+ background-color:var(--button-hover-bg) !important;+ color:var(--button-hover-fg) !important;+ border-color:var(--button-hover-border-color) !important;++ &::before{+ background-color:var(--button-hover-fg) !important;+ }+ }+ &:active{+ background:var(--button-active-bg) !important;+ color:var(--button-active-fg) !important;+ border-color:var(--button-active-border-color) !important;++ &::before{+ background-color:var(--button-active-fg) !important;+ }+ }+ &:focus-visible{+ outline:2px solid var(--button-focus-outline-color);+ outline-offset:2px;+ border-color:var(--button-focus-border-color);+ }++ &.viewsCloseButton{+ width:var(--size-item-large, 26px);+ height:var(--size-item-large, 26px);+ border-radius:var(--button-border-radius, 8px);+ background:none;+ display:flex;+ align-items:center;+ justify-content:center;++ &::before{+ width:16px;+ height:16px;+ -webkit-mask-image:var(--close-button-icon);+ mask-image:var(--close-button-icon);+ }+ }+ }++ #viewsManagerHeader{+ display:flex;+ flex-direction:column;+ align-items:flex-start;+ align-self:stretch;+ width:100%;+ box-shadow:var(--header-shadow);+ flex:0 0 auto;+ background-color:var(--header-bg);++ .viewsManagerLabel{+ flex:1 1 auto;+ color:var(--views-text-color);+ text-align:center;+ height:-moz-fit-content;+ height:fit-content;+ width:-moz-fit-content;+ width:fit-content;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;++ font:menu;+ font-size:15px;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ }++ #viewsManagerTitle{+ display:flex;+ flex-direction:row;+ align-items:center;+ align-self:stretch;+ justify-content:space-between;+ width:auto;+ padding-block:12px;+ padding-inline:8px 16px;++ &:not(:has(#viewsManagerHeaderLabel ~ button:not([hidden])))::after{++ content:"";+ flex:0 0 auto;+ width:32px;+ height:32px;+ pointer-events:none;+ }++ #viewsManagerSelector{+ width:48px;+ height:32px;+ display:block;++ > button{+ background:var(--button-no-bg);+ width:100%;+ height:100%;++ &:focus-visible{+ background-color:var(--button-focus-no-bg);+ }++ &::before{+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-image:var(--views-manager-button-icon);+ mask-image:var(--views-manager-button-icon);+ background-color:var(--button-fg);+ }++ &::after{+ content:"";+ display:inline-block;+ width:12px;+ height:12px;+ margin-inline-start:8px;+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ -webkit-mask-image:var(--views-manager-button-arrow-icon);+ mask-image:var(--views-manager-button-arrow-icon);+ background-color:var(--button-fg);+ }++ &:hover{+ &::before,+ &::after{+ background-color:var(--button-hover-fg) !important;+ }+ }++ &:active{+ &::before,+ &::after{+ background-color:var(--button-active-fg) !important;+ }+ }+ }++ > .popupMenu{+ min-width:182px;+ z-index:1;++ > button{+ &#thumbnailsViewMenu::before{+ -webkit-mask-image:var(--menuitem-thumbnailsView-icon);+ mask-image:var(--menuitem-thumbnailsView-icon);+ }+ &#outlinesViewMenu::before{+ -webkit-mask-image:var(--menuitem-outlinesView-icon);+ mask-image:var(--menuitem-outlinesView-icon);+ }+ &#attachmentsViewMenu::before{+ -webkit-mask-image:var(--menuitem-attachmentsView-icon);+ mask-image:var(--menuitem-attachmentsView-icon);+ }+ &#layersViewMenu::before{+ -webkit-mask-image:var(--menuitem-layersView-icon);+ mask-image:var(--menuitem-layersView-icon);+ }+ }+ }+ }++ #viewsManagerAddFileButton{+ background:var(--button-no-bg);+ width:32px;+ height:32px;++ &:focus-visible{+ background-color:var(--button-focus-no-bg);+ }++ &::before{+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-image:var(--views-manager-add-file-button-icon);+ mask-image:var(--views-manager-add-file-button-icon);+ background-color:var(--button-fg);+ }++ > input{+ display:none;+ }+ }++ #viewsManagerCurrentOutlineButton{+ background:var(--button-no-bg);+ width:32px;+ height:32px;++ &:focus-visible{+ background-color:var(--button-focus-no-bg);+ }++ &::before{+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-image:var(--current-outline-button-icon);+ mask-image:var(--current-outline-button-icon);+ background-color:var(--button-fg);+ }+ }+ }++ #viewsManagerStatus{+ display:grid;+ width:100%;+ border:1px solid var(--status-border-color);++ > div{+ min-height:64px;+ width:100%;+ padding-inline:16px;+ grid-area:1 / 1;+ box-sizing:border-box;++ &.hidden{+ visibility:hidden;+ display:unset !important;+ }+ }++ .viewsManagerStatusLabel{+ display:flex;+ align-items:center;+ gap:8px;++ font:menu;+ font-size:13px;+ }++ #viewsManagerStatusAction{+ display:flex;+ justify-content:space-between;+ align-items:center;+ align-self:stretch;+ background-color:var(--status-actions-bg);++ #viewsManagerStatusActionLabelContainer > button{+ position:relative;+ width:var(--icon-size);+ height:var(--icon-size);+ border:none;+ padding:0;+ flex:0 0 auto;++ &::before{+ content:"";+ position:absolute;+ inset:0;+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ background-color:var(--indicator-color);+ -webkit-mask-image:var(--pages-selected-icon);+ mask-image:var(--pages-selected-icon);+ }++ @media screen and (forced-colors: active){+ border-radius:2px;+ background-color:var(--button-bg);++ &::before{+ background-color:var(--button-fg);+ }+ &:hover{+ background-color:var(--button-hover-bg);++ &::before{+ background-color:var(--button-hover-fg);+ }+ }+ &:active{+ background-color:var(--button-active-bg);++ &::before{+ background-color:var(--button-active-fg);+ }+ }+ }++ &#viewsManagerStatusActionDeselectButton:focus-visible{+ outline:2px solid var(--button-focus-outline-color);+ border:1px solid var(--button-focus-border-color);+ border-radius:2px;+ outline-offset:1px;+ }+ }++ #actionSelector{+ height:32px;+ min-width:115px;+ width:auto;+ display:block;++ #viewsManagerStatusActionButton{+ display:flex;+ align-items:center;+ justify-content:space-between;+ gap:8px;+ width:100%;+ height:100%;+ padding:4px 16px;++ &::after{+ content:"";+ display:inline-block;+ width:var(--icon-size);+ height:var(--icon-size);+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ -webkit-mask-image:var(--manage-button-icon);+ mask-image:var(--manage-button-icon);+ background-color:var(--button-fg);+ }++ &:hover::after{+ background-color:var(--button-hover-fg) !important;+ }++ &:active::after{+ background-color:var(--button-active-fg) !important;+ }+ }++ > .popupMenu{+ width:100%;+ min-width:-moz-fit-content;+ min-width:fit-content;+ z-index:1;+ }+ }+ }++ #viewsManagerStatusUndo{+ display:flex;+ justify-content:space-between;+ align-items:center;+ align-self:stretch;+ background-color:var(--status-undo-bg);++ > span::before{+ content:"";+ display:inline-block;+ width:var(--icon-size);+ height:var(--icon-size);+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ -webkit-mask-image:var(--undo-label-icon);+ mask-image:var(--undo-label-icon);+ background-color:var(--indicator-color);+ }++ > div{+ display:flex;+ align-items:center;+ gap:8px;+ width:auto;++ #viewsManagerStatusUndoButton{+ width:auto;+ min-height:24px;+ padding:4px 8px;+ }+ }+ }++ #viewsManagerStatusWarning{+ display:flex;+ align-items:center;+ justify-content:space-between;+ background-color:var(--status-warning-bg);++ > span{+ align-items:flex-start;++ &::before{+ content:"";+ display:inline-block;+ width:var(--icon-size);+ height:var(--icon-size);+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ background-color:var(--indicator-warning-color);+ -webkit-mask-image:var(--undo-label-icon);+ mask-image:var(--undo-label-icon);+ flex:0 0 auto;+ }+ }+ }++ #viewsManagerStatusWaiting{+ display:flex;+ align-items:center;+ justify-content:space-between;+ background-color:var(--status-waiting-bg);++ > span::before{+ content:"";+ display:inline-block;+ width:var(--icon-size);+ height:var(--icon-size);+ -webkit-mask-repeat:no-repeat;+ mask-repeat:no-repeat;+ -webkit-mask-position:center;+ mask-position:center;+ background-color:var(--indicator-color);+ -webkit-mask-image:var(--spinner-icon);+ mask-image:var(--spinner-icon);+ flex:0 0 auto;+ }+ }+ }+ }++ #viewsManagerContent{+ width:100%;+ flex:1 1 0%;+ overflow:auto;++ &:has(#thumbnailsView.isDragging){+ overflow-x:hidden;+ }++ #thumbnailsView{+ --thumbnail-width:126px;+ --gap-between-input-and-thumbnail:16px;++ display:flex;+ flex-flow:row wrap;+ align-items:center;+ justify-content:space-evenly;+ padding:20px 32px;+ gap:44px;+ width:100%;+ box-sizing:border-box;+ position:relative;++ &.isDragging{+ cursor:grabbing;++ > .thumbnail{+ > .thumbnailImageContainer:hover{+ cursor:grabbing;++ &:not([aria-current="page"]){+ box-shadow:var(--image-shadow);+ }+ }++ > input{+ pointer-events:none;+ }+ }+ }++ &.isDragging > .dragMarker,+ &.isDraggingFile > .dragMarker{+ position:absolute;+ top:0;+ left:0;+ border:2px solid var(--indicator-color);+ contain:strict;+ }++ &.pasteMode{+ gap:var(--gap-between-input-and-thumbnail);++ > .thumbnail{+ flex-direction:column;++ > input{+ display:none;+ }++ > .thumbnailPasteButton{+ display:flex;+ justify-content:center;+ align-items:center;+ border-radius:16px;+ min-height:24px;+ padding:4px 16px;++ font:menu;+ font-size:13px;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ }+ }+ }++ &:not(.pasteMode) > .thumbnail > .thumbnailPasteButton{+ display:none;+ }++ > .thumbnail{+ --input-dim:16px;++ &:not(&:has(input)){+ --input-dim:0px;+ --gap-between-input-and-thumbnail:0px;+ }++ display:inline-flex;+ justify-content:flex-end;+ align-items:center;+ flex-direction:row-reverse;+ gap:var(--gap-between-input-and-thumbnail);+ width:calc(+ var(--thumbnail-width) + 2 *+ (var(--input-dim) + var(--gap-between-input-and-thumbnail))+ );+ height:auto;+ position:relative;+ scroll-margin-top:20px;++ .thumbnailPasteButton{+ padding:8px 0;+ text-align:center;+ }++ &:not(.isDragging) > .thumbnailImageContainer::after{+ content:attr(page-number);+ border-radius:8px;+ border:1px solid var(--image-page-number-border-color);+ background-color:var(--image-page-number-bg);+ color:var(--image-page-number-fg);+ position:absolute;+ bottom:5px;+ inset-inline-end:50%;+ min-width:32px;+ height:16px;+ text-align:center;+ box-sizing:content-box;+ translate:calc(var(--dir-factor) * 50%);++ font:menu;+ font-size:12px;+ font-style:normal;+ font-weight:400;+ line-height:normal;++ pointer-events:none;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ }++ &:has([aria-current="page"]):not(.isDragging)+ > .thumbnailImageContainer::after{+ background-color:var(--image-current-page-number-bg);+ color:var(--image-current-page-number-fg);+ outline:1px solid var(--image-current-border-color);+ }++ &.isDragging > input{+ visibility:hidden;+ }++ > input{+ margin:0;+ width:var(--input-dim);+ height:var(--input-dim);+ accent-color:var(--indicator-color);+ }++ > .thumbnailImageContainer{+ --thumbnail-dragging-scale:1.4;++ width:var(--thumbnail-width);+ border:none;+ border-radius:8px;+ box-shadow:var(--image-shadow);+ box-sizing:content-box;+ outline:var(--image-outline);+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ position:relative;++ img{+ width:100%;+ height:100%;+ border:none;+ border-radius:8px;+ outline:none;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ pointer-events:none;++ }++ &.missingThumbnailImage{+ content-visibility:hidden;+ }++ &:hover{+ cursor:pointer;+ box-shadow:var(--image-hover-shadow);++ &::after{+ background-color:var(--image-hover-page-number-bg);+ color:var(--image-hover-page-number-fg);+ }++ @media screen and (forced-colors: active){+ box-shadow:none;+ outline:var(--image-border-width) var(--image-hover-border-color) solid;+ }+ }++ &:focus-visible{+ &:not([aria-current="page"]){+ box-shadow:var(--image-hover-shadow);+ outline:none;++ @media screen and (forced-colors: active){+ box-shadow:none;+ outline:var(--image-border-width) var(--image-focus-outline-color) solid;+ }+ }++ &[aria-current="page"]{+ outline:var(--image-border-width) solid var(--image-current-focused-outline-color);+ outline-offset:var(--image-border-width);++ @media screen and (forced-colors: active){+ box-shadow:none;+ outline:var(--image-border-width) var(--image-current-border-color) solid;+ outline-offset:0;++ > img{+ outline:var(--image-border-width) var(--image-focus-outline-color) solid;+ outline-offset:var(--image-border-width);+ }+ }+ }++ @media screen and (forced-colors: active){+ box-shadow:none;+ outline:var(--image-border-width) var(--image-current-border-color) solid;++ &:hover > img{+ outline:var(--image-border-width) var(--image-hover-border-color) solid;+ outline-offset:var(--image-border-width);+ }+ }+ }++ &[aria-current="page"]{+ box-shadow:var(--image-current-shadow);++ &:hover::after{+ background-color:var(--image-current-hover-page-number-bg);+ color:var(--image-current-hover-page-number-fg);+ }++ @media screen and (forced-colors: active){+ box-shadow:none;+ outline:var(--image-border-width) var(--image-current-border-color) solid;++ &:hover > img{+ outline:var(--image-border-width) var(--image-hover-border-color) solid;+ outline-offset:var(--image-border-width);+ }+ }+ }++ &.placeholder{+ background-color:var(--image-dragging-placeholder-bg);+ box-shadow:none !important;+ outline:var(--image-dragging-placeholder-border);+ }++ &.draggingThumbnail{+ position:absolute;+ left:0;+ top:0;+ z-index:1;+ transform-origin:0 0 0;+ scale:calc(1 / var(--thumbnail-dragging-scale));+ pointer-events:none;+ box-shadow:var(--image-dragging-shadow);++ &.multiple{+ box-shadow:var(--image-multiple-dragging-shadow);++ @media screen and (forced-colors: active){+ forced-color-adjust:none;+ box-shadow:var(--image-multiple-dragging-shadow);+ }++ > .thumbnailImageContainer{+ position:absolute;+ top:0;+ left:0;++ width:var(--thumbnail-width);+ border:none;+ border-radius:8px;+ box-sizing:content-box;+ outline:none;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;++ }++ &::after{+ content:attr(data-multiple-count);+ border-radius:calc(8px * var(--thumbnail-dragging-scale));++ background-color:var(--multiple-dragging-indicator-bg);+ color:var(--multiple-dragging-text-color);+ position:absolute;+ inset-block-end:calc(4px * var(--thumbnail-dragging-scale));+ inset-inline-start:calc(4px * var(--thumbnail-dragging-scale));+ min-width:calc(32px * var(--thumbnail-dragging-scale));+ height:calc(16px * var(--thumbnail-dragging-scale));+ text-align:center;+ font:menu;+ font-size:calc(13px * var(--thumbnail-dragging-scale));+ font-style:normal;+ font-weight:400;+ line-height:normal;+ contain:strict;+ }+ }+ }+ }+ }+ }++ #attachmentsView{+ --attachment-color:light-dark(rgb(0 0 0 / 0.8), rgb(255 255 255 / 0.8));+ --attachment-bg-color:light-dark(+ rgb(0 0 0 / 0.15),+ rgb(255 255 255 / 0.15)+ );+ --attachment-hover-color:light-dark(+ rgb(0 0 0 / 0.9),+ rgb(255 255 255 / 0.9)+ );++ > ul{+ list-style-type:none;+ padding:0;++ > li > a{+ text-decoration:none;+ display:inline-block;+ min-width:calc(100% - 4px);+ height:auto;+ margin-bottom:1px;+ padding:2px 0 5px;+ padding-inline-start:4px;+ border-radius:2px;+ color:var(--attachment-color);+ font-size:13px;+ line-height:15px;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+ white-space:normal;+ cursor:pointer;++ &:hover{+ background-color:var(--attachment-bg-color);+ background-clip:padding-box;+ border-radius:2px;+ color:var(--attachment-hover-color);+ }+ }+ }+ }+ }+}++.sidebar{+ --sidebar-bg-color:var(--background-color-box, light-dark(#fff, #23222b));+ --sidebar-border-color:light-dark(+ rgb(21 20 26 / 0.1),+ rgb(251 251 254 / 0.1)+ );+ --sidebar-box-shadow:0 0.25px 0.75px light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)), 0 2px 6px 0 light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));+ --sidebar-backdrop-filter:none;+ --sidebar-border-radius:8px;+ --sidebar-padding:5px;+ --sidebar-min-width:180px;+ --sidebar-max-width:632px;+ --sidebar-width:239px;+ --resizer-width:4px;+ --resizer-shift:calc(0px - var(--resizer-width) - 2px);+ --resizer-hover-bg-color:var(+ --color-accent-primary,+ light-dark(#0062fa, #00cadb)+ );++ @media screen and (forced-colors: active){+ --sidebar-bg-color:var(--background-color-box, Canvas);+ --sidebar-border-color:CanvasText;+ --sidebar-box-shadow:none;+ --resizer-hover-bg-color:var(--text-color, CanvasText);+ }++ border-radius:var(--sidebar-border-radius);+ box-shadow:var(--sidebar-box-shadow);+ border:1px solid var(--sidebar-border-color);+ background-color:var(--sidebar-bg-color);+ inset-block-start:calc(100% + var(--doorhanger-height) - 2px);+ padding-block:var(--sidebar-padding);+ width:var(--sidebar-width);+ min-width:var(--sidebar-min-width);+ max-width:var(--sidebar-max-width);+ backdrop-filter:var(--sidebar-backdrop-filter);+ box-sizing:border-box;+ position:relative;++ .sidebarResizer{+ width:var(--resizer-width);+ background-color:transparent;+ forced-color-adjust:none;+ cursor:ew-resize;+ position:absolute;+ inset-block:0;+ inset-inline-start:var(--resizer-shift);+ transition:background-color 0.5s ease-in-out, border-color 0.5s ease-in-out;+ box-sizing:border-box;+ border:1px solid transparent;+ border-block-width:0;+ background-clip:content-box;++ &:hover{+ background-color:var(--resizer-hover-bg-color);+ border-color:white;+ }+ &:focus-visible{+ background-color:var(--resizer-hover-bg-color);+ outline:none;+ }+ }++ &.resizing{+ cursor:ew-resize;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;++ :not(.sidebarResizer){+ pointer-events:none;+ }++ .sidebarResizer{+ background-color:var(--resizer-hover-bg-color);+ }+ }+}++:root{+ color-scheme:light dark;++ --viewer-container-height:0;+ --pdfViewer-padding-bottom:0;+ --page-margin:1px auto -8px;+ --page-border:9px solid transparent;+ --spreadHorizontalWrapped-margin-LR:-3.5px;+ --loading-icon-delay:400ms;+ --focus-ring-color:var(--focus-outline-color, light-dark(#0060df, #0df));+ --focus-ring-outline:var(--focus-outline-width, 2px) solid var(--focus-ring-color);+ --text-primary-color:var(--text-color, light-dark(#15141a, #fbfbfe));+ --link-fg-color:var(--link-color, light-dark(#0060df, #0df));+ --link-hover-fg-color:var(--link-color-hover, light-dark(#0250bb, #80ebff));+ --new-badge-bg:light-dark(#070, #37b847);+ --new-badge-color:light-dark(#fff, #15141a);+ --new-badge-border-color:light-dark(#fbfbfe / 40%, #15141a / 40%);++ @media screen and (forced-colors: active){+ --pdfViewer-padding-bottom:9px;+ --page-margin:8px auto -1px;+ --page-border:1px solid CanvasText;+ --spreadHorizontalWrapped-margin-LR:3.5px;+ --focus-ring-color:var(--focus-outline-color, CanvasText);+ --text-primary-color:var(--text-color, CanvasText);+ --link-fg-color:var(--link-color, LinkText);+ --link-hover-fg-color:var(--link-color-hover, LinkText);+ --new-badge-bg:AccentColor;+ --new-badge-color:ButtonFace;+ --new-badge-border-color:CanvasText;+ }+}++.newBadge{+ background-color:var(--new-badge-bg);+ color:var(--new-badge-color);+ border-radius:4px;+ border:1px solid var(--new-badge-border-color);+ padding-inline:4px;++ margin-inline:4px;+ font:menu;+ font-size:12px;+ font-style:normal;+ font-weight:400;+ line-height:normal;+ flex:0 0 fit-content;+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+}++[data-main-rotation="90"]{+ transform:rotate(90deg) translateY(-100%);+}+[data-main-rotation="180"]{+ transform:rotate(180deg) translate(-100%, -100%);+}+[data-main-rotation="270"]{+ transform:rotate(270deg) translateX(-100%);+}++.pdfViewer{+ --scale-factor:1;+ --page-bg-color:unset;++ padding-bottom:var(--pdfViewer-padding-bottom);++ --hcm-highlight-filter:none;+ --hcm-highlight-selected-filter:none;++ @media screen and (forced-colors: active){+ --hcm-highlight-filter:invert(100%);+ }++ &.copyAll{+ cursor:wait;+ }++ .canvasWrapper{+ overflow:hidden;+ width:100%;+ height:100%;++ canvas{+ position:absolute;+ top:0;+ left:0;+ margin:0;+ display:block;+ width:100%;+ height:100%;+ contain:content;++ .structTree{+ contain:strict;+ }++ &.detailView{+ image-rendering:pixelated;+ }+ }+ .selection{+ position:absolute;+ top:0;+ left:0;+ width:100%;+ height:100%;+ pointer-events:none;+ background:rgb(0 90 255 / 0.22);+ }+ }+}++.pdfViewer .page{+ --user-unit:1;+ --total-scale-factor:calc(var(--scale-factor) * var(--user-unit));+ --scale-round-x:1px;+ --scale-round-y:1px;++ direction:ltr;+ width:816px;+ height:1056px;+ margin:var(--page-margin);+ position:relative;+ overflow:visible;+ border:var(--page-border);+ background-clip:content-box;+ background-color:var(--page-bg-color, rgb(255 255 255));+}++.pdfViewer .dummyPage{+ position:relative;+ width:0;+ height:var(--viewer-container-height);+}++.pdfViewer.noUserSelect{+ -webkit-user-select:none;+ -moz-user-select:none;+ user-select:none;+}++.pdfViewer.removePageBorders .page{+ margin:0 auto 10px;+ border:none;+}++.pdfViewer.singlePageView{+ display:inline-block;+}++.pdfViewer.singlePageView .page{+ margin:0;+ border:none;+}++.pdfViewer:is(.scrollHorizontal, .scrollWrapped),+.spread{+ margin-inline:3.5px;+ text-align:center;+}++.pdfViewer.scrollHorizontal,+.spread{+ white-space:nowrap;+}++.pdfViewer.removePageBorders,+.pdfViewer:is(.scrollHorizontal, .scrollWrapped) .spread{+ margin-inline:0;+}++.spread :is(.page, .dummyPage),+.pdfViewer:is(.scrollHorizontal, .scrollWrapped) :is(.page, .spread){+ display:inline-block;+ vertical-align:middle;+}++.spread .page,+.pdfViewer:is(.scrollHorizontal, .scrollWrapped) .page{+ margin-inline:var(--spreadHorizontalWrapped-margin-LR);+}++.pdfViewer.removePageBorders .spread .page,+.pdfViewer.removePageBorders:is(.scrollHorizontal, .scrollWrapped) .page{+ margin-inline:5px;+}++.pdfViewer .page.loadingIcon::after{+ position:absolute;+ top:0;+ left:0;+ content:"";+ width:100%;+ height:100%;+ background:url("images/loading-icon.gif") center no-repeat;+ display:none;+ transition-property:display;+ transition-delay:var(--loading-icon-delay);+ z-index:5;+ contain:strict;+}++.pdfViewer .page.loading::after{+ display:block;+}++.pdfViewer .page:not(.loading)::after{+ transition-property:none;+ display:none;+}++.pdfPresentationMode .pdfViewer{+ padding-bottom:0;+}++.pdfPresentationMode .spread{+ margin:0;+}++.pdfPresentationMode .pdfViewer .page{+ margin:0 auto;+ border:2px solid transparent;+}diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/pdf_viewer.mjs b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/pdf_viewer.mjsnew file mode 100644index 00000000..b558cc97--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/legacy/web/pdf_viewer.mjs@@ -0,0 +1,15029 @@+/**+ * @licstart The following is the entire license notice for the+ * JavaScript code in this page+ *+ * Copyright 2024 Mozilla Foundation+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ *+ * @licend The above is the entire license notice for the+ * JavaScript code in this page+ */++/**+ * pdfjsVersion = 6.3.289+ * pdfjsBuild = 1c8020a7d+ */+/******/ var __webpack_modules__ = ({++/***/ 9306+(module, __unused_webpack_exports, __webpack_require__) {+++var isCallable = __webpack_require__(4901);+var tryToString = __webpack_require__(6823);++var $TypeError = TypeError;++// `Assert: IsCallable(argument) is true`+module.exports = function (argument) {+ if (isCallable(argument)) return argument;+ throw new $TypeError(tryToString(argument) + ' is not a function');+};+++/***/ },++/***/ 3506+(module, __unused_webpack_exports, __webpack_require__) {+++var isPossiblePrototype = __webpack_require__(3925);++var $String = String;+var $TypeError = TypeError;++module.exports = function (argument) {+ if (isPossiblePrototype(argument)) return argument;+ throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');+};+++/***/ },++/***/ 7080+(module, __unused_webpack_exports, __webpack_require__) {+++var has = (__webpack_require__(4402).has);++// Perform ? RequireInternalSlot(M, [[SetData]])+module.exports = function (it) {+ has(it);+ return it;+};+++/***/ },++/***/ 3463+(module) {+++var $TypeError = TypeError;++module.exports = function (argument) {+ if (typeof argument == 'string') return argument;+ throw new $TypeError('Argument is not a string');+};+++/***/ },++/***/ 4328+(module, __unused_webpack_exports, __webpack_require__) {+++var WeakMapHelpers = __webpack_require__(4995);++var weakmap = new WeakMapHelpers.WeakMap();+var set = WeakMapHelpers.set;+var remove = WeakMapHelpers.remove;++module.exports = function (key) {+ set(weakmap, key, 1);+ remove(weakmap, key);+ return key;+};+++/***/ },++/***/ 6557+(module, __unused_webpack_exports, __webpack_require__) {+++var has = (__webpack_require__(4995).has);++// Perform ? RequireInternalSlot(M, [[WeakMapData]])+module.exports = function (it) {+ has(it);+ return it;+};+++/***/ },++/***/ 6469+(module, __unused_webpack_exports, __webpack_require__) {+++var wellKnownSymbol = __webpack_require__(8227);+var create = __webpack_require__(2360);+var defineProperty = (__webpack_require__(4913).f);++var UNSCOPABLES = wellKnownSymbol('unscopables');+var ArrayPrototype = Array.prototype;++// Array.prototype[@@unscopables]+// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables+if (ArrayPrototype[UNSCOPABLES] === undefined) {+ defineProperty(ArrayPrototype, UNSCOPABLES, {+ configurable: true,+ value: create(null)+ });+}++// add a key to Array.prototype[@@unscopables]+module.exports = function (key) {+ ArrayPrototype[UNSCOPABLES][key] = true;+};+++/***/ },++/***/ 679+(module, __unused_webpack_exports, __webpack_require__) {+++var isPrototypeOf = __webpack_require__(1625);++var $TypeError = TypeError;++module.exports = function (it, Prototype) {+ if (isPrototypeOf(Prototype, it)) return it;+ throw new $TypeError('Incorrect invocation');+};+++/***/ },++/***/ 8551+(module, __unused_webpack_exports, __webpack_require__) {+++var isObject = __webpack_require__(34);++var $String = String;+var $TypeError = TypeError;++// `Assert: Type(argument) is Object`+module.exports = function (argument) {+ if (isObject(argument)) return argument;+ throw new $TypeError($String(argument) + ' is not an object');+};+++/***/ },++/***/ 7811+(module) {+++// eslint-disable-next-line es/no-typed-arrays -- safe+module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';+++/***/ },++/***/ 4644+(module, __unused_webpack_exports, __webpack_require__) {+++var NATIVE_ARRAY_BUFFER = __webpack_require__(7811);+var DESCRIPTORS = __webpack_require__(3724);+var globalThis = __webpack_require__(4576);+var isCallable = __webpack_require__(4901);+var isObject = __webpack_require__(34);+var hasOwn = __webpack_require__(9297);+var classof = __webpack_require__(6955);+var tryToString = __webpack_require__(6823);+var createNonEnumerableProperty = __webpack_require__(6699);+var defineBuiltIn = __webpack_require__(6840);+var defineBuiltInAccessor = __webpack_require__(2106);+var isPrototypeOf = __webpack_require__(1625);+var getPrototypeOf = __webpack_require__(2787);+var setPrototypeOf = __webpack_require__(2967);+var wellKnownSymbol = __webpack_require__(8227);+var uid = __webpack_require__(3392);+var InternalStateModule = __webpack_require__(1181);++var enforceInternalState = InternalStateModule.enforce;+var getInternalState = InternalStateModule.get;+var Int8Array = globalThis.Int8Array;+var Int8ArrayPrototype = Int8Array && Int8Array.prototype;+var Uint8ClampedArray = globalThis.Uint8ClampedArray;+var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;+var TypedArray = Int8Array && getPrototypeOf(Int8Array);+var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);+var ObjectPrototype = Object.prototype;+var TypeError = globalThis.TypeError;++var TO_STRING_TAG = wellKnownSymbol('toStringTag');+var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');+var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';+// Fixing native typed arrays in Opera Presto crashes the browser, see #595+var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(globalThis.opera) !== 'Opera';+var TYPED_ARRAY_TAG_REQUIRED = false;+var NAME, Constructor, Prototype;++var TypedArrayConstructorsList = {+ Int8Array: 1,+ Uint8Array: 1,+ Uint8ClampedArray: 1,+ Int16Array: 2,+ Uint16Array: 2,+ Int32Array: 4,+ Uint32Array: 4,+ Float32Array: 4,+ Float64Array: 8+};++var BigIntArrayConstructorsList = {+ BigInt64Array: 8,+ BigUint64Array: 8+};++var isView = function isView(it) {+ if (!isObject(it)) return false;+ var klass = classof(it);+ return klass === 'DataView'+ || hasOwn(TypedArrayConstructorsList, klass)+ || hasOwn(BigIntArrayConstructorsList, klass);+};++var getTypedArrayConstructor = function (it) {+ var proto = getPrototypeOf(it);+ if (!isObject(proto)) return;+ var state = getInternalState(proto);+ return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);+};++var isTypedArray = function (it) {+ if (!isObject(it)) return false;+ var klass = classof(it);+ return hasOwn(TypedArrayConstructorsList, klass)+ || hasOwn(BigIntArrayConstructorsList, klass);+};++var aTypedArray = function (it) {+ if (isTypedArray(it)) return it;+ throw new TypeError('Target is not a typed array');+};++var aTypedArrayConstructor = function (C) {+ if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C;+ throw new TypeError(tryToString(C) + ' is not a typed array constructor');+};++var exportTypedArrayMethod = function (KEY, property, forced, options) {+ if (!DESCRIPTORS) return;+ if (forced) for (var ARRAY in TypedArrayConstructorsList) {+ var TypedArrayConstructor = globalThis[ARRAY];+ if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try {+ delete TypedArrayConstructor.prototype[KEY];+ } catch (error) {+ // old WebKit bug - some methods are non-configurable+ try {+ TypedArrayConstructor.prototype[KEY] = property;+ } catch (error2) { /* empty */ }+ }+ }+ if (!TypedArrayPrototype[KEY] || forced) {+ defineBuiltIn(TypedArrayPrototype, KEY, forced ? property+ : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);+ }+};++var exportTypedArrayStaticMethod = function (KEY, property, forced) {+ var ARRAY, TypedArrayConstructor;+ if (!DESCRIPTORS) return;+ if (setPrototypeOf) {+ if (forced) for (ARRAY in TypedArrayConstructorsList) {+ TypedArrayConstructor = globalThis[ARRAY];+ if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try {+ delete TypedArrayConstructor[KEY];+ } catch (error) { /* empty */ }+ }+ if (!TypedArray[KEY] || forced) {+ // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable+ try {+ return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);+ } catch (error) { /* empty */ }+ } else return;+ }+ for (ARRAY in TypedArrayConstructorsList) {+ TypedArrayConstructor = globalThis[ARRAY];+ if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {+ defineBuiltIn(TypedArrayConstructor, KEY, property);+ }+ }+};++for (NAME in TypedArrayConstructorsList) {+ Constructor = globalThis[NAME];+ Prototype = Constructor && Constructor.prototype;+ if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;+ else NATIVE_ARRAY_BUFFER_VIEWS = false;+}++for (NAME in BigIntArrayConstructorsList) {+ Constructor = globalThis[NAME];+ Prototype = Constructor && Constructor.prototype;+ if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;+}++// WebKit bug - typed arrays constructors prototype is Object.prototype+if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {+ // eslint-disable-next-line no-shadow -- safe+ TypedArray = function TypedArray() {+ throw new TypeError('Incorrect invocation');+ };+ if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {+ if (globalThis[NAME]) setPrototypeOf(globalThis[NAME], TypedArray);+ }+}++if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {+ TypedArrayPrototype = TypedArray.prototype;+ if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {+ if (globalThis[NAME]) setPrototypeOf(globalThis[NAME].prototype, TypedArrayPrototype);+ }+}++// WebKit bug - one more object in Uint8ClampedArray prototype chain+if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {+ setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);+}++if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {+ TYPED_ARRAY_TAG_REQUIRED = true;+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, {+ configurable: true,+ get: function () {+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;+ }+ });+ for (NAME in TypedArrayConstructorsList) if (globalThis[NAME]) {+ createNonEnumerableProperty(globalThis[NAME].prototype, TYPED_ARRAY_TAG, NAME);+ }+}++module.exports = {+ NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,+ TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,+ aTypedArray: aTypedArray,+ aTypedArrayConstructor: aTypedArrayConstructor,+ exportTypedArrayMethod: exportTypedArrayMethod,+ exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,+ getTypedArrayConstructor: getTypedArrayConstructor,+ isView: isView,+ isTypedArray: isTypedArray,+ TypedArray: TypedArray,+ TypedArrayPrototype: TypedArrayPrototype+};+++/***/ },++/***/ 9617+(module, __unused_webpack_exports, __webpack_require__) {+++var toIndexedObject = __webpack_require__(5397);+var toAbsoluteIndex = __webpack_require__(5610);+var lengthOfArrayLike = __webpack_require__(6198);++// `Array.prototype.{ indexOf, includes }` methods implementation+var createMethod = function (IS_INCLUDES) {+ return function ($this, el, fromIndex) {+ var O = toIndexedObject($this);+ var length = lengthOfArrayLike(O);+ if (length === 0) return !IS_INCLUDES && -1;+ var index = toAbsoluteIndex(fromIndex, length);+ var value;+ // Array#includes uses SameValueZero equality algorithm+ // eslint-disable-next-line no-self-compare -- NaN check+ if (IS_INCLUDES && el !== el) while (length > index) {+ value = O[index++];+ // eslint-disable-next-line no-self-compare -- NaN check+ if (value !== value) return true;+ // Array#indexOf ignores holes, Array#includes - not+ } else for (;length > index; index++) {+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;+ } return !IS_INCLUDES && -1;+ };+};++module.exports = {+ // `Array.prototype.includes` method+ // https://tc39.es/ecma262/#sec-array.prototype.includes+ includes: createMethod(true),+ // `Array.prototype.indexOf` method+ // https://tc39.es/ecma262/#sec-array.prototype.indexof+ indexOf: createMethod(false)+};+++/***/ },++/***/ 4527+(module, __unused_webpack_exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var isArray = __webpack_require__(4376);++var $TypeError = TypeError;+// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe+var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;++// Safari < 13 does not throw an error in this case+var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {+ // makes no sense without proper strict mode support+ if (this !== undefined) return true;+ try {+ // eslint-disable-next-line es/no-object-defineproperty -- safe+ Object.defineProperty([], 'length', { writable: false }).length = 1;+ } catch (error) {+ return error instanceof TypeError;+ }+}();++module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {+ if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {+ throw new $TypeError('Cannot set read only .length');+ } return O.length = length;+} : function (O, length) {+ return O.length = length;+};+++/***/ },++/***/ 6319+(module, __unused_webpack_exports, __webpack_require__) {+++var anObject = __webpack_require__(8551);+var iteratorClose = __webpack_require__(9539);++// call something on iterator step with safe closing on error+module.exports = function (iterator, fn, value, ENTRIES) {+ try {+ return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);+ } catch (error) {+ iteratorClose(iterator, 'throw', error);+ }+};+++/***/ },++/***/ 2195+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);++var toString = uncurryThis({}.toString);+var stringSlice = uncurryThis(''.slice);++module.exports = function (it) {+ return stringSlice(toString(it), 8, -1);+};+++/***/ },++/***/ 6955+(module, __unused_webpack_exports, __webpack_require__) {+++var TO_STRING_TAG_SUPPORT = __webpack_require__(2140);+var isCallable = __webpack_require__(4901);+var classofRaw = __webpack_require__(2195);+var wellKnownSymbol = __webpack_require__(8227);++var TO_STRING_TAG = wellKnownSymbol('toStringTag');+var $Object = Object;++// ES3 wrong here+var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';++// fallback for IE11 Script Access Denied error+var tryGet = function (it, key) {+ try {+ return it[key];+ } catch (error) { /* empty */ }+};++// getting tag from ES6+ `Object.prototype.toString`+module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {+ var O, tag, result;+ return it === undefined ? 'Undefined' : it === null ? 'Null'+ // @@toStringTag case+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag+ // builtinTag case+ : CORRECT_ARGUMENTS ? classofRaw(O)+ // ES3 arguments fallback+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;+};+++/***/ },++/***/ 7740+(module, __unused_webpack_exports, __webpack_require__) {+++var hasOwn = __webpack_require__(9297);+var ownKeys = __webpack_require__(5031);+var getOwnPropertyDescriptorModule = __webpack_require__(7347);+var definePropertyModule = __webpack_require__(4913);++module.exports = function (target, source, exceptions) {+ var keys = ownKeys(source);+ var defineProperty = definePropertyModule.f;+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;+ for (var i = 0; i < keys.length; i++) {+ var key = keys[i];+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));+ }+ }+};+++/***/ },++/***/ 2211+(module, __unused_webpack_exports, __webpack_require__) {+++var fails = __webpack_require__(9039);++module.exports = !fails(function () {+ function F() { /* empty */ }+ F.prototype.constructor = null;+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing+ return Object.getPrototypeOf(new F()) !== F.prototype;+});+++/***/ },++/***/ 2529+(module) {+++// `CreateIterResultObject` abstract operation+// https://tc39.es/ecma262/#sec-createiterresultobject+module.exports = function (value, done) {+ return { value: value, done: done };+};+++/***/ },++/***/ 6699+(module, __unused_webpack_exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var definePropertyModule = __webpack_require__(4913);+var createPropertyDescriptor = __webpack_require__(6980);++module.exports = DESCRIPTORS ? function (object, key, value) {+ return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));+} : function (object, key, value) {+ object[key] = value;+ return object;+};+++/***/ },++/***/ 6980+(module) {+++module.exports = function (bitmap, value) {+ return {+ enumerable: !(bitmap & 1),+ configurable: !(bitmap & 2),+ writable: !(bitmap & 4),+ value: value+ };+};+++/***/ },++/***/ 4659+(module, __unused_webpack_exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var definePropertyModule = __webpack_require__(4913);+var createPropertyDescriptor = __webpack_require__(6980);++module.exports = function (object, key, value) {+ if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));+ else object[key] = value;+};+++/***/ },++/***/ 2106+(module, __unused_webpack_exports, __webpack_require__) {+++var makeBuiltIn = __webpack_require__(283);+var defineProperty = __webpack_require__(4913);++module.exports = function (target, name, descriptor) {+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });+ return defineProperty.f(target, name, descriptor);+};+++/***/ },++/***/ 6840+(module, __unused_webpack_exports, __webpack_require__) {+++var isCallable = __webpack_require__(4901);+var definePropertyModule = __webpack_require__(4913);+var makeBuiltIn = __webpack_require__(283);+var defineGlobalProperty = __webpack_require__(9433);++module.exports = function (O, key, value, options) {+ if (!options) options = {};+ var simple = options.enumerable;+ var name = options.name !== undefined ? options.name : key;+ if (isCallable(value)) makeBuiltIn(value, name, options);+ if (options.global) {+ if (simple) O[key] = value;+ else defineGlobalProperty(key, value);+ } else {+ try {+ if (!options.unsafe) delete O[key];+ else if (O[key]) simple = true;+ } catch (error) { /* empty */ }+ if (simple) O[key] = value;+ else definePropertyModule.f(O, key, {+ value: value,+ enumerable: false,+ configurable: !options.nonConfigurable,+ writable: !options.nonWritable+ });+ } return O;+};+++/***/ },++/***/ 6279+(module, __unused_webpack_exports, __webpack_require__) {+++var defineBuiltIn = __webpack_require__(6840);++module.exports = function (target, src, options) {+ for (var key in src) defineBuiltIn(target, key, src[key], options);+ return target;+};+++/***/ },++/***/ 9433+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);++// eslint-disable-next-line es/no-object-defineproperty -- safe+var defineProperty = Object.defineProperty;++module.exports = function (key, value) {+ try {+ defineProperty(globalThis, key, { value: value, configurable: true, writable: true });+ } catch (error) {+ globalThis[key] = value;+ } return value;+};+++/***/ },++/***/ 3724+(module, __unused_webpack_exports, __webpack_require__) {+++var fails = __webpack_require__(9039);++// Detect IE8's incomplete defineProperty implementation+module.exports = !fails(function () {+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;+});+++/***/ },++/***/ 4055+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);+var isObject = __webpack_require__(34);++var document = globalThis.document;+// typeof document.createElement is 'object' in old IE+var EXISTS = isObject(document) && isObject(document.createElement);++module.exports = function (it) {+ return EXISTS ? document.createElement(it) : {};+};+++/***/ },++/***/ 6837+(module) {+++var $TypeError = TypeError;+var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991++module.exports = function (it) {+ if (it > MAX_SAFE_INTEGER) throw new $TypeError('Maximum allowed index exceeded');+ return it;+};+++/***/ },++/***/ 8727+(module) {+++// IE8- don't enum bug keys+module.exports = [+ 'constructor',+ 'hasOwnProperty',+ 'isPrototypeOf',+ 'propertyIsEnumerable',+ 'toLocaleString',+ 'toString',+ 'valueOf'+];+++/***/ },++/***/ 2839+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);++var navigator = globalThis.navigator;+var userAgent = navigator && navigator.userAgent;++module.exports = userAgent ? String(userAgent) : '';+++/***/ },++/***/ 9519+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);+var userAgent = __webpack_require__(2839);++var process = globalThis.process;+var Deno = globalThis.Deno;+var versions = process && process.versions || Deno && Deno.version;+var v8 = versions && versions.v8;+var match, version;++if (v8) {+ match = v8.split('.');+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10+ // but their correct versions are not interesting for us+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);+}++// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`+// so check `userAgent` even if `.v8` exists, but 0+if (!version && userAgent) {+ match = userAgent.match(/Edge\/(\d+)/);+ if (!match || match[1] >= 74) {+ match = userAgent.match(/Chrome\/(\d+)/);+ if (match) version = +match[1];+ }+}++module.exports = version;+++/***/ },++/***/ 6518+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);+var getOwnPropertyDescriptor = (__webpack_require__(7347).f);+var createNonEnumerableProperty = __webpack_require__(6699);+var defineBuiltIn = __webpack_require__(6840);+var defineGlobalProperty = __webpack_require__(9433);+var copyConstructorProperties = __webpack_require__(7740);+var isForced = __webpack_require__(2796);++/*+ options.target - name of the target object+ options.global - target is the global object+ options.stat - export as static methods of target+ options.proto - export as prototype methods of target+ options.real - real prototype method for the `pure` version+ options.forced - export even if the native feature is available+ options.bind - bind methods to the target, required for the `pure` version+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version+ options.unsafe - use the simple assignment of property instead of delete + defineProperty+ options.sham - add a flag to not completely full polyfills+ options.enumerable - export as enumerable property+ options.dontCallGetSet - prevent calling a getter on target+ options.name - the .name of the function if it does not match the key+*/+module.exports = function (options, source) {+ var TARGET = options.target;+ var GLOBAL = options.global;+ var STATIC = options.stat;+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;+ if (GLOBAL) {+ target = globalThis;+ } else if (STATIC) {+ target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});+ } else {+ target = globalThis[TARGET] && globalThis[TARGET].prototype;+ }+ if (target) for (key in source) {+ sourceProperty = source[key];+ if (options.dontCallGetSet) {+ descriptor = getOwnPropertyDescriptor(target, key);+ targetProperty = descriptor && descriptor.value;+ } else targetProperty = target[key];+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);+ // contained in target+ if (!FORCED && targetProperty !== undefined) {+ if (typeof sourceProperty == typeof targetProperty) continue;+ copyConstructorProperties(sourceProperty, targetProperty);+ }+ // add a flag to not completely full polyfills+ if (options.sham || (targetProperty && targetProperty.sham)) {+ createNonEnumerableProperty(sourceProperty, 'sham', true);+ }+ defineBuiltIn(target, key, sourceProperty, options);+ }+};+++/***/ },++/***/ 9039+(module) {+++module.exports = function (exec) {+ try {+ return !!exec();+ } catch (error) {+ return true;+ }+};+++/***/ },++/***/ 6080+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(7476);+var aCallable = __webpack_require__(9306);+var NATIVE_BIND = __webpack_require__(616);++var bind = uncurryThis(uncurryThis.bind);++// optional / simple context binding+module.exports = function (fn, that) {+ aCallable(fn);+ return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {+ return fn.apply(that, arguments);+ };+};+++/***/ },++/***/ 616+(module, __unused_webpack_exports, __webpack_require__) {+++var fails = __webpack_require__(9039);++module.exports = !fails(function () {+ // eslint-disable-next-line es/no-function-prototype-bind -- safe+ var test = function () { /* empty */ }.bind();+ // eslint-disable-next-line no-prototype-builtins -- safe+ return typeof test != 'function' || test.hasOwnProperty('prototype');+});+++/***/ },++/***/ 9565+(module, __unused_webpack_exports, __webpack_require__) {+++var NATIVE_BIND = __webpack_require__(616);++var call = Function.prototype.call;+// eslint-disable-next-line es/no-function-prototype-bind -- safe+module.exports = NATIVE_BIND ? call.bind(call) : function () {+ return call.apply(call, arguments);+};+++/***/ },++/***/ 350+(module, __unused_webpack_exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var hasOwn = __webpack_require__(9297);++var FunctionPrototype = Function.prototype;+// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe+var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;++var EXISTS = hasOwn(FunctionPrototype, 'name');+// additional protection from minified / mangled / dropped function names+var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';+var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));++module.exports = {+ EXISTS: EXISTS,+ PROPER: PROPER,+ CONFIGURABLE: CONFIGURABLE+};+++/***/ },++/***/ 6706+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var aCallable = __webpack_require__(9306);++module.exports = function (object, key, method) {+ try {+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe+ return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));+ } catch (error) { /* empty */ }+};+++/***/ },++/***/ 7476+(module, __unused_webpack_exports, __webpack_require__) {+++var classofRaw = __webpack_require__(2195);+var uncurryThis = __webpack_require__(9504);++module.exports = function (fn) {+ // Nashorn bug:+ // https://github.com/zloirock/core-js/issues/1128+ // https://github.com/zloirock/core-js/issues/1130+ if (classofRaw(fn) === 'Function') return uncurryThis(fn);+};+++/***/ },++/***/ 9504+(module, __unused_webpack_exports, __webpack_require__) {+++var NATIVE_BIND = __webpack_require__(616);++var FunctionPrototype = Function.prototype;+var call = FunctionPrototype.call;+// eslint-disable-next-line es/no-function-prototype-bind -- safe+var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);++module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {+ return function () {+ return call.apply(fn, arguments);+ };+};+++/***/ },++/***/ 7751+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);+var isCallable = __webpack_require__(4901);++var aFunction = function (argument) {+ return isCallable(argument) ? argument : undefined;+};++module.exports = function (namespace, method) {+ return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];+};+++/***/ },++/***/ 1767+(module) {+++// `GetIteratorDirect(obj)` abstract operation+// https://tc39.es/ecma262/#sec-getiteratordirect+module.exports = function (obj) {+ return {+ iterator: obj,+ next: obj.next,+ done: false+ };+};+++/***/ },++/***/ 8563+(module, __unused_webpack_exports, __webpack_require__) {+++var call = __webpack_require__(9565);+var isCallable = __webpack_require__(4901);+var anObject = __webpack_require__(8551);+var tryToString = __webpack_require__(6823);+var getIteratorMethod = __webpack_require__(3085);++var $TypeError = TypeError;++module.exports = function (argument, usingIterator) {+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;+ if (isCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));+ throw new $TypeError(tryToString(argument) + ' is not iterable');+};+++/***/ },++/***/ 3085+(module, __unused_webpack_exports, __webpack_require__) {+++var classof = __webpack_require__(2195);+var isNullOrUndefined = __webpack_require__(4117);+var getMethod = __webpack_require__(5966);+var wellKnownSymbol = __webpack_require__(8227);++var ITERATOR = wellKnownSymbol('iterator');+var ArrayPrototype = Array.prototype;++module.exports = function (it) {+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)+ || getMethod(it, '@@iterator')+ || (classof(it) === 'Arguments' ? ArrayPrototype[ITERATOR] : undefined);+};+++/***/ },++/***/ 5966+(module, __unused_webpack_exports, __webpack_require__) {+++var aCallable = __webpack_require__(9306);+var isNullOrUndefined = __webpack_require__(4117);++// `GetMethod` abstract operation+// https://tc39.es/ecma262/#sec-getmethod+module.exports = function (V, P) {+ var func = V[P];+ return isNullOrUndefined(func) ? undefined : aCallable(func);+};+++/***/ },++/***/ 3789+(module, __unused_webpack_exports, __webpack_require__) {+++var aCallable = __webpack_require__(9306);+var anObject = __webpack_require__(8551);+var call = __webpack_require__(9565);+var toIntegerOrInfinity = __webpack_require__(1291);+var getIteratorDirect = __webpack_require__(1767);++var INVALID_SIZE = 'Invalid size';+var $RangeError = RangeError;+var $TypeError = TypeError;+var max = Math.max;++var SetRecord = function (set, intSize) {+ this.set = set;+ this.size = max(intSize, 0);+ this.has = aCallable(set.has);+ this.keys = aCallable(set.keys);+};++SetRecord.prototype = {+ getIterator: function () {+ return getIteratorDirect(anObject(call(this.keys, this.set)));+ },+ includes: function (it) {+ return call(this.has, this.set, it);+ }+};++// `GetSetRecord` abstract operation+// https://tc39.es/proposal-set-methods/#sec-getsetrecord+module.exports = function (obj) {+ anObject(obj);+ var numSize = +obj.size;+ // NOTE: If size is undefined, then numSize will be NaN+ // eslint-disable-next-line no-self-compare -- NaN check+ if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);+ var intSize = toIntegerOrInfinity(numSize);+ if (intSize < 0) throw new $RangeError(INVALID_SIZE);+ return new SetRecord(obj, intSize);+};+++/***/ },++/***/ 4576+(module) {+++var check = function (it) {+ return it && it.Math === Math && it;+};++// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028+module.exports =+ // eslint-disable-next-line es/no-global-this -- safe+ check(typeof globalThis == 'object' && globalThis) ||+ check(typeof window == 'object' && window) ||+ // eslint-disable-next-line no-restricted-globals -- safe+ check(typeof self == 'object' && self) ||+ check(typeof global == 'object' && global) ||+ check(typeof this == 'object' && this) ||+ // eslint-disable-next-line no-new-func -- fallback+ (function () { return this; })() || Function('return this')();+++/***/ },++/***/ 9297+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var toObject = __webpack_require__(8981);++var hasOwnProperty = uncurryThis({}.hasOwnProperty);++// `HasOwnProperty` abstract operation+// https://tc39.es/ecma262/#sec-hasownproperty+// eslint-disable-next-line es/no-object-hasown -- safe+module.exports = Object.hasOwn || function hasOwn(it, key) {+ return hasOwnProperty(toObject(it), key);+};+++/***/ },++/***/ 421+(module) {+++module.exports = {};+++/***/ },++/***/ 397+(module, __unused_webpack_exports, __webpack_require__) {+++var getBuiltIn = __webpack_require__(7751);++module.exports = getBuiltIn('document', 'documentElement');+++/***/ },++/***/ 5917+(module, __unused_webpack_exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var fails = __webpack_require__(9039);+var createElement = __webpack_require__(4055);++// Thanks to IE8 for its funny defineProperty+module.exports = !DESCRIPTORS && !fails(function () {+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing+ return Object.defineProperty(createElement('div'), 'a', {+ get: function () { return 7; }+ }).a !== 7;+});+++/***/ },++/***/ 7055+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var fails = __webpack_require__(9039);+var classof = __webpack_require__(2195);++var $Object = Object;+var split = uncurryThis(''.split);++// fallback for non-array-like ES3 and non-enumerable old V8 strings+module.exports = fails(function () {+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346+ // eslint-disable-next-line no-prototype-builtins -- safe+ return !$Object('z').propertyIsEnumerable(0);+}) ? function (it) {+ return classof(it) === 'String' ? split(it, '') : $Object(it);+} : $Object;+++/***/ },++/***/ 3706+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var isCallable = __webpack_require__(4901);+var store = __webpack_require__(7629);++var functionToString = uncurryThis(Function.toString);++// this helper broken in `[email protected]`, so we can't use `shared` helper+if (!isCallable(store.inspectSource)) {+ store.inspectSource = function (it) {+ return functionToString(it);+ };+}++module.exports = store.inspectSource;+++/***/ },++/***/ 1181+(module, __unused_webpack_exports, __webpack_require__) {+++var NATIVE_WEAK_MAP = __webpack_require__(8622);+var globalThis = __webpack_require__(4576);+var isObject = __webpack_require__(34);+var createNonEnumerableProperty = __webpack_require__(6699);+var hasOwn = __webpack_require__(9297);+var shared = __webpack_require__(7629);+var sharedKey = __webpack_require__(6119);+var hiddenKeys = __webpack_require__(421);++var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';+var TypeError = globalThis.TypeError;+var WeakMap = globalThis.WeakMap;+var set, get, has;++var enforce = function (it) {+ return has(it) ? get(it) : set(it, {});+};++var getterFor = function (TYPE) {+ return function (it) {+ var state;+ if (!isObject(it) || (state = get(it)).type !== TYPE) {+ throw new TypeError('Incompatible receiver, ' + TYPE + ' required');+ } return state;+ };+};++if (NATIVE_WEAK_MAP || shared.state) {+ var store = shared.state || (shared.state = new WeakMap());+ /* eslint-disable no-self-assign -- prototype methods protection */+ store.get = store.get;+ store.has = store.has;+ store.set = store.set;+ /* eslint-enable no-self-assign -- prototype methods protection */+ set = function (it, metadata) {+ if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);+ metadata.facade = it;+ store.set(it, metadata);+ return metadata;+ };+ get = function (it) {+ return store.get(it) || {};+ };+ has = function (it) {+ return store.has(it);+ };+} else {+ var STATE = sharedKey('state');+ hiddenKeys[STATE] = true;+ set = function (it, metadata) {+ if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);+ metadata.facade = it;+ createNonEnumerableProperty(it, STATE, metadata);+ return metadata;+ };+ get = function (it) {+ return hasOwn(it, STATE) ? it[STATE] : {};+ };+ has = function (it) {+ return hasOwn(it, STATE);+ };+}++module.exports = {+ set: set,+ get: get,+ has: has,+ enforce: enforce,+ getterFor: getterFor+};+++/***/ },++/***/ 4209+(module, __unused_webpack_exports, __webpack_require__) {+++var wellKnownSymbol = __webpack_require__(8227);+var Iterators = __webpack_require__(6269);++var ITERATOR = wellKnownSymbol('iterator');+var ArrayPrototype = Array.prototype;++// check on default Array iterator+module.exports = function (it) {+ return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);+};+++/***/ },++/***/ 4376+(module, __unused_webpack_exports, __webpack_require__) {+++var classof = __webpack_require__(2195);++// `IsArray` abstract operation+// https://tc39.es/ecma262/#sec-isarray+// eslint-disable-next-line es/no-array-isarray -- safe+module.exports = Array.isArray || function isArray(argument) {+ return classof(argument) === 'Array';+};+++/***/ },++/***/ 1108+(module, __unused_webpack_exports, __webpack_require__) {+++var classof = __webpack_require__(6955);++module.exports = function (it) {+ var klass = classof(it);+ return klass === 'BigInt64Array' || klass === 'BigUint64Array';+};+++/***/ },++/***/ 4901+(module) {+++// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot+var documentAll = typeof document == 'object' && document.all;++// `IsCallable` abstract operation+// https://tc39.es/ecma262/#sec-iscallable+// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing+module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {+ return typeof argument == 'function' || argument === documentAll;+} : function (argument) {+ return typeof argument == 'function';+};+++/***/ },++/***/ 2796+(module, __unused_webpack_exports, __webpack_require__) {+++var fails = __webpack_require__(9039);+var isCallable = __webpack_require__(4901);++var replacement = /#|\.prototype\./;++var isForced = function (feature, detection) {+ var value = data[normalize(feature)];+ return value === POLYFILL ? true+ : value === NATIVE ? false+ : isCallable(detection) ? fails(detection)+ : !!detection;+};++var normalize = isForced.normalize = function (string) {+ return String(string).replace(replacement, '.').toLowerCase();+};++var data = isForced.data = {};+var NATIVE = isForced.NATIVE = 'N';+var POLYFILL = isForced.POLYFILL = 'P';++module.exports = isForced;+++/***/ },++/***/ 4117+(module) {+++// we can't use just `it == null` since of `document.all` special case+// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec+module.exports = function (it) {+ return it === null || it === undefined;+};+++/***/ },++/***/ 34+(module, __unused_webpack_exports, __webpack_require__) {+++var isCallable = __webpack_require__(4901);++module.exports = function (it) {+ return typeof it == 'object' ? it !== null : isCallable(it);+};+++/***/ },++/***/ 3925+(module, __unused_webpack_exports, __webpack_require__) {+++var isObject = __webpack_require__(34);++module.exports = function (argument) {+ return isObject(argument) || argument === null;+};+++/***/ },++/***/ 6395+(module) {+++module.exports = false;+++/***/ },++/***/ 5810+(module, __unused_webpack_exports, __webpack_require__) {+++var isObject = __webpack_require__(34);+var getInternalState = (__webpack_require__(1181).get);++module.exports = function isRawJSON(O) {+ if (!isObject(O)) return false;+ var state = getInternalState(O);+ return !!state && state.type === 'RawJSON';+};+++/***/ },++/***/ 757+(module, __unused_webpack_exports, __webpack_require__) {+++var getBuiltIn = __webpack_require__(7751);+var isCallable = __webpack_require__(4901);+var isPrototypeOf = __webpack_require__(1625);+var USE_SYMBOL_AS_UID = __webpack_require__(7040);++var $Object = Object;++module.exports = USE_SYMBOL_AS_UID ? function (it) {+ return typeof it == 'symbol';+} : function (it) {+ var $Symbol = getBuiltIn('Symbol');+ return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));+};+++/***/ },++/***/ 507+(module, __unused_webpack_exports, __webpack_require__) {+++var call = __webpack_require__(9565);++module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {+ var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;+ var next = record.next;+ var step, result;+ while (!(step = call(next, iterator)).done) {+ result = fn(step.value);+ if (result !== undefined) return result;+ }+};+++/***/ },++/***/ 2652+(module, __unused_webpack_exports, __webpack_require__) {+++var bind = __webpack_require__(6080);+var call = __webpack_require__(9565);+var anObject = __webpack_require__(8551);+var tryToString = __webpack_require__(6823);+var isArrayIteratorMethod = __webpack_require__(4209);+var lengthOfArrayLike = __webpack_require__(6198);+var isPrototypeOf = __webpack_require__(1625);+var getIterator = __webpack_require__(8563);+var getIteratorMethod = __webpack_require__(3085);+var iteratorClose = __webpack_require__(9539);++var $TypeError = TypeError;++var Result = function (stopped, result) {+ this.stopped = stopped;+ this.result = result;+};++var ResultPrototype = Result.prototype;++module.exports = function (iterable, unboundFunction, options) {+ var that = options && options.that;+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);+ var IS_RECORD = !!(options && options.IS_RECORD);+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);+ var INTERRUPTED = !!(options && options.INTERRUPTED);+ var fn = bind(unboundFunction, that);+ var iterator, iterFn, index, length, result, next, step;++ var stop = function (condition) {+ var $iterator = iterator;+ iterator = undefined;+ if ($iterator) iteratorClose($iterator, 'normal');+ return new Result(true, condition);+ };++ var callFn = function (value) {+ if (AS_ENTRIES) {+ anObject(value);+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);+ } return INTERRUPTED ? fn(value, stop) : fn(value);+ };++ if (IS_RECORD) {+ iterator = iterable.iterator;+ } else if (IS_ITERATOR) {+ iterator = iterable;+ } else {+ iterFn = getIteratorMethod(iterable);+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');+ // optimisation for array iterators+ if (isArrayIteratorMethod(iterFn)) {+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {+ result = callFn(iterable[index]);+ if (result && isPrototypeOf(ResultPrototype, result)) return result;+ } return new Result(false);+ }+ iterator = getIterator(iterable, iterFn);+ }++ next = IS_RECORD ? iterable.next : iterator.next;+ while (!(step = call(next, iterator)).done) {+ // `IteratorValue` errors should propagate without closing the iterator+ var value = step.value;+ try {+ result = callFn(value);+ } catch (error) {+ if (iterator) iteratorClose(iterator, 'throw', error);+ else throw error;+ }+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;+ } return new Result(false);+};+++/***/ },++/***/ 6859+(module) {+++// release references held by exhausted / closed iterator helpers to allow GC of the source chain+module.exports = function (state) {+ state.iterator = state.next = state.nextHandler = state.mapper = state.predicate = state.inner =+ state.iterables = state.iters = state.openIters = state.padding = state.finishResults = state.buffer = null;+};+++/***/ },++/***/ 1385+(module, __unused_webpack_exports, __webpack_require__) {+++var iteratorClose = __webpack_require__(9539);++module.exports = function (iters, kind, value) {+ for (var i = iters.length - 1; i >= 0; i--) {+ if (iters[i] === undefined) continue;+ try {+ value = iteratorClose(iters[i].iterator, kind, value);+ } catch (error) {+ kind = 'throw';+ value = error;+ }+ }+ if (kind === 'throw') throw value;+ return value;+};+++/***/ },++/***/ 9539+(module, __unused_webpack_exports, __webpack_require__) {+++var call = __webpack_require__(9565);+var anObject = __webpack_require__(8551);+var getMethod = __webpack_require__(5966);++module.exports = function (iterator, kind, value) {+ var innerResult, innerError;+ anObject(iterator);+ try {+ innerResult = getMethod(iterator, 'return');+ if (!innerResult) {+ if (kind === 'throw') throw value;+ return value;+ }+ innerResult = call(innerResult, iterator);+ } catch (error) {+ innerError = true;+ innerResult = error;+ }+ if (kind === 'throw') throw value;+ if (innerError) throw innerResult;+ anObject(innerResult);+ return value;+};+++/***/ },++/***/ 9462+(module, __unused_webpack_exports, __webpack_require__) {+++var call = __webpack_require__(9565);+var create = __webpack_require__(2360);+var createNonEnumerableProperty = __webpack_require__(6699);+var defineBuiltIns = __webpack_require__(6279);+var wellKnownSymbol = __webpack_require__(8227);+var InternalStateModule = __webpack_require__(1181);+var getMethod = __webpack_require__(5966);+var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);+var createIterResultObject = __webpack_require__(2529);+var iteratorClose = __webpack_require__(9539);+var iteratorCloseAll = __webpack_require__(1385);+var cleanupState = __webpack_require__(6859);++var TO_STRING_TAG = wellKnownSymbol('toStringTag');+var ITERATOR_HELPER = 'IteratorHelper';+var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';+var NORMAL = 'normal';+var THROW = 'throw';+var setInternalState = InternalStateModule.set;++var createIteratorProxyPrototype = function (IS_ITERATOR) {+ var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);++ return defineBuiltIns(create(IteratorPrototype), {+ next: function next() {+ var state = getInternalState(this);+ // for simplification:+ // for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`+ // for `%IteratorHelperPrototype%.next` - just a value+ if (IS_ITERATOR) return state.nextHandler();+ if (state.done) return createIterResultObject(undefined, true);+ try {+ var result = state.nextHandler();+ if (state.done) cleanupState(state);+ return state.returnHandlerResult ? result : createIterResultObject(result, state.done);+ } catch (error) {+ state.done = true;+ cleanupState(state);+ throw error;+ }+ },+ 'return': function () {+ var state = getInternalState(this);+ var iterator = state.iterator;+ var inner = state.inner;+ var openIters = state.openIters;+ var done = state.done;+ state.done = true;+ if (IS_ITERATOR) {+ var returnMethod = getMethod(iterator, 'return');+ return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);+ }+ cleanupState(state);+ if (done) return createIterResultObject(undefined, true);+ if (inner) try {+ iteratorClose(inner.iterator, NORMAL);+ } catch (error) {+ return iteratorClose(iterator, THROW, error);+ }+ if (openIters) try {+ iteratorCloseAll(openIters, NORMAL);+ } catch (error) {+ if (iterator) return iteratorClose(iterator, THROW, error);+ throw error;+ }+ if (iterator) iteratorClose(iterator, NORMAL);+ return createIterResultObject(undefined, true);+ }+ });+};++var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);+var IteratorHelperPrototype = createIteratorProxyPrototype(false);++createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');++module.exports = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {+ var IteratorProxy = function Iterator(record, state) {+ if (state) {+ state.iterator = record.iterator;+ state.next = record.next;+ } else state = record;+ state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;+ state.returnHandlerResult = !!RETURN_HANDLER_RESULT;+ state.nextHandler = nextHandler;+ state.counter = 0;+ state.done = false;+ setInternalState(this, state);+ };++ IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;++ return IteratorProxy;+};+++/***/ },++/***/ 684+(module) {+++// Should throw an error on invalid iterator+// https://issues.chromium.org/issues/336839115+module.exports = function (methodName, argument) {+ // eslint-disable-next-line es/no-iterator -- required for testing+ var method = typeof Iterator == 'function' && Iterator.prototype[methodName];+ if (method) try {+ method.call({ next: null }, argument).next();+ } catch (error) {+ return true;+ }+};+++/***/ },++/***/ 4549+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);++// https://github.com/tc39/ecma262/pull/3467+module.exports = function (METHOD_NAME, ExpectedError) {+ var Iterator = globalThis.Iterator;+ var IteratorPrototype = Iterator && Iterator.prototype;+ var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];++ var CLOSED = false;++ if (method) try {+ method.call({+ next: function () { return { done: true }; },+ 'return': function () { CLOSED = true; }+ }, -1);+ } catch (error) {+ // https://bugs.webkit.org/show_bug.cgi?id=291195+ if (!(error instanceof ExpectedError)) CLOSED = false;+ }++ if (!CLOSED) return method;+};+++/***/ },++/***/ 7657+(module, __unused_webpack_exports, __webpack_require__) {+++var fails = __webpack_require__(9039);+var isCallable = __webpack_require__(4901);+var isObject = __webpack_require__(34);+var create = __webpack_require__(2360);+var getPrototypeOf = __webpack_require__(2787);+var defineBuiltIn = __webpack_require__(6840);+var wellKnownSymbol = __webpack_require__(8227);+var IS_PURE = __webpack_require__(6395);++var ITERATOR = wellKnownSymbol('iterator');+var BUGGY_SAFARI_ITERATORS = false;++// `%IteratorPrototype%` object+// https://tc39.es/ecma262/#sec-%iteratorprototype%-object+var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;++/* eslint-disable es/no-array-prototype-keys -- safe */+if ([].keys) {+ arrayIterator = [].keys();+ // Safari 8 has buggy iterators w/o `next`+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;+ else {+ PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;+ }+}++var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {+ var test = {};+ // FF44- legacy iterators case+ return IteratorPrototype[ITERATOR].call(test) !== test;+});++if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};+else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);++// `%IteratorPrototype%[@@iterator]()` method+// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator+if (!isCallable(IteratorPrototype[ITERATOR])) {+ defineBuiltIn(IteratorPrototype, ITERATOR, function () {+ return this;+ });+}++module.exports = {+ IteratorPrototype: IteratorPrototype,+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS+};+++/***/ },++/***/ 6269+(module) {+++module.exports = Object.create ? Object.create(null) : {};+++/***/ },++/***/ 6198+(module, __unused_webpack_exports, __webpack_require__) {+++var toLength = __webpack_require__(8014);++// `LengthOfArrayLike` abstract operation+// https://tc39.es/ecma262/#sec-lengthofarraylike+module.exports = function (obj) {+ return toLength(obj.length);+};+++/***/ },++/***/ 283+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var fails = __webpack_require__(9039);+var isCallable = __webpack_require__(4901);+var hasOwn = __webpack_require__(9297);+var DESCRIPTORS = __webpack_require__(3724);+var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(350).CONFIGURABLE);+var inspectSource = __webpack_require__(3706);+var InternalStateModule = __webpack_require__(1181);++var enforceInternalState = InternalStateModule.enforce;+var getInternalState = InternalStateModule.get;+var $String = String;+// eslint-disable-next-line es/no-object-defineproperty -- safe+var defineProperty = Object.defineProperty;+var stringSlice = uncurryThis(''.slice);+var replace = uncurryThis(''.replace);+var join = uncurryThis([].join);++var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {+ return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;+});++var TEMPLATE = String(String).split('String');++var makeBuiltIn = module.exports = function (value, name, options) {+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';+ }+ if (options && options.getter) name = 'get ' + name;+ if (options && options.setter) name = 'set ' + name;+ if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {+ if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });+ else value.name = name;+ }+ if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {+ defineProperty(value, 'length', { value: options.arity });+ }+ try {+ if (options && hasOwn(options, 'constructor') && options.constructor) {+ if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable+ } else if (value.prototype) value.prototype = undefined;+ } catch (error) { /* empty */ }+ var state = enforceInternalState(value);+ if (!hasOwn(state, 'source')) {+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');+ } return value;+};++// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative+// eslint-disable-next-line no-extend-native -- required+Function.prototype.toString = makeBuiltIn(function toString() {+ return isCallable(this) && getInternalState(this).source || inspectSource(this);+}, 'toString');+++/***/ },++/***/ 2248+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);++// eslint-disable-next-line es/no-map -- safe+var MapPrototype = Map.prototype;++module.exports = {+ // eslint-disable-next-line es/no-map -- safe+ Map: Map,+ set: uncurryThis(MapPrototype.set),+ get: uncurryThis(MapPrototype.get),+ has: uncurryThis(MapPrototype.has),+ remove: uncurryThis(MapPrototype['delete']),+ proto: MapPrototype+};+++/***/ },++/***/ 741+(module) {+++var ceil = Math.ceil;+var floor = Math.floor;++// `Math.trunc` method+// https://tc39.es/ecma262/#sec-math.trunc+// eslint-disable-next-line es/no-math-trunc -- safe+module.exports = Math.trunc || function trunc(x) {+ var n = +x;+ return (n > 0 ? floor : ceil)(n);+};+++/***/ },++/***/ 7819+(module, __unused_webpack_exports, __webpack_require__) {+++/* eslint-disable es/no-json -- safe */+var fails = __webpack_require__(9039);++module.exports = !fails(function () {+ var unsafeInt = '9007199254740993';+ // eslint-disable-next-line es/no-json-rawjson -- feature detection+ var raw = JSON.rawJSON(unsafeInt);+ // eslint-disable-next-line es/no-json-israwjson -- feature detection+ return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;+});+++/***/ },++/***/ 2360+(module, __unused_webpack_exports, __webpack_require__) {+++/* global ActiveXObject -- old IE, WSH */+var anObject = __webpack_require__(8551);+var definePropertiesModule = __webpack_require__(6801);+var enumBugKeys = __webpack_require__(8727);+var hiddenKeys = __webpack_require__(421);+var html = __webpack_require__(397);+var documentCreateElement = __webpack_require__(4055);+var sharedKey = __webpack_require__(6119);++var GT = '>';+var LT = '<';+var PROTOTYPE = 'prototype';+var SCRIPT = 'script';+var IE_PROTO = sharedKey('IE_PROTO');++var EmptyConstructor = function () { /* empty */ };++var scriptTag = function (content) {+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;+};++// Create object with fake `null` prototype: use ActiveX Object with cleared prototype+var NullProtoObjectViaActiveX = function (activeXDocument) {+ activeXDocument.write(scriptTag(''));+ activeXDocument.close();+ var temp = activeXDocument.parentWindow.Object;+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak+ activeXDocument = null;+ return temp;+};++// Create object with fake `null` prototype: use iframe Object with cleared prototype+var NullProtoObjectViaIFrame = function () {+ // Thrash, waste and sodomy: IE GC bug+ var iframe = documentCreateElement('iframe');+ var JS = 'java' + SCRIPT + ':';+ var iframeDocument;+ iframe.style.display = 'none';+ html.appendChild(iframe);+ // https://github.com/zloirock/core-js/issues/475+ iframe.src = String(JS);+ iframeDocument = iframe.contentWindow.document;+ iframeDocument.open();+ iframeDocument.write(scriptTag('document.F=Object'));+ iframeDocument.close();+ return iframeDocument.F;+};++// Check for document.domain and active x support+// No need to use active x approach when document.domain is not set+// see https://github.com/es-shims/es5-shim/issues/150+// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346+// avoid IE GC bug+var activeXDocument;+var NullProtoObject = function () {+ try {+ activeXDocument = new ActiveXObject('htmlfile');+ } catch (error) { /* ignore */ }+ NullProtoObject = typeof document != 'undefined'+ ? document.domain && activeXDocument+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE+ : NullProtoObjectViaIFrame()+ : NullProtoObjectViaActiveX(activeXDocument); // WSH+ var length = enumBugKeys.length;+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];+ return NullProtoObject();+};++hiddenKeys[IE_PROTO] = true;++// `Object.create` method+// https://tc39.es/ecma262/#sec-object.create+// eslint-disable-next-line es/no-object-create -- safe+module.exports = Object.create || function create(O, Properties) {+ var result;+ if (O !== null) {+ EmptyConstructor[PROTOTYPE] = anObject(O);+ result = new EmptyConstructor();+ EmptyConstructor[PROTOTYPE] = null;+ // add "__proto__" for Object.getPrototypeOf polyfill+ result[IE_PROTO] = O;+ } else result = NullProtoObject();+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);+};+++/***/ },++/***/ 6801+(__unused_webpack_module, exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(8686);+var definePropertyModule = __webpack_require__(4913);+var anObject = __webpack_require__(8551);+var toIndexedObject = __webpack_require__(5397);+var objectKeys = __webpack_require__(1072);++// `Object.defineProperties` method+// https://tc39.es/ecma262/#sec-object.defineproperties+// eslint-disable-next-line es/no-object-defineproperties -- safe+exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {+ anObject(O);+ var props = toIndexedObject(Properties);+ var keys = objectKeys(Properties);+ var length = keys.length;+ var index = 0;+ var key;+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);+ return O;+};+++/***/ },++/***/ 4913+(__unused_webpack_module, exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var IE8_DOM_DEFINE = __webpack_require__(5917);+var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(8686);+var anObject = __webpack_require__(8551);+var toPropertyKey = __webpack_require__(6969);++var $TypeError = TypeError;+// eslint-disable-next-line es/no-object-defineproperty -- safe+var $defineProperty = Object.defineProperty;+// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe+var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;+var ENUMERABLE = 'enumerable';+var CONFIGURABLE = 'configurable';+var WRITABLE = 'writable';++// `Object.defineProperty` method+// https://tc39.es/ecma262/#sec-object.defineproperty+exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {+ anObject(O);+ P = toPropertyKey(P);+ anObject(Attributes);+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {+ var current = $getOwnPropertyDescriptor(O, P);+ if (current && current[WRITABLE]) {+ O[P] = Attributes.value;+ Attributes = {+ configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],+ writable: false+ };+ }+ } return $defineProperty(O, P, Attributes);+} : $defineProperty : function defineProperty(O, P, Attributes) {+ anObject(O);+ P = toPropertyKey(P);+ anObject(Attributes);+ if (IE8_DOM_DEFINE) try {+ return $defineProperty(O, P, Attributes);+ } catch (error) { /* empty */ }+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');+ if ('value' in Attributes) O[P] = Attributes.value;+ return O;+};+++/***/ },++/***/ 7347+(__unused_webpack_module, exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var call = __webpack_require__(9565);+var propertyIsEnumerableModule = __webpack_require__(8773);+var createPropertyDescriptor = __webpack_require__(6980);+var toIndexedObject = __webpack_require__(5397);+var toPropertyKey = __webpack_require__(6969);+var hasOwn = __webpack_require__(9297);+var IE8_DOM_DEFINE = __webpack_require__(5917);++// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe+var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;++// `Object.getOwnPropertyDescriptor` method+// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor+exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {+ O = toIndexedObject(O);+ P = toPropertyKey(P);+ if (IE8_DOM_DEFINE) try {+ return $getOwnPropertyDescriptor(O, P);+ } catch (error) { /* empty */ }+ if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);+};+++/***/ },++/***/ 8480+(__unused_webpack_module, exports, __webpack_require__) {+++var internalObjectKeys = __webpack_require__(1828);+var enumBugKeys = __webpack_require__(8727);++var hiddenKeys = enumBugKeys.concat('length', 'prototype');++// `Object.getOwnPropertyNames` method+// https://tc39.es/ecma262/#sec-object.getownpropertynames+// eslint-disable-next-line es/no-object-getownpropertynames -- safe+exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {+ return internalObjectKeys(O, hiddenKeys);+};+++/***/ },++/***/ 3717+(__unused_webpack_module, exports) {+++// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe+exports.f = Object.getOwnPropertySymbols;+++/***/ },++/***/ 2787+(module, __unused_webpack_exports, __webpack_require__) {+++var hasOwn = __webpack_require__(9297);+var isCallable = __webpack_require__(4901);+var toObject = __webpack_require__(8981);+var sharedKey = __webpack_require__(6119);+var CORRECT_PROTOTYPE_GETTER = __webpack_require__(2211);++var IE_PROTO = sharedKey('IE_PROTO');+var $Object = Object;+var ObjectPrototype = $Object.prototype;++// `Object.getPrototypeOf` method+// https://tc39.es/ecma262/#sec-object.getprototypeof+// eslint-disable-next-line es/no-object-getprototypeof -- safe+module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {+ var object = toObject(O);+ if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];+ var constructor = object.constructor;+ if (isCallable(constructor) && object instanceof constructor) {+ return constructor.prototype;+ } return object instanceof $Object ? ObjectPrototype : null;+};+++/***/ },++/***/ 1625+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);++module.exports = uncurryThis({}.isPrototypeOf);+++/***/ },++/***/ 1828+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var hasOwn = __webpack_require__(9297);+var toIndexedObject = __webpack_require__(5397);+var indexOf = (__webpack_require__(9617).indexOf);+var hiddenKeys = __webpack_require__(421);++var push = uncurryThis([].push);++module.exports = function (object, names) {+ var O = toIndexedObject(object);+ var i = 0;+ var result = [];+ var key;+ for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);+ // Don't enum bug & hidden keys+ while (names.length > i) if (hasOwn(O, key = names[i++])) {+ ~indexOf(result, key) || push(result, key);+ }+ return result;+};+++/***/ },++/***/ 1072+(module, __unused_webpack_exports, __webpack_require__) {+++var internalObjectKeys = __webpack_require__(1828);+var enumBugKeys = __webpack_require__(8727);++// `Object.keys` method+// https://tc39.es/ecma262/#sec-object.keys+// eslint-disable-next-line es/no-object-keys -- safe+module.exports = Object.keys || function keys(O) {+ return internalObjectKeys(O, enumBugKeys);+};+++/***/ },++/***/ 8773+(__unused_webpack_module, exports) {+++var $propertyIsEnumerable = {}.propertyIsEnumerable;+// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe+var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;++// Nashorn ~ JDK8 bug+var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);++// `Object.prototype.propertyIsEnumerable` method implementation+// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable+exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {+ var descriptor = getOwnPropertyDescriptor(this, V);+ return !!descriptor && descriptor.enumerable;+} : $propertyIsEnumerable;+++/***/ },++/***/ 2967+(module, __unused_webpack_exports, __webpack_require__) {+++/* eslint-disable no-proto -- safe */+var uncurryThisAccessor = __webpack_require__(6706);+var isObject = __webpack_require__(34);+var requireObjectCoercible = __webpack_require__(7750);+var aPossiblePrototype = __webpack_require__(3506);++// `Object.setPrototypeOf` method+// https://tc39.es/ecma262/#sec-object.setprototypeof+// Works with __proto__ only. Old v8 can't work with null proto objects.+// eslint-disable-next-line es/no-object-setprototypeof -- safe+module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {+ var CORRECT_SETTER = false;+ var test = {};+ var setter;+ try {+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');+ setter(test, []);+ CORRECT_SETTER = test instanceof Array;+ } catch (error) { /* empty */ }+ return function setPrototypeOf(O, proto) {+ requireObjectCoercible(O);+ aPossiblePrototype(proto);+ if (!isObject(O)) return O;+ if (CORRECT_SETTER) setter(O, proto);+ else O.__proto__ = proto;+ return O;+ };+}() : undefined);+++/***/ },++/***/ 4270+(module, __unused_webpack_exports, __webpack_require__) {+++var call = __webpack_require__(9565);+var isCallable = __webpack_require__(4901);+var isObject = __webpack_require__(34);++var $TypeError = TypeError;++// `OrdinaryToPrimitive` abstract operation+// https://tc39.es/ecma262/#sec-ordinarytoprimitive+module.exports = function (input, pref) {+ var fn, val;+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;+ if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;+ throw new $TypeError("Can't convert object to primitive value");+};+++/***/ },++/***/ 5031+(module, __unused_webpack_exports, __webpack_require__) {+++var getBuiltIn = __webpack_require__(7751);+var uncurryThis = __webpack_require__(9504);+var getOwnPropertyNamesModule = __webpack_require__(8480);+var getOwnPropertySymbolsModule = __webpack_require__(3717);+var anObject = __webpack_require__(8551);++var concat = uncurryThis([].concat);++// all object keys, includes non-enumerable and symbols+module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {+ var keys = getOwnPropertyNamesModule.f(anObject(it));+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;+};+++/***/ },++/***/ 8235+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var hasOwn = __webpack_require__(9297);++var $SyntaxError = SyntaxError;+var $parseInt = parseInt;+var fromCharCode = String.fromCharCode;+var at = uncurryThis(''.charAt);+var slice = uncurryThis(''.slice);+var exec = uncurryThis(/./.exec);++var codePoints = {+ '\\"': '"',+ '\\\\': '\\',+ '\\/': '/',+ '\\b': '\b',+ '\\f': '\f',+ '\\n': '\n',+ '\\r': '\r',+ '\\t': '\t'+};++var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i;+// eslint-disable-next-line regexp/no-control-character -- safe+var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/;++module.exports = function (source, i) {+ var unterminated = true;+ var value = '';+ while (i < source.length) {+ var chr = at(source, i);+ if (chr === '\\') {+ var twoChars = slice(source, i, i + 2);+ if (hasOwn(codePoints, twoChars)) {+ value += codePoints[twoChars];+ i += 2;+ } else if (twoChars === '\\u') {+ i += 2;+ var fourHexDigits = slice(source, i, i + 4);+ if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw new $SyntaxError('Bad Unicode escape at: ' + i);+ value += fromCharCode($parseInt(fourHexDigits, 16));+ i += 4;+ } else throw new $SyntaxError('Unknown escape sequence: "' + twoChars + '"');+ } else if (chr === '"') {+ unterminated = false;+ i++;+ break;+ } else {+ if (exec(IS_C0_CONTROL_CODE, chr)) throw new $SyntaxError('Bad control character in string literal at: ' + i);+ value += chr;+ i++;+ }+ }+ if (unterminated) throw new $SyntaxError('Unterminated string at: ' + i);+ return { value: value, end: i };+};+++/***/ },++/***/ 7750+(module, __unused_webpack_exports, __webpack_require__) {+++var isNullOrUndefined = __webpack_require__(4117);++var $TypeError = TypeError;++// `RequireObjectCoercible` abstract operation+// https://tc39.es/ecma262/#sec-requireobjectcoercible+module.exports = function (it) {+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);+ return it;+};+++/***/ },++/***/ 9286+(module, __unused_webpack_exports, __webpack_require__) {+++var SetHelpers = __webpack_require__(4402);+var iterate = __webpack_require__(8469);++var Set = SetHelpers.Set;+var add = SetHelpers.add;++module.exports = function (set) {+ var result = new Set();+ iterate(set, function (it) {+ add(result, it);+ });+ return result;+};+++/***/ },++/***/ 3440+(module, __unused_webpack_exports, __webpack_require__) {+++var aSet = __webpack_require__(7080);+var SetHelpers = __webpack_require__(4402);+var clone = __webpack_require__(9286);+var size = __webpack_require__(5170);+var getSetRecord = __webpack_require__(3789);+var iterateSet = __webpack_require__(8469);+var iterateSimple = __webpack_require__(507);++var has = SetHelpers.has;+var remove = SetHelpers.remove;++// `Set.prototype.difference` method+// https://tc39.es/ecma262/#sec-set.prototype.difference+module.exports = function difference(other) {+ var O = aSet(this);+ var otherRec = getSetRecord(other);+ var result = clone(O);+ if (size(result) <= otherRec.size) iterateSet(result, function (e) {+ if (otherRec.includes(e)) remove(result, e);+ });+ else iterateSimple(otherRec.getIterator(), function (e) {+ if (has(result, e)) remove(result, e);+ });+ return result;+};+++/***/ },++/***/ 4402+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);++// eslint-disable-next-line es/no-set -- safe+var SetPrototype = Set.prototype;++module.exports = {+ // eslint-disable-next-line es/no-set -- safe+ Set: Set,+ add: uncurryThis(SetPrototype.add),+ has: uncurryThis(SetPrototype.has),+ remove: uncurryThis(SetPrototype['delete']),+ proto: SetPrototype+};+++/***/ },++/***/ 8750+(module, __unused_webpack_exports, __webpack_require__) {+++var aSet = __webpack_require__(7080);+var SetHelpers = __webpack_require__(4402);+var size = __webpack_require__(5170);+var getSetRecord = __webpack_require__(3789);+var iterateSet = __webpack_require__(8469);+var iterateSimple = __webpack_require__(507);++var Set = SetHelpers.Set;+var add = SetHelpers.add;+var has = SetHelpers.has;++// `Set.prototype.intersection` method+// https://tc39.es/ecma262/#sec-set.prototype.intersection+module.exports = function intersection(other) {+ var O = aSet(this);+ var otherRec = getSetRecord(other);+ var result = new Set();++ if (size(O) > otherRec.size) {+ iterateSimple(otherRec.getIterator(), function (e) {+ if (has(O, e)) add(result, e);+ });+ } else {+ iterateSet(O, function (e) {+ if (otherRec.includes(e)) add(result, e);+ });+ }++ return result;+};+++/***/ },++/***/ 4449+(module, __unused_webpack_exports, __webpack_require__) {+++var aSet = __webpack_require__(7080);+var has = (__webpack_require__(4402).has);+var size = __webpack_require__(5170);+var getSetRecord = __webpack_require__(3789);+var iterateSet = __webpack_require__(8469);+var iterateSimple = __webpack_require__(507);+var iteratorClose = __webpack_require__(9539);++// `Set.prototype.isDisjointFrom` method+// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom+module.exports = function isDisjointFrom(other) {+ var O = aSet(this);+ var otherRec = getSetRecord(other);+ if (size(O) <= otherRec.size) return iterateSet(O, function (e) {+ if (otherRec.includes(e)) return false;+ }, true) !== false;+ var iterator = otherRec.getIterator();+ return iterateSimple(iterator, function (e) {+ if (has(O, e)) return iteratorClose(iterator.iterator, 'normal', false);+ }) !== false;+};+++/***/ },++/***/ 3838+(module, __unused_webpack_exports, __webpack_require__) {+++var aSet = __webpack_require__(7080);+var size = __webpack_require__(5170);+var iterate = __webpack_require__(8469);+var getSetRecord = __webpack_require__(3789);++// `Set.prototype.isSubsetOf` method+// https://tc39.es/ecma262/#sec-set.prototype.issubsetof+module.exports = function isSubsetOf(other) {+ var O = aSet(this);+ var otherRec = getSetRecord(other);+ if (size(O) > otherRec.size) return false;+ return iterate(O, function (e) {+ if (!otherRec.includes(e)) return false;+ }, true) !== false;+};+++/***/ },++/***/ 8527+(module, __unused_webpack_exports, __webpack_require__) {+++var aSet = __webpack_require__(7080);+var has = (__webpack_require__(4402).has);+var size = __webpack_require__(5170);+var getSetRecord = __webpack_require__(3789);+var iterateSimple = __webpack_require__(507);+var iteratorClose = __webpack_require__(9539);++// `Set.prototype.isSupersetOf` method+// https://tc39.es/ecma262/#sec-set.prototype.issupersetof+module.exports = function isSupersetOf(other) {+ var O = aSet(this);+ var otherRec = getSetRecord(other);+ if (size(O) < otherRec.size) return false;+ var iterator = otherRec.getIterator();+ return iterateSimple(iterator, function (e) {+ if (!has(O, e)) return iteratorClose(iterator.iterator, 'normal', false);+ }) !== false;+};+++/***/ },++/***/ 8469+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var iterateSimple = __webpack_require__(507);+var SetHelpers = __webpack_require__(4402);++var Set = SetHelpers.Set;+var SetPrototype = SetHelpers.proto;+var forEach = uncurryThis(SetPrototype.forEach);+var keys = uncurryThis(SetPrototype.keys);+var next = keys(new Set()).next;++module.exports = function (set, fn, interruptible) {+ return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn);+};+++/***/ },++/***/ 4916+(module, __unused_webpack_exports, __webpack_require__) {+++var getBuiltIn = __webpack_require__(7751);++var createSetLike = function (size) {+ return {+ size: size,+ has: function () {+ return false;+ },+ keys: function () {+ return {+ next: function () {+ return { done: true };+ }+ };+ }+ };+};++var createSetLikeWithInfinitySize = function (size) {+ return {+ size: size,+ has: function () {+ return true;+ },+ keys: function () {+ throw new Error('e');+ }+ };+};++module.exports = function (name, callback) {+ var Set = getBuiltIn('Set');+ try {+ new Set()[name](createSetLike(0));+ try {+ // late spec change, early WebKit ~ Safari 17 implementation does not pass it+ // https://github.com/tc39/proposal-set-methods/pull/88+ // also covered engines with+ // https://bugs.webkit.org/show_bug.cgi?id=272679+ new Set()[name](createSetLike(-1));+ return false;+ } catch (error2) {+ if (!callback) return true;+ // early V8 implementation bug+ // https://issues.chromium.org/issues/351332634+ try {+ new Set()[name](createSetLikeWithInfinitySize(-Infinity));+ return false;+ } catch (error) {+ var set = new Set([1, 2]);+ return callback(set[name](createSetLikeWithInfinitySize(Infinity)));+ }+ }+ } catch (error) {+ return false;+ }+};+++/***/ },++/***/ 9835+(module) {+++// Should get iterator record of a set-like object before cloning this+// https://bugs.webkit.org/show_bug.cgi?id=289430+module.exports = function (METHOD_NAME) {+ try {+ // eslint-disable-next-line es/no-set -- needed for test+ var baseSet = new Set();+ var setLike = {+ size: 0,+ has: function () { return true; },+ keys: function () {+ // eslint-disable-next-line es/no-object-defineproperty -- needed for test+ return Object.defineProperty({}, 'next', {+ get: function () {+ baseSet.clear();+ baseSet.add(4);+ return function () {+ return { done: true };+ };+ }+ });+ }+ };+ var result = baseSet[METHOD_NAME](setLike);++ return result.size === 1 && result.values().next().value === 4;+ } catch (error) {+ return false;+ }+};+++/***/ },++/***/ 5170+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThisAccessor = __webpack_require__(6706);+var SetHelpers = __webpack_require__(4402);++module.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) {+ return set.size;+};+++/***/ },++/***/ 3650+(module, __unused_webpack_exports, __webpack_require__) {+++var aSet = __webpack_require__(7080);+var SetHelpers = __webpack_require__(4402);+var clone = __webpack_require__(9286);+var getSetRecord = __webpack_require__(3789);+var iterateSimple = __webpack_require__(507);++var add = SetHelpers.add;+var has = SetHelpers.has;+var remove = SetHelpers.remove;++// `Set.prototype.symmetricDifference` method+// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference+module.exports = function symmetricDifference(other) {+ var O = aSet(this);+ var keysIter = getSetRecord(other).getIterator();+ var result = clone(O);+ iterateSimple(keysIter, function (e) {+ if (has(O, e)) remove(result, e);+ else add(result, e);+ });+ return result;+};+++/***/ },++/***/ 4204+(module, __unused_webpack_exports, __webpack_require__) {+++var aSet = __webpack_require__(7080);+var add = (__webpack_require__(4402).add);+var clone = __webpack_require__(9286);+var getSetRecord = __webpack_require__(3789);+var iterateSimple = __webpack_require__(507);++// `Set.prototype.union` method+// https://tc39.es/ecma262/#sec-set.prototype.union+module.exports = function union(other) {+ var O = aSet(this);+ var keysIter = getSetRecord(other).getIterator();+ var result = clone(O);+ iterateSimple(keysIter, function (it) {+ add(result, it);+ });+ return result;+};+++/***/ },++/***/ 6119+(module, __unused_webpack_exports, __webpack_require__) {+++var shared = __webpack_require__(5745);+var uid = __webpack_require__(3392);++var keys = shared('keys');++module.exports = function (key) {+ return keys[key] || (keys[key] = uid(key));+};+++/***/ },++/***/ 7629+(module, __unused_webpack_exports, __webpack_require__) {+++var IS_PURE = __webpack_require__(6395);+var globalThis = __webpack_require__(4576);+var defineGlobalProperty = __webpack_require__(9433);++var SHARED = '__core-js_shared__';+var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});++(store.versions || (store.versions = [])).push({+ version: '3.50.0',+ mode: IS_PURE ? 'pure' : 'global',+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',+ license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',+ source: 'https://github.com/zloirock/core-js'+});+++/***/ },++/***/ 5745+(module, __unused_webpack_exports, __webpack_require__) {+++var store = __webpack_require__(7629);+// eslint-disable-next-line es/no-object-create -- safe+var create = Object.create || Object;++module.exports = function (key, value) {+ return store[key] || (store[key] = value || create(null));+};+++/***/ },++/***/ 533+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);+var toLength = __webpack_require__(8014);+var toString = __webpack_require__(655);+var $repeat = __webpack_require__(2333);+var requireObjectCoercible = __webpack_require__(7750);++var repeat = uncurryThis($repeat);+var stringSlice = uncurryThis(''.slice);+var ceil = Math.ceil;++// `String.prototype.{ padStart, padEnd }` methods implementation+var createMethod = function (IS_END) {+ return function ($this, maxLength, fillString) {+ var S = toString(requireObjectCoercible($this));+ var intMaxLength = toLength(maxLength);+ var stringLength = S.length;+ if (intMaxLength <= stringLength) return S;+ var fillStr = fillString === undefined ? ' ' : toString(fillString);+ var fillLen, stringFiller;+ if (fillStr === '') return S;+ fillLen = intMaxLength - stringLength;+ stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));+ if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen);+ return IS_END ? S + stringFiller : stringFiller + S;+ };+};++module.exports = {+ // `String.prototype.padStart` method+ // https://tc39.es/ecma262/#sec-string.prototype.padstart+ start: createMethod(false),+ // `String.prototype.padEnd` method+ // https://tc39.es/ecma262/#sec-string.prototype.padend+ end: createMethod(true)+};+++/***/ },++/***/ 2333+(module, __unused_webpack_exports, __webpack_require__) {+++var toIntegerOrInfinity = __webpack_require__(1291);+var toString = __webpack_require__(655);+var requireObjectCoercible = __webpack_require__(7750);++var $RangeError = RangeError;+var floor = Math.floor;++// `String.prototype.repeat` method implementation+// https://tc39.es/ecma262/#sec-string.prototype.repeat+module.exports = function repeat(count) {+ var str = toString(requireObjectCoercible(this));+ var result = '';+ var n = toIntegerOrInfinity(count);+ if (n < 0 || n === Infinity) throw new $RangeError('Wrong number of repetitions');+ for (;n > 0; (n = floor(n / 2)) && (str += str)) if (n % 2) result += str;+ return result;+};+++/***/ },++/***/ 4495+(module, __unused_webpack_exports, __webpack_require__) {+++/* eslint-disable es/no-symbol -- required for testing */+var V8_VERSION = __webpack_require__(9519);+var fails = __webpack_require__(9039);+var globalThis = __webpack_require__(4576);++var $String = globalThis.String;++// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing+module.exports = !!Object.getOwnPropertySymbols && !fails(function () {+ var symbol = Symbol('symbol detection');+ // Chrome 38 Symbol has incorrect toString conversion+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,+ // of course, fail.+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;+});+++/***/ },++/***/ 1240+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);++// `thisNumberValue` abstract operation+// https://tc39.es/ecma262/#sec-thisnumbervalue+module.exports = uncurryThis(1.1.valueOf);+++/***/ },++/***/ 5610+(module, __unused_webpack_exports, __webpack_require__) {+++var toIntegerOrInfinity = __webpack_require__(1291);++var max = Math.max;+var min = Math.min;++// Helper for a popular repeating case of the spec:+// Let integer be ? ToInteger(index).+// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).+module.exports = function (index, length) {+ var integer = toIntegerOrInfinity(index);+ return integer < 0 ? max(integer + length, 0) : min(integer, length);+};+++/***/ },++/***/ 5854+(module, __unused_webpack_exports, __webpack_require__) {+++var toPrimitive = __webpack_require__(2777);++var $TypeError = TypeError;++// `ToBigInt` abstract operation+// https://tc39.es/ecma262/#sec-tobigint+module.exports = function (argument) {+ var prim = toPrimitive(argument, 'number');+ if (typeof prim == 'number') throw new $TypeError("Can't convert number to bigint");+ // eslint-disable-next-line es/no-bigint -- safe+ return BigInt(prim);+};+++/***/ },++/***/ 5397+(module, __unused_webpack_exports, __webpack_require__) {+++// toObject with fallback for non-array-like ES3 strings+var IndexedObject = __webpack_require__(7055);+var requireObjectCoercible = __webpack_require__(7750);++module.exports = function (it) {+ return IndexedObject(requireObjectCoercible(it));+};+++/***/ },++/***/ 1291+(module, __unused_webpack_exports, __webpack_require__) {+++var trunc = __webpack_require__(741);++// `ToIntegerOrInfinity` abstract operation+// https://tc39.es/ecma262/#sec-tointegerorinfinity+module.exports = function (argument) {+ var number = +argument;+ // eslint-disable-next-line no-self-compare -- NaN check+ return number !== number || number === 0 ? 0 : trunc(number);+};+++/***/ },++/***/ 8014+(module, __unused_webpack_exports, __webpack_require__) {+++var toIntegerOrInfinity = __webpack_require__(1291);++var min = Math.min;++// `ToLength` abstract operation+// https://tc39.es/ecma262/#sec-tolength+module.exports = function (argument) {+ var len = toIntegerOrInfinity(argument);+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991+};+++/***/ },++/***/ 8981+(module, __unused_webpack_exports, __webpack_require__) {+++var requireObjectCoercible = __webpack_require__(7750);++var $Object = Object;++// `ToObject` abstract operation+// https://tc39.es/ecma262/#sec-toobject+module.exports = function (argument) {+ return $Object(requireObjectCoercible(argument));+};+++/***/ },++/***/ 2777+(module, __unused_webpack_exports, __webpack_require__) {+++var call = __webpack_require__(9565);+var isObject = __webpack_require__(34);+var isSymbol = __webpack_require__(757);+var getMethod = __webpack_require__(5966);+var ordinaryToPrimitive = __webpack_require__(4270);+var wellKnownSymbol = __webpack_require__(8227);++var $TypeError = TypeError;+var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');++// `ToPrimitive` abstract operation+// https://tc39.es/ecma262/#sec-toprimitive+module.exports = function (input, pref) {+ if (!isObject(input) || isSymbol(input)) return input;+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);+ var result;+ if (exoticToPrim) {+ if (pref === undefined) pref = 'default';+ result = call(exoticToPrim, input, pref);+ if (!isObject(result) || isSymbol(result)) return result;+ throw new $TypeError("Can't convert object to primitive value");+ }+ if (pref === undefined) pref = 'number';+ return ordinaryToPrimitive(input, pref);+};+++/***/ },++/***/ 6969+(module, __unused_webpack_exports, __webpack_require__) {+++var toPrimitive = __webpack_require__(2777);+var isSymbol = __webpack_require__(757);++// `ToPropertyKey` abstract operation+// https://tc39.es/ecma262/#sec-topropertykey+module.exports = function (argument) {+ var key = toPrimitive(argument, 'string');+ return isSymbol(key) ? key : key + '';+};+++/***/ },++/***/ 2140+(module, __unused_webpack_exports, __webpack_require__) {+++var wellKnownSymbol = __webpack_require__(8227);++var TO_STRING_TAG = wellKnownSymbol('toStringTag');+var test = {};+// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation+test[TO_STRING_TAG] = 'z';++module.exports = String(test) === '[object z]';+++/***/ },++/***/ 655+(module, __unused_webpack_exports, __webpack_require__) {+++var classof = __webpack_require__(6955);++var $String = String;++module.exports = function (argument) {+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');+ return $String(argument);+};+++/***/ },++/***/ 6823+(module) {+++var $String = String;++module.exports = function (argument) {+ try {+ return $String(argument);+ } catch (error) {+ return 'Object';+ }+};+++/***/ },++/***/ 3392+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);++var id = 0;+var postfix = Math.random();+var toString = uncurryThis(1.1.toString);++module.exports = function (key) {+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);+};+++/***/ },++/***/ 7416+(module, __unused_webpack_exports, __webpack_require__) {+++var fails = __webpack_require__(9039);+var wellKnownSymbol = __webpack_require__(8227);+var DESCRIPTORS = __webpack_require__(3724);+var IS_PURE = __webpack_require__(6395);++var ITERATOR = wellKnownSymbol('iterator');++module.exports = !fails(function () {+ // eslint-disable-next-line unicorn/relative-url-style -- required for testing+ var url = new URL('b?a=1&b=2&c=3', 'https://a');+ var params = url.searchParams;+ var params2 = new URLSearchParams('a=1&a=2&b=3');+ var result = '';+ url.pathname = 'c%20d';+ params.forEach(function (value, key) {+ params['delete']('b');+ result += key + value;+ });+ params2['delete']('a', 2);+ // `undefined` case is a Chromium 117 bug+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222+ params2['delete']('b', undefined);+ return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))+ || (!params.size && (IS_PURE || !DESCRIPTORS))+ || !params.sort+ || url.href !== 'https://a/c%20d?a=1&c=3'+ || params.get('c') !== '3'+ || String(new URLSearchParams('?a=1')) !== 'a=1'+ || !params[ITERATOR]+ // throws in Edge+ || new URL('https://a@b').username !== 'a'+ || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'+ // not punycoded in Edge+ || new URL('https://тест').host !== 'xn--e1aybc'+ // not escaped in Chrome 62-+ || new URL('https://a#б').hash !== '#%D0%B1'+ // fails in Chrome 66-+ || result !== 'a1c3'+ // throws in Safari+ || new URL('https://x', undefined).host !== 'x';+});+++/***/ },++/***/ 7040+(module, __unused_webpack_exports, __webpack_require__) {+++/* eslint-disable es/no-symbol -- required for testing */+var NATIVE_SYMBOL = __webpack_require__(4495);++module.exports = NATIVE_SYMBOL &&+ !Symbol.sham &&+ typeof Symbol.iterator == 'symbol';+++/***/ },++/***/ 8686+(module, __unused_webpack_exports, __webpack_require__) {+++var DESCRIPTORS = __webpack_require__(3724);+var fails = __webpack_require__(9039);++// V8 ~ Chrome 36-+// https://bugs.chromium.org/p/v8/issues/detail?id=3334+module.exports = DESCRIPTORS && fails(function () {+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {+ value: 42,+ writable: false+ }).prototype !== 42;+});+++/***/ },++/***/ 2812+(module) {+++var $TypeError = TypeError;++module.exports = function (passed, required) {+ if (passed < required) throw new $TypeError('Not enough arguments');+ return passed;+};+++/***/ },++/***/ 8622+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);+var isCallable = __webpack_require__(4901);++var WeakMap = globalThis.WeakMap;++module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));+++/***/ },++/***/ 4995+(module, __unused_webpack_exports, __webpack_require__) {+++var uncurryThis = __webpack_require__(9504);++// eslint-disable-next-line es/no-weak-map -- safe+var WeakMapPrototype = WeakMap.prototype;++module.exports = {+ // eslint-disable-next-line es/no-weak-map -- safe+ WeakMap: WeakMap,+ set: uncurryThis(WeakMapPrototype.set),+ get: uncurryThis(WeakMapPrototype.get),+ has: uncurryThis(WeakMapPrototype.has),+ remove: uncurryThis(WeakMapPrototype['delete'])+};+++/***/ },++/***/ 8227+(module, __unused_webpack_exports, __webpack_require__) {+++var globalThis = __webpack_require__(4576);+var shared = __webpack_require__(5745);+var hasOwn = __webpack_require__(9297);+var uid = __webpack_require__(3392);+var NATIVE_SYMBOL = __webpack_require__(4495);+var USE_SYMBOL_AS_UID = __webpack_require__(7040);++var Symbol = globalThis.Symbol;+var WellKnownSymbolsStore = shared('wks');+var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;++module.exports = function (name) {+ if (!hasOwn(WellKnownSymbolsStore, name)) {+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)+ ? Symbol[name]+ : createWellKnownSymbol('Symbol.' + name);+ } return WellKnownSymbolsStore[name];+};+++/***/ },++/***/ 7452+(module) {+++// a string of all valid unicode whitespaces+module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' ++ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';+++/***/ },++/***/ 4423+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var $includes = (__webpack_require__(9617).includes);+var fails = __webpack_require__(9039);+var addToUnscopables = __webpack_require__(6469);++// FF99+ bug+var BROKEN_ON_SPARSE = fails(function () {+ // eslint-disable-next-line es/no-array-prototype-includes -- detection+ return !Array(1).includes();+});++// Safari 26.4- bug+var BROKEN_ON_SPARSE_WITH_FROM_INDEX = fails(function () {+ // eslint-disable-next-line no-sparse-arrays, es/no-array-prototype-includes -- detection+ return [, 1].includes(undefined, 1);+});++// `Array.prototype.includes` method+// https://tc39.es/ecma262/#sec-array.prototype.includes+$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE || BROKEN_ON_SPARSE_WITH_FROM_INDEX }, {+ includes: function includes(el /* , fromIndex = 0 */) {+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);+ }+});++// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables+addToUnscopables('includes');+++/***/ },++/***/ 4114+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var toObject = __webpack_require__(8981);+var lengthOfArrayLike = __webpack_require__(6198);+var setArrayLength = __webpack_require__(4527);+var doesNotExceedSafeInteger = __webpack_require__(6837);+var fails = __webpack_require__(9039);++var INCORRECT_TO_LENGTH = fails(function () {+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;+});++// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError+// https://bugs.chromium.org/p/v8/issues/detail?id=12681+var properErrorOnNonWritableLength = function () {+ try {+ // eslint-disable-next-line es/no-object-defineproperty -- safe+ Object.defineProperty([], 'length', { writable: false }).push();+ } catch (error) {+ return error instanceof TypeError;+ }+};++var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();++// `Array.prototype.push` method+// https://tc39.es/ecma262/#sec-array.prototype.push+$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {+ // eslint-disable-next-line no-unused-vars -- required for `.length`+ push: function push(item) {+ var O = toObject(this);+ var len = lengthOfArrayLike(O);+ var argCount = arguments.length;+ doesNotExceedSafeInteger(len + argCount);+ for (var i = 0; i < argCount; i++) {+ O[len] = arguments[i];+ len++;+ }+ setArrayLength(O, len);+ return len;+ }+});+++/***/ },++/***/ 8111+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var globalThis = __webpack_require__(4576);+var anInstance = __webpack_require__(679);+var anObject = __webpack_require__(8551);+var isCallable = __webpack_require__(4901);+var getPrototypeOf = __webpack_require__(2787);+var defineBuiltInAccessor = __webpack_require__(2106);+var createProperty = __webpack_require__(4659);+var fails = __webpack_require__(9039);+var hasOwn = __webpack_require__(9297);+var wellKnownSymbol = __webpack_require__(8227);+var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);+var DESCRIPTORS = __webpack_require__(3724);+var IS_PURE = __webpack_require__(6395);++var CONSTRUCTOR = 'constructor';+var ITERATOR = 'Iterator';+var TO_STRING_TAG = wellKnownSymbol('toStringTag');++var $TypeError = TypeError;+var NativeIterator = globalThis[ITERATOR];++// FF56- have non-standard global helper `Iterator`+var FORCED = IS_PURE+ || !isCallable(NativeIterator)+ || NativeIterator.prototype !== IteratorPrototype+ // FF44- non-standard `Iterator` passes previous tests+ || !fails(function () { NativeIterator({}); });++var IteratorConstructor = function Iterator() {+ anInstance(this, IteratorPrototype);+ if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');+};++var defineIteratorPrototypeAccessor = function (key, value) {+ if (DESCRIPTORS) {+ defineBuiltInAccessor(IteratorPrototype, key, {+ configurable: true,+ get: function () {+ return value;+ },+ set: function (replacement) {+ anObject(this);+ if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");+ if (hasOwn(this, key)) this[key] = replacement;+ else createProperty(this, key, replacement);+ }+ });+ } else IteratorPrototype[key] = value;+};++if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR);++if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {+ defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);+}++IteratorConstructor.prototype = IteratorPrototype;++// `Iterator` constructor+// https://tc39.es/ecma262/#sec-iterator+$({ global: true, constructor: true, forced: FORCED }, {+ Iterator: IteratorConstructor+});+++/***/ },++/***/ 1148+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var call = __webpack_require__(9565);+var iterate = __webpack_require__(2652);+var aCallable = __webpack_require__(9306);+var anObject = __webpack_require__(8551);+var getIteratorDirect = __webpack_require__(1767);+var iteratorClose = __webpack_require__(9539);+var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);++var everyWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('every', TypeError);++// `Iterator.prototype.every` method+// https://tc39.es/ecma262/#sec-iterator.prototype.every+$({ target: 'Iterator', proto: true, real: true, forced: everyWithoutClosingOnEarlyError }, {+ every: function every(predicate) {+ anObject(this);+ try {+ aCallable(predicate);+ } catch (error) {+ iteratorClose(this, 'throw', error);+ }++ if (everyWithoutClosingOnEarlyError) return call(everyWithoutClosingOnEarlyError, this, predicate);++ var record = getIteratorDirect(this);+ var counter = 0;+ return !iterate(record, function (value, stop) {+ if (!predicate(value, counter++)) return stop();+ }, { IS_RECORD: true, INTERRUPTED: true }).stopped;+ }+});+++/***/ },++/***/ 2489+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var call = __webpack_require__(9565);+var aCallable = __webpack_require__(9306);+var anObject = __webpack_require__(8551);+var getIteratorDirect = __webpack_require__(1767);+var createIteratorProxy = __webpack_require__(9462);+var callWithSafeIterationClosing = __webpack_require__(6319);+var IS_PURE = __webpack_require__(6395);+var iteratorClose = __webpack_require__(9539);+var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(684);+var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);++var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ });+var filterWithoutClosingOnEarlyError = !IS_PURE && !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR+ && iteratorHelperWithoutClosingOnEarlyError('filter', TypeError);++var FORCED = IS_PURE || FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;++var IteratorProxy = createIteratorProxy(function () {+ var iterator = this.iterator;+ var predicate = this.predicate;+ var next = this.next;+ var result, done, value;+ while (true) {+ result = anObject(call(next, iterator));+ done = this.done = !!result.done;+ if (done) return;+ value = result.value;+ if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;+ }+});++// `Iterator.prototype.filter` method+// https://tc39.es/ecma262/#sec-iterator.prototype.filter+$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {+ filter: function filter(predicate) {+ anObject(this);+ try {+ aCallable(predicate);+ } catch (error) {+ iteratorClose(this, 'throw', error);+ }++ if (filterWithoutClosingOnEarlyError) return call(filterWithoutClosingOnEarlyError, this, predicate);++ return new IteratorProxy(getIteratorDirect(this), {+ predicate: predicate+ });+ }+});+++/***/ },++/***/ 116+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var call = __webpack_require__(9565);+var iterate = __webpack_require__(2652);+var aCallable = __webpack_require__(9306);+var anObject = __webpack_require__(8551);+var getIteratorDirect = __webpack_require__(1767);+var iteratorClose = __webpack_require__(9539);+var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);++var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('find', TypeError);++// `Iterator.prototype.find` method+// https://tc39.es/ecma262/#sec-iterator.prototype.find+$({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {+ find: function find(predicate) {+ anObject(this);+ try {+ aCallable(predicate);+ } catch (error) {+ iteratorClose(this, 'throw', error);+ }++ if (findWithoutClosingOnEarlyError) return call(findWithoutClosingOnEarlyError, this, predicate);++ var record = getIteratorDirect(this);+ var counter = 0;+ return iterate(record, function (value, stop) {+ if (predicate(value, counter++)) return stop(value);+ }, { IS_RECORD: true, INTERRUPTED: true }).result;+ }+});+++/***/ },++/***/ 7588+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var call = __webpack_require__(9565);+var iterate = __webpack_require__(2652);+var aCallable = __webpack_require__(9306);+var anObject = __webpack_require__(8551);+var getIteratorDirect = __webpack_require__(1767);+var iteratorClose = __webpack_require__(9539);+var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);++var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('forEach', TypeError);++// `Iterator.prototype.forEach` method+// https://tc39.es/ecma262/#sec-iterator.prototype.foreach+$({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {+ forEach: function forEach(fn) {+ anObject(this);+ try {+ aCallable(fn);+ } catch (error) {+ iteratorClose(this, 'throw', error);+ }++ if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn);++ var record = getIteratorDirect(this);+ var counter = 0;+ iterate(record, function (value) {+ fn(value, counter++);+ }, { IS_RECORD: true });+ }+});+++/***/ },++/***/ 1701+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var call = __webpack_require__(9565);+var aCallable = __webpack_require__(9306);+var anObject = __webpack_require__(8551);+var getIteratorDirect = __webpack_require__(1767);+var createIteratorProxy = __webpack_require__(9462);+var callWithSafeIterationClosing = __webpack_require__(6319);+var iteratorClose = __webpack_require__(9539);+var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(684);+var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);+var IS_PURE = __webpack_require__(6395);++var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ });+var mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR+ && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);++var FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;++var IteratorProxy = createIteratorProxy(function () {+ var iterator = this.iterator;+ var result = anObject(call(this.next, iterator));+ var done = this.done = !!result.done;+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);+});++// `Iterator.prototype.map` method+// https://tc39.es/ecma262/#sec-iterator.prototype.map+$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {+ map: function map(mapper) {+ anObject(this);+ try {+ aCallable(mapper);+ } catch (error) {+ iteratorClose(this, 'throw', error);+ }++ if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);++ return new IteratorProxy(getIteratorDirect(this), {+ mapper: mapper+ });+ }+});+++/***/ },++/***/ 3579+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var call = __webpack_require__(9565);+var iterate = __webpack_require__(2652);+var aCallable = __webpack_require__(9306);+var anObject = __webpack_require__(8551);+var getIteratorDirect = __webpack_require__(1767);+var iteratorClose = __webpack_require__(9539);+var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);++var someWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('some', TypeError);++// `Iterator.prototype.some` method+// https://tc39.es/ecma262/#sec-iterator.prototype.some+$({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {+ some: function some(predicate) {+ anObject(this);+ try {+ aCallable(predicate);+ } catch (error) {+ iteratorClose(this, 'throw', error);+ }++ if (someWithoutClosingOnEarlyError) return call(someWithoutClosingOnEarlyError, this, predicate);++ var record = getIteratorDirect(this);+ var counter = 0;+ return iterate(record, function (value, stop) {+ if (predicate(value, counter++)) return stop();+ }, { IS_RECORD: true, INTERRUPTED: true }).stopped;+ }+});+++/***/ },++/***/ 9112+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var DESCRIPTORS = __webpack_require__(3724);+var globalThis = __webpack_require__(4576);+var getBuiltIn = __webpack_require__(7751);+var uncurryThis = __webpack_require__(9504);+var call = __webpack_require__(9565);+var isCallable = __webpack_require__(4901);+var isObject = __webpack_require__(34);+var isArray = __webpack_require__(4376);+var hasOwn = __webpack_require__(9297);+var toString = __webpack_require__(655);+var lengthOfArrayLike = __webpack_require__(6198);+var createProperty = __webpack_require__(4659);+var fails = __webpack_require__(9039);+var parseJSONString = __webpack_require__(8235);+var NATIVE_SYMBOL = __webpack_require__(4495);++var JSON = globalThis.JSON;+var Number = globalThis.Number;+var SyntaxError = globalThis.SyntaxError;+var nativeParse = JSON && JSON.parse;+var enumerableOwnProperties = getBuiltIn('Object', 'keys');+// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe+var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;+var at = uncurryThis(''.charAt);+var slice = uncurryThis(''.slice);+var exec = uncurryThis(/./.exec);+var push = uncurryThis([].push);++var IS_DIGIT = /^\d$/;+var IS_NON_ZERO_DIGIT = /^[1-9]$/;+var IS_NUMBER_START = /^[\d-]$/;+var IS_WHITESPACE = /^[\t\n\r ]$/;++var PRIMITIVE = 0;+var OBJECT = 1;++var $parse = function (source, reviver) {+ source = toString(source);+ var context = new Context(source, 0);+ var root = context.parse();+ var value = root.value;+ var endIndex = context.skip(IS_WHITESPACE, root.end);+ if (endIndex < source.length) {+ throw new SyntaxError('Unexpected extra character: "' + at(source, endIndex) + '" after the parsed data at: ' + endIndex);+ }+ return isCallable(reviver) ? internalize({ '': value }, '', reviver, root) : value;+};++var internalize = function (holder, name, reviver, node) {+ var val = holder[name];+ var unmodified = node && val === node.value;+ var context = unmodified && typeof node.source == 'string' ? { source: node.source } : {};+ var elementRecordsLen, keys, len, i, P;+ if (isObject(val)) {+ var nodeIsArray = isArray(val);+ var nodes = unmodified ? node.nodes : nodeIsArray ? [] : {};+ if (nodeIsArray) {+ elementRecordsLen = nodes.length;+ len = lengthOfArrayLike(val);+ for (i = 0; i < len; i++) {+ internalizeProperty(val, i, internalize(val, '' + i, reviver, i < elementRecordsLen ? nodes[i] : undefined));+ }+ } else {+ keys = enumerableOwnProperties(val);+ len = lengthOfArrayLike(keys);+ for (i = 0; i < len; i++) {+ P = keys[i];+ internalizeProperty(val, P, internalize(val, P, reviver, hasOwn(nodes, P) ? nodes[P] : undefined));+ }+ }+ }+ return call(reviver, holder, name, val, context);+};++var internalizeProperty = function (object, key, value) {+ if (DESCRIPTORS) {+ var descriptor = getOwnPropertyDescriptor(object, key);+ if (descriptor && !descriptor.configurable) return;+ }+ if (value === undefined) delete object[key];+ else createProperty(object, key, value);+};++var Node = function (value, end, source, nodes) {+ this.value = value;+ this.end = end;+ this.source = source;+ this.nodes = nodes;+};++var Context = function (source, index) {+ this.source = source;+ this.index = index;+};++// https://www.json.org/json-en.html+Context.prototype = {+ fork: function (nextIndex) {+ return new Context(this.source, nextIndex);+ },+ parse: function () {+ var source = this.source;+ var i = this.skip(IS_WHITESPACE, this.index);+ var fork = this.fork(i);+ var chr = at(source, i);+ if (exec(IS_NUMBER_START, chr)) return fork.number();+ switch (chr) {+ case '{':+ return fork.object();+ case '[':+ return fork.array();+ case '"':+ return fork.string();+ case 't':+ return fork.keyword(true);+ case 'f':+ return fork.keyword(false);+ case 'n':+ return fork.keyword(null);+ } throw new SyntaxError('Unexpected character: "' + chr + '" at: ' + i);+ },+ node: function (type, value, start, end, nodes) {+ return new Node(value, end, type ? null : slice(this.source, start, end), nodes);+ },+ object: function () {+ var source = this.source;+ var i = this.index + 1;+ var expectKeypair = false;+ var object = {};+ var nodes = {};+ var closed = false;+ while (i < source.length) {+ i = this.until(['"', '}'], i);+ if (at(source, i) === '}' && !expectKeypair) {+ i++;+ closed = true;+ break;+ }+ // Parsing the key+ var result = this.fork(i).string();+ var key = result.value;+ i = result.end;+ i = this.until([':'], i) + 1;+ // Parsing value+ i = this.skip(IS_WHITESPACE, i);+ result = this.fork(i).parse();+ createProperty(nodes, key, result);+ createProperty(object, key, result.value);+ i = this.until([',', '}'], result.end);+ var chr = at(source, i);+ if (chr === ',') {+ expectKeypair = true;+ i++;+ } else if (chr === '}') {+ i++;+ closed = true;+ break;+ }+ }+ if (!closed) throw new SyntaxError('Unterminated object at: ' + i);+ return this.node(OBJECT, object, this.index, i, nodes);+ },+ array: function () {+ var source = this.source;+ var i = this.index + 1;+ var expectElement = false;+ var array = [];+ var nodes = [];+ var closed = false;+ while (i < source.length) {+ i = this.skip(IS_WHITESPACE, i);+ if (at(source, i) === ']' && !expectElement) {+ i++;+ closed = true;+ break;+ }+ var result = this.fork(i).parse();+ push(nodes, result);+ push(array, result.value);+ i = this.until([',', ']'], result.end);+ if (at(source, i) === ',') {+ expectElement = true;+ i++;+ } else if (at(source, i) === ']') {+ i++;+ closed = true;+ break;+ }+ }+ if (!closed) throw new SyntaxError('Unterminated array at: ' + i);+ return this.node(OBJECT, array, this.index, i, nodes);+ },+ string: function () {+ var index = this.index;+ var parsed = parseJSONString(this.source, this.index + 1);+ return this.node(PRIMITIVE, parsed.value, index, parsed.end);+ },+ number: function () {+ var source = this.source;+ var startIndex = this.index;+ var i = startIndex;+ if (at(source, i) === '-') i++;+ if (at(source, i) === '0') i++;+ else if (exec(IS_NON_ZERO_DIGIT, at(source, i))) i = this.skip(IS_DIGIT, i + 1);+ else throw new SyntaxError('Failed to parse number at: ' + i);+ if (at(source, i) === '.') {+ var fractionStartIndex = i + 1;+ i = this.skip(IS_DIGIT, fractionStartIndex);+ if (fractionStartIndex === i) throw new SyntaxError("Failed to parse number's fraction at: " + i);+ }+ if (at(source, i) === 'e' || at(source, i) === 'E') {+ i++;+ if (at(source, i) === '+' || at(source, i) === '-') i++;+ var exponentStartIndex = i;+ i = this.skip(IS_DIGIT, i);+ if (exponentStartIndex === i) throw new SyntaxError("Failed to parse number's exponent value at: " + i);+ }+ return this.node(PRIMITIVE, Number(slice(source, startIndex, i)), startIndex, i);+ },+ keyword: function (value) {+ var keyword = '' + value;+ var index = this.index;+ var endIndex = index + keyword.length;+ if (slice(this.source, index, endIndex) !== keyword) throw new SyntaxError('Failed to parse value at: ' + index);+ return this.node(PRIMITIVE, value, index, endIndex);+ },+ skip: function (regex, i) {+ var source = this.source;+ for (; i < source.length; i++) if (!exec(regex, at(source, i))) break;+ return i;+ },+ until: function (array, i) {+ i = this.skip(IS_WHITESPACE, i);+ var chr = at(this.source, i);+ for (var j = 0; j < array.length; j++) if (array[j] === chr) return i;+ throw new SyntaxError('Unexpected character: "' + chr + '" at: ' + i);+ }+};++var NO_SOURCE_SUPPORT = fails(function () {+ var unsafeInt = '9007199254740993';+ var source;+ nativeParse(unsafeInt, function (key, value, context) {+ source = context.source;+ });+ return source !== unsafeInt;+});++var PROPER_BASE_PARSE = NATIVE_SYMBOL && !fails(function () {+ // Safari 9 bug+ return 1 / nativeParse('-0 \t') !== -Infinity;+});++// `JSON.parse` method+// https://tc39.es/ecma262/#sec-json.parse+// https://github.com/tc39/proposal-json-parse-with-source+$({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {+ parse: function parse(text, reviver) {+ return PROPER_BASE_PARSE && !isCallable(reviver) ? nativeParse(text) : $parse(text, reviver);+ }+});+++/***/ },++/***/ 3110+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var getBuiltIn = __webpack_require__(7751);+var call = __webpack_require__(9565);+var uncurryThis = __webpack_require__(9504);+var fails = __webpack_require__(9039);+var isArray = __webpack_require__(4376);+var isCallable = __webpack_require__(4901);+var isObject = __webpack_require__(34);+var create = __webpack_require__(2360);+var isRawJSON = __webpack_require__(5810);+var isSymbol = __webpack_require__(757);+var classof = __webpack_require__(2195);+var thisNumberValue = __webpack_require__(1240);+var includes = (__webpack_require__(9617).includes);+var hasOwn = __webpack_require__(9297);+var toString = __webpack_require__(655);+var parseJSONString = __webpack_require__(8235);+var uid = __webpack_require__(3392);+var NATIVE_SYMBOL = __webpack_require__(4495);+var NATIVE_RAW_JSON = __webpack_require__(7819);++var $String = String;+var $TypeError = TypeError;+var $stringify = getBuiltIn('JSON', 'stringify');+var $BigInt = getBuiltIn('BigInt');+var stringValueOf = uncurryThis(''.valueOf);+var booleanValueOf = uncurryThis(true.valueOf);+var bigIntValueOf = $BigInt && uncurryThis($BigInt.prototype.valueOf);+var exec = uncurryThis(/./.exec);+var charAt = uncurryThis(''.charAt);+var charCodeAt = uncurryThis(''.charCodeAt);+var replace = uncurryThis(''.replace);+var slice = uncurryThis(''.slice);+var push = uncurryThis([].push);+var pop = uncurryThis([].pop);+var numberToString = uncurryThis(1.1.toString);++var surrogates = /[\uD800-\uDFFF]/g;+var leadingSurrogates = /^[\uD800-\uDBFF]$/;+var trailingSurrogates = /^[\uDC00-\uDFFF]$/;+var digits = /^\d+$/;++// a placeholder of a raw JSON value+var RAW_MARK = uid();+// a prefix of keys of a reordered object, see `createOrderedObject`+var KEY_MARK = uid();+// the last key of a reordered object, marks the end of its serialization+var END_MARK = uid();+var RAW_MARK_LENGTH = RAW_MARK.length;+var KEY_MARK_LENGTH = KEY_MARK.length;++var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {+ var symbol = getBuiltIn('Symbol')('stringify detection');+ // MS Edge converts symbol values to JSON as {}+ return $stringify([symbol]) !== '[null]'+ // WebKit converts symbol values to JSON as null+ || $stringify({ a: symbol }) !== '{}'+ // V8 throws on boxed symbols+ || $stringify(Object(symbol)) !== '{}';+});++// https://github.com/tc39/proposal-well-formed-stringify+var ILL_FORMED_UNICODE = fails(function () {+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'+ || $stringify('\uDEAD') !== '"\\udead"';+});++var isRawJSONValue = NATIVE_RAW_JSON ? getBuiltIn('JSON', 'isRawJSON') : isRawJSON;++var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function (it, replacer, space) {+ return $stringify(it, function (key, value) {+ var replaced = call(replacer, this, key, value);+ if (!isSymbol(replaced)) return replaced;+ }, space);+} : $stringify;++var fixIllFormedJSON = function (match, offset, string) {+ var prev = charAt(string, offset - 1);+ var next = charAt(string, offset + 1);+ if (+ (exec(leadingSurrogates, match) && !exec(trailingSurrogates, next)) ||+ (exec(trailingSurrogates, match) && !exec(leadingSurrogates, prev))+ ) {+ return '\\u' + numberToString(charCodeAt(match, 0), 16);+ } return match;+};++// `PropertyList` of `JSON.stringify`+// https://tc39.es/ecma262/#sec-json.stringify+var getPropertyList = function (replacer) {+ if (!isArray(replacer)) return;+ var rawLength = replacer.length;+ var propertyList = [];+ // a null prototype object is used as a set of already added keys to keep the deduplication linear+ var addedKeys = create(null);+ for (var i = 0; i < rawLength; i++) {+ var element = replacer[i];+ var key;+ if (typeof element == 'string') key = element;+ else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') key = toString(element);+ else continue;+ if (!hasOwn(addedKeys, key)) {+ addedKeys[key] = true;+ push(propertyList, key);+ }+ }+ return propertyList;+};++// values with such an internal slot are unwrapped by `SerializeJSONProperty` instead of being serialized as objects+var hasInternalSlot = function (valueOf, it) {+ try {+ valueOf(it);+ return true;+ } catch (error) {+ return false;+ }+};++// the slot check is expensive, so it's performed only for the kind reported by the value itself -+// a value lying about its kind via `Symbol.toStringTag` is serialized as an ordinary object+var isBoxedPrimitive = function (it) {+ var kind = classof(it);+ return (kind === 'Number' && hasInternalSlot(thisNumberValue, it))+ || (kind === 'String' && hasInternalSlot(stringValueOf, it))+ || (kind === 'Boolean' && hasInternalSlot(booleanValueOf, it))+ || (!!bigIntValueOf && kind === 'BigInt' && hasInternalSlot(bigIntValueOf, it));+};++// only objects serialized by `SerializeJSONObject` are affected by the property list+var isSerializedAsObject = function (it) {+ if (!isObject(it) || isCallable(it) || isArray(it)) return false;+ try {+ return !isBoxedPrimitive(it);+ // `classof` reads `Symbol.toStringTag`, so a proxy could throw - it has no internal slots anyway+ } catch (error) {+ return true;+ }+};++// the engine unwraps it in the same order as it would read the original property,+// so the property is read lazily and `toJSON` is called once and with the original key+var createElementHolder = function (holder, key) {+ return {+ toJSON: function () {+ var element = holder[key];+ if (isObject(element) || typeof element == 'bigint') {+ var elementToJSON = element.toJSON;+ if (isCallable(elementToJSON)) element = call(elementToJSON, element, key);+ } return element;+ }+ };+};++// own keys of objects are sorted - integer-like keys are moved to the beginning,+// so such keys should be marked and restored in the serialized string+var getKeyPrefix = function (propertyList) {+ for (var i = 0, length = propertyList.length; i < length; i++) {+ if (exec(digits, propertyList[i])) return KEY_MARK;+ } return '';+};++// `SerializeJSONObject` iterates the property list, so the value is replaced with an object with keys in this order+var createOrderedObject = function (value, propertyList, keyPrefix) {+ // keys are not marked if the property list has no integer-like keys, so `Object.prototype`+ // with a setter, a non-writable property or `__proto__` should not intercept the assignment+ var ordered = create(null);+ for (var i = 0, length = propertyList.length; i < length; i++) {+ var key = propertyList[i];+ ordered[keyPrefix + key] = createElementHolder(value, key);+ }+ ordered[END_MARK] = null;+ return ordered;+};++// `JSON.stringify` method+// https://tc39.es/ecma262/#sec-json.stringify+// https://github.com/tc39/proposal-json-parse-with-source+if ($stringify) $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {+ stringify: function stringify(text, replacer, space) {+ var replacerFunction = isCallable(replacer) ? replacer : undefined;+ var propertyList = replacerFunction ? undefined : getPropertyList(replacer);+ var keyPrefix = propertyList && getKeyPrefix(propertyList);+ var rawStrings = [];+ var openObjects = [];+ var parentOrdered = [];+ var currentOrdered;+ var marked = false;+ var root = true;++ var json = stringifyWithProperSymbolsConversion(text, function (key, value) {+ // some old implementations (like WebKit) could pass numbers as keys+ key = $String(key);++ if (propertyList) {+ if (key === END_MARK) {+ pop(openObjects);+ currentOrdered = pop(parentOrdered);+ return;+ }+ if (root) root = false;+ // the innermost reordered object already contains only keys of the property list and arrays are not+ // affected by it, the rest of objects (like objects with a fake `Symbol.toStringTag`) are filtered here+ else if (this !== currentOrdered && !isArray(this) && !includes(propertyList, key)) return;+ } else if (replacerFunction) value = call(replacerFunction, this, key, value);++ if (isRawJSONValue(value)) {+ if (NATIVE_RAW_JSON) return value;+ marked = true;+ return RAW_MARK + (push(rawStrings, value.rawJSON) - 1);+ }++ if (propertyList && isSerializedAsObject(value)) {+ // reordered objects are new each time, so cycles should be detected before the engine does it+ if (includes(openObjects, value)) throw new $TypeError('Converting circular structure to JSON');+ var ordered = createOrderedObject(value, propertyList, keyPrefix);+ push(openObjects, value);+ push(parentOrdered, currentOrdered);+ currentOrdered = ordered;+ if (keyPrefix) marked = true;+ return ordered;+ }++ return value;+ }, space);++ if (typeof json != 'string') return json;++ if (ILL_FORMED_UNICODE) json = replace(json, surrogates, fixIllFormedJSON);++ if (!marked) return json;++ var result = '';+ var length = json.length;++ for (var i = 0; i < length; i++) {+ var chr = charAt(json, i);+ if (chr === '"') {+ var end = parseJSONString(json, ++i).end - 1;+ var string = slice(json, i, end);+ if (slice(string, 0, RAW_MARK_LENGTH) === RAW_MARK) result += rawStrings[slice(string, RAW_MARK_LENGTH)];+ else if (slice(string, 0, KEY_MARK_LENGTH) === KEY_MARK) result += '"' + slice(string, KEY_MARK_LENGTH) + '"';+ else result += '"' + string + '"';+ i = end;+ } else result += chr;+ }++ return result;+ }+});+++/***/ },++/***/ 2731+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var aCallable = __webpack_require__(9306);+var MapHelpers = __webpack_require__(2248);+var IS_PURE = __webpack_require__(6395);++var get = MapHelpers.get;+var has = MapHelpers.has;+var set = MapHelpers.set;++// `Map.prototype.getOrInsertComputed` method+// https://tc39.es/ecma262/#sec-map.prototype.getorinsertcomputed+$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {+ getOrInsertComputed: function getOrInsertComputed(key, callbackfn) {+ var hasKey = has(this, key);+ aCallable(callbackfn);+ if (hasKey) return get(this, key);+ // CanonicalizeKeyedCollectionKey+ if (key === 0 && 1 / key === -Infinity) key = 0;+ var value = callbackfn(key);+ set(this, key, value);+ return value;+ }+});+++/***/ },++/***/ 5367+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var MapHelpers = __webpack_require__(2248);+var IS_PURE = __webpack_require__(6395);++var get = MapHelpers.get;+var has = MapHelpers.has;+var set = MapHelpers.set;++// `Map.prototype.getOrInsert` method+// https://tc39.es/ecma262/#sec-map.prototype.getorinsert+$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {+ getOrInsert: function getOrInsert(key, value) {+ if (has(this, key)) return get(this, key);+ set(this, key, value);+ return value;+ }+});+++/***/ },++/***/ 6069+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var uncurryThis = __webpack_require__(9504);+var aString = __webpack_require__(3463);+var hasOwn = __webpack_require__(9297);+var padStart = (__webpack_require__(533).start);+var WHITESPACES = __webpack_require__(7452);++var $Array = Array;+var $escape = RegExp.escape;+var charAt = uncurryThis(''.charAt);+var charCodeAt = uncurryThis(''.charCodeAt);+var numberToString = uncurryThis(1.1.toString);+var join = uncurryThis([].join);+var FIRST_DIGIT_OR_ASCII = /^[0-9a-z]/i;+var SYNTAX_SOLIDUS = /^[$()*+./?[\\\]^{|}]/;+var OTHER_PUNCTUATORS_AND_WHITESPACES = RegExp('^[!"#%&\',\\-:;<=>@`~' + WHITESPACES + ']');+var exec = uncurryThis(FIRST_DIGIT_OR_ASCII.exec);++var ControlEscape = {+ '\u0009': 't',+ '\u000A': 'n',+ '\u000B': 'v',+ '\u000C': 'f',+ '\u000D': 'r'+};++var escapeChar = function (chr) {+ var hex = numberToString(charCodeAt(chr, 0), 16);+ return hex.length < 3 ? '\\x' + padStart(hex, 2, '0') : '\\u' + padStart(hex, 4, '0');+};++// Avoiding the use of polyfills of the previous iteration of this proposal+var FORCED = !$escape || $escape('ab') !== '\\x61b';++// `RegExp.escape` method+// https://tc39.es/ecma262/#sec-regexp.escape+$({ target: 'RegExp', stat: true, forced: FORCED }, {+ escape: function escape(S) {+ aString(S);+ var length = S.length;+ var result = $Array(length);++ for (var i = 0; i < length; i++) {+ var chr = charAt(S, i);+ if (i === 0 && exec(FIRST_DIGIT_OR_ASCII, chr)) {+ result[i] = escapeChar(chr);+ } else if (hasOwn(ControlEscape, chr)) {+ result[i] = '\\' + ControlEscape[chr];+ } else if (exec(SYNTAX_SOLIDUS, chr)) {+ result[i] = '\\' + chr;+ } else if (exec(OTHER_PUNCTUATORS_AND_WHITESPACES, chr)) {+ result[i] = escapeChar(chr);+ } else {+ var charCode = charCodeAt(chr, 0);+ // single UTF-16 code unit+ if ((charCode & 0xF800) !== 0xD800) result[i] = chr;+ // unpaired surrogate+ else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) !== 0xDC00) result[i] = escapeChar(chr);+ // surrogate pair+ else {+ result[i] = chr;+ result[++i] = charAt(S, i);+ }+ }+ }++ return join(result, '');+ }+});+++/***/ },++/***/ 7642+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var difference = __webpack_require__(3440);+var fails = __webpack_require__(9039);+var setMethodAcceptSetLike = __webpack_require__(4916);++var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike('difference', function (result) {+ return result.size === 0;+});++var FORCED = SET_LIKE_INCORRECT_BEHAVIOR || fails(function () {+ // https://bugs.webkit.org/show_bug.cgi?id=288595+ var setLike = {+ size: 1,+ has: function () { return true; },+ keys: function () {+ var index = 0;+ return {+ next: function () {+ var done = index++ > 1;+ if (baseSet.has(1)) baseSet.clear();+ return { done: done, value: 2 };+ }+ };+ }+ };+ // eslint-disable-next-line es/no-set -- testing+ var baseSet = new Set([1, 2, 3, 4]);+ // eslint-disable-next-line es/no-set-prototype-difference -- testing+ return baseSet.difference(setLike).size !== 3;+});++// `Set.prototype.difference` method+// https://tc39.es/ecma262/#sec-set.prototype.difference+$({ target: 'Set', proto: true, real: true, forced: FORCED }, {+ difference: difference+});+++/***/ },++/***/ 8004+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var fails = __webpack_require__(9039);+var intersection = __webpack_require__(8750);+var setMethodAcceptSetLike = __webpack_require__(4916);++var INCORRECT = !setMethodAcceptSetLike('intersection', function (result) {+ return result.size === 2 && result.has(1) && result.has(2);+}) || fails(function () {+ // eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing+ return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';+});++// `Set.prototype.intersection` method+// https://tc39.es/ecma262/#sec-set.prototype.intersection+$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {+ intersection: intersection+});+++/***/ },++/***/ 3853+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var isDisjointFrom = __webpack_require__(4449);+var setMethodAcceptSetLike = __webpack_require__(4916);++var INCORRECT = !setMethodAcceptSetLike('isDisjointFrom', function (result) {+ return !result;+});++// `Set.prototype.isDisjointFrom` method+// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom+$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {+ isDisjointFrom: isDisjointFrom+});+++/***/ },++/***/ 5876+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var isSubsetOf = __webpack_require__(3838);+var setMethodAcceptSetLike = __webpack_require__(4916);++var INCORRECT = !setMethodAcceptSetLike('isSubsetOf', function (result) {+ return result;+});++// `Set.prototype.isSubsetOf` method+// https://tc39.es/ecma262/#sec-set.prototype.issubsetof+$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {+ isSubsetOf: isSubsetOf+});+++/***/ },++/***/ 2475+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var isSupersetOf = __webpack_require__(8527);+var setMethodAcceptSetLike = __webpack_require__(4916);++var INCORRECT = !setMethodAcceptSetLike('isSupersetOf', function (result) {+ return !result;+});++// `Set.prototype.isSupersetOf` method+// https://tc39.es/ecma262/#sec-set.prototype.issupersetof+$({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {+ isSupersetOf: isSupersetOf+});+++/***/ },++/***/ 5024+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var symmetricDifference = __webpack_require__(3650);+var setMethodGetKeysBeforeCloning = __webpack_require__(9835);+var setMethodAcceptSetLike = __webpack_require__(4916);++var FORCED = !setMethodAcceptSetLike('symmetricDifference') || !setMethodGetKeysBeforeCloning('symmetricDifference');++// `Set.prototype.symmetricDifference` method+// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference+$({ target: 'Set', proto: true, real: true, forced: FORCED }, {+ symmetricDifference: symmetricDifference+});+++/***/ },++/***/ 1698+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var union = __webpack_require__(4204);+var setMethodGetKeysBeforeCloning = __webpack_require__(9835);+var setMethodAcceptSetLike = __webpack_require__(4916);++var FORCED = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning('union');++// `Set.prototype.union` method+// https://tc39.es/ecma262/#sec-set.prototype.union+$({ target: 'Set', proto: true, real: true, forced: FORCED }, {+ union: union+});+++/***/ },++/***/ 9577+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var ArrayBufferViewCore = __webpack_require__(4644);+var isBigIntArray = __webpack_require__(1108);+var lengthOfArrayLike = __webpack_require__(6198);+var toIntegerOrInfinity = __webpack_require__(1291);+var toBigInt = __webpack_require__(5854);++var aTypedArray = ArrayBufferViewCore.aTypedArray;+var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;+var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;++var $RangeError = RangeError;++var PROPER_ORDER = function () {+ try {+ // eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing+ new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } });+ } catch (error) {+ // some early implementations, like WebKit, does not follow the final semantic+ // https://github.com/tc39/proposal-change-array-by-copy/pull/86+ return error === 8;+ }+}();++// Bug in WebKit. It should truncate a negative fractional index to zero, but instead throws an error+var THROW_ON_NEGATIVE_FRACTIONAL_INDEX = PROPER_ORDER && function () {+ try {+ // eslint-disable-next-line es/no-typed-arrays, es/no-array-prototype-with -- required for testing+ new Int8Array(1)['with'](-0.5, 1);+ } catch (error) {+ return true;+ }+}();++// `%TypedArray%.prototype.with` method+// https://tc39.es/ecma262/#sec-%typedarray%.prototype.with+exportTypedArrayMethod('with', { 'with': function (index, value) {+ var O = aTypedArray(this);+ var len = lengthOfArrayLike(O);+ var relativeIndex = toIntegerOrInfinity(index);+ var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;+ var numericValue = isBigIntArray(O) ? toBigInt(value) : +value;+ if (actualIndex >= len || actualIndex < 0) throw new $RangeError('Incorrect index');+ var A = new (getTypedArrayConstructor(O))(len);+ var k = 0;+ for (; k < len; k++) A[k] = k === actualIndex ? numericValue : O[k];+ return A;+} }['with'], !PROPER_ORDER || THROW_ON_NEGATIVE_FRACTIONAL_INDEX);+++/***/ },++/***/ 9452+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var aCallable = __webpack_require__(9306);+var aWeakMap = __webpack_require__(6557);+var aWeakKey = __webpack_require__(4328);+var WeakMapHelpers = __webpack_require__(4995);+var IS_PURE = __webpack_require__(6395);++var get = WeakMapHelpers.get;+var has = WeakMapHelpers.has;+var set = WeakMapHelpers.set;++var FORCED = IS_PURE || !function () {+ try {+ // eslint-disable-next-line es/no-weak-map, no-throw-literal -- testing+ if (WeakMap.prototype.getOrInsertComputed) new WeakMap().getOrInsertComputed(1, function () { throw 1; });+ } catch (error) {+ // FF144 Nightly - Beta 3 bug+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1988369+ return error instanceof TypeError;+ }+}();++// `WeakMap.prototype.getOrInsertComputed` method+// https://tc39.es/ecma262/#sec-weakmap.prototype.getorinsertcomputed+$({ target: 'WeakMap', proto: true, real: true, forced: FORCED }, {+ getOrInsertComputed: function getOrInsertComputed(key, callbackfn) {+ if (!IS_PURE) aWeakMap(this);+ aWeakKey(key);+ aCallable(callbackfn);+ if (has(this, key)) return get(this, key);+ var value = callbackfn(key);+ set(this, key, value);+ return value;+ }+});+++/***/ },++/***/ 8454+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var WeakMapHelpers = __webpack_require__(4995);+var IS_PURE = __webpack_require__(6395);++var get = WeakMapHelpers.get;+var has = WeakMapHelpers.has;+var set = WeakMapHelpers.set;++// `WeakMap.prototype.getOrInsert` method+// https://tc39.es/ecma262/#sec-weakmap.prototype.getorinsert+$({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, {+ getOrInsert: function getOrInsert(key, value) {+ if (has(this, key)) return get(this, key);+ set(this, key, value);+ return value;+ }+});+++/***/ },++/***/ 5781+(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {+++var $ = __webpack_require__(6518);+var getBuiltIn = __webpack_require__(7751);+var validateArgumentsLength = __webpack_require__(2812);+var toString = __webpack_require__(655);+var USE_NATIVE_URL = __webpack_require__(7416);++var URL = getBuiltIn('URL');++// `URL.parse` method+// https://url.spec.whatwg.org/#dom-url-parse+$({ target: 'URL', stat: true, forced: !USE_NATIVE_URL }, {+ parse: function parse(url) {+ var length = validateArgumentsLength(arguments.length, 1);+ var urlString = toString(url);+ var base = length < 2 || arguments[1] === undefined ? undefined : toString(arguments[1]);+ try {+ return new URL(urlString, base);+ } catch (error) {+ return null;+ }+ }+});+++/***/ }++/******/ });+/************************************************************************/+/******/ // The module cache+/******/ const __webpack_module_cache__ = {};+/******/+/******/ // The require function+/******/ function __webpack_require__(moduleId) {+/******/ // Check if module is in cache+/******/ const cachedModule = __webpack_module_cache__[moduleId];+/******/ if (cachedModule !== undefined) {+/******/ return cachedModule.exports;+/******/ }+/******/ // Create a new module (and put it into the cache)+/******/ const module = __webpack_module_cache__[moduleId] = {+/******/ // no module.id needed+/******/ // no module.loaded needed+/******/ exports: {}+/******/ };+/******/+/******/ // Execute the module function+/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);+/******/+/******/ // Return the exports of the module+/******/ return module.exports;+/******/ }+/******/+/************************************************************************/+/******/ /* webpack/runtime/define property getters */+/******/ (() => {+/******/ // define getter/value functions for harmony exports+/******/ __webpack_require__.d = (exports, definition) => {+/******/ if(Array.isArray(definition)) {+/******/ var i = 0;+/******/ while(i < definition.length) {+/******/ var key = definition[i++];+/******/ var binding = definition[i++];+/******/ if(!__webpack_require__.o(exports, key)) {+/******/ if(binding === 0) {+/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });+/******/ } else {+/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });+/******/ }+/******/ } else if(binding === 0) { i++; }+/******/ }+/******/ } else {+/******/ for(var key in definition) {+/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {+/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });+/******/ }+/******/ }+/******/ }+/******/ };+/******/ })();+/******/+/******/ /* webpack/runtime/hasOwnProperty shorthand */+/******/ (() => {+/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))+/******/ })();+/******/+/************************************************************************/++// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js+var es_array_push = __webpack_require__(4114);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js+var es_iterator_constructor = __webpack_require__(8111);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.filter.js+var es_iterator_filter = __webpack_require__(2489);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js+var es_iterator_for_each = __webpack_require__(7588);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.map.js+var es_iterator_map = __webpack_require__(1701);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js+var es_json_stringify = __webpack_require__(3110);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.get-or-insert.js+var es_map_get_or_insert = __webpack_require__(5367);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.get-or-insert-computed.js+var es_map_get_or_insert_computed = __webpack_require__(2731);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.escape.js+var es_regexp_escape = __webpack_require__(6069);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js+var es_set_difference_v2 = __webpack_require__(7642);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.intersection.v2.js+var es_set_intersection_v2 = __webpack_require__(8004);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-disjoint-from.v2.js+var es_set_is_disjoint_from_v2 = __webpack_require__(3853);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-subset-of.v2.js+var es_set_is_subset_of_v2 = __webpack_require__(5876);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.is-superset-of.v2.js+var es_set_is_superset_of_v2 = __webpack_require__(2475);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.symmetric-difference.v2.js+var es_set_symmetric_difference_v2 = __webpack_require__(5024);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js+var es_set_union_v2 = __webpack_require__(1698);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.typed-array.with.js+var es_typed_array_with = __webpack_require__(9577);+;// ./web/pdfjs.js+const {+ AbortException,+ AnnotationEditorLayer,+ AnnotationEditorParamsType,+ AnnotationEditorType,+ AnnotationEditorUIManager,+ AnnotationLayer,+ AnnotationMode,+ AnnotationType,+ applyOpacity,+ build,+ ColorPicker,+ createValidAbsoluteUrl,+ CSSConstants,+ DOMSVGFactory,+ DrawLayer,+ FeatureTest,+ fetchData,+ findContrastColor,+ getDocument,+ getFilenameFromUrl,+ getPdfFilenameFromUrl,+ getRGB,+ getRGBA,+ getUuid,+ GlobalWorkerOptions,+ ImageKind,+ InvalidPDFException,+ isDataScheme,+ isPdfFile,+ isValidExplicitDest,+ makeArr,+ makeMap,+ makeObj,+ makeSet,+ MathClamp,+ noContextMenu,+ normalizeUnicode,+ OPS,+ OutputScale,+ PasswordException,+ PasswordResponses,+ PDFDataRangeTransport,+ PDFDateString,+ PDFWorker,+ PermissionFlag,+ PixelsPerInch,+ RenderingCancelledException,+ renderRichText,+ ResponseException,+ setLayerDimensions,+ shadow,+ SignatureExtractor,+ stopEvent,+ SupportedImageMimeTypes,+ TextLayer,+ TextLayerImages,+ TouchManager,+ updateUrlHash,+ Util,+ VerbosityLevel,+ version,+ XfaLayer+} = globalThis.pdfjsLib;++;// ./web/pdf_find_utils.js+++let wordSegmenter = null;+let graphemeSegmenter = null;+function isWordBreakAt(content, pos) {+ graphemeSegmenter ||= new Intl.Segmenter(undefined, {+ granularity: "grapheme"+ });+ const graphemes = graphemeSegmenter.segment(content);+ const after = graphemes.containing(pos);+ if (after.index !== pos) {+ return false;+ }+ wordSegmenter ||= new Intl.Segmenter(undefined, {+ granularity: "word"+ });+ const before = graphemes.containing(pos - 1).segment;+ return wordSegmenter.segment(before + after.segment).containing(before.length).index === before.length;+}+function isEntireWord(content, startIdx, length) {+ const endIdx = startIdx + length;+ return (startIdx === 0 || isWordBreakAt(content, startIdx)) && (endIdx === content.length || isWordBreakAt(content, endIdx));+}+let NormalizeWithNFKC;+function getNormalizeWithNFKC() {+ if (!NormalizeWithNFKC) {+ const ranges = [];+ const range = [];+ const diacriticsRegex = /^\p{M}$/u;+ for (let i = 0; i < 65536; i++) {+ if (i >= 0xd800 && i <= 0xdfff) {+ continue;+ }+ const c = String.fromCharCode(i);+ if (c.normalize("NFKC") !== c && !diacriticsRegex.test(c)) {+ if (range.length !== 2) {+ range[0] = range[1] = i;+ continue;+ }+ if (range[1] + 1 !== i) {+ if (range[0] === range[1]) {+ ranges.push(String.fromCharCode(range[0]));+ } else {+ ranges.push(`${String.fromCharCode(range[0])}-${String.fromCharCode(range[1])}`);+ }+ range[0] = range[1] = i;+ } else {+ range[1] = i;+ }+ }+ }+ const rangesStr = ranges.join("");+ if (!NormalizeWithNFKC) {+ NormalizeWithNFKC = rangesStr;+ } else if (rangesStr !== NormalizeWithNFKC) {+ for (let i = 1; i < rangesStr.length; i++) {+ if (rangesStr[i] !== NormalizeWithNFKC[i]) {+ console.log(`Difference at index ${i}: ` + `U+${rangesStr.charCodeAt(i).toString(16).toUpperCase().padStart(4, "0")}` + `!== U+${NormalizeWithNFKC.charCodeAt(i).toString(16).toUpperCase().padStart(4, "0")}`);+ break;+ }+ }+ throw new Error("getNormalizeWithNFKC - update the `NormalizeWithNFKC` string.");+ }+ }+ return NormalizeWithNFKC;+}++// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js+var es_array_includes = __webpack_require__(4423);+;// ./web/ui_utils.js++++++++++++const DEFAULT_SCALE_VALUE = "auto";+const DEFAULT_SCALE = 1.0;+const DEFAULT_SCALE_DELTA = 1.1;+const MIN_SCALE = 0.1;+const MAX_SCALE = 25.0;+const UNKNOWN_SCALE = 0;+const MAX_AUTO_SCALE = 1.25;+const SCROLLBAR_PADDING = 40;+const VERTICAL_PADDING = 5;+const PresentationModeState = {+ UNKNOWN: 0,+ NORMAL: 1,+ CHANGING: 2,+ FULLSCREEN: 3+};+const SidebarView = (/* unused pure expression or super */ null && ({+ UNKNOWN: -1,+ NONE: 0,+ THUMBS: 1,+ OUTLINE: 2,+ ATTACHMENTS: 3,+ LAYERS: 4+}));+const TextLayerMode = {+ DISABLE: 0,+ ENABLE: 1,+ ENABLE_PERMISSIONS: 2+};+const ScrollMode = {+ UNKNOWN: -1,+ VERTICAL: 0,+ HORIZONTAL: 1,+ WRAPPED: 2,+ PAGE: 3+};+const SpreadMode = {+ UNKNOWN: -1,+ NONE: 0,+ ODD: 1,+ EVEN: 2+};+const CursorTool = (/* unused pure expression or super */ null && ({+ SELECT: 0,+ HAND: 1,+ ZOOM: 2+}));+const AutoPrintRegExp = /\bprint\s*\(/;+function scrollIntoView(element, spot) {+ let parent = element.offsetParent;+ if (!parent) {+ console.error("offsetParent is not set -- cannot scroll");+ return;+ }+ let offsetY = element.offsetTop + element.clientTop;+ let offsetX = element.offsetLeft + element.clientLeft;+ while (parent.clientHeight === parent.scrollHeight && parent.clientWidth === parent.scrollWidth) {+ offsetY += parent.offsetTop;+ offsetX += parent.offsetLeft;+ parent = parent.offsetParent;+ if (!parent) {+ return;+ }+ }+ if (spot) {+ if (spot.top !== undefined) {+ offsetY += spot.top;+ }+ if (spot.left !== undefined) {+ offsetX += spot.left;+ parent.scrollLeft = offsetX;+ }+ }+ parent.scrollTop = offsetY;+}+function watchScroll(viewAreaElement, callback, abortSignal = undefined) {+ function onRAF() {+ rAF = null;+ const currentX = viewAreaElement.scrollLeft;+ const lastX = state.lastX;+ if (currentX !== lastX) {+ state.right = currentX > lastX;+ }+ state.lastX = currentX;+ const currentY = viewAreaElement.scrollTop;+ const lastY = state.lastY;+ if (currentY !== lastY) {+ state.down = currentY > lastY;+ }+ state.lastY = currentY;+ callback(state);+ }+ const state = {+ right: true,+ down: true,+ lastX: viewAreaElement.scrollLeft,+ lastY: viewAreaElement.scrollTop+ };+ let rAF = null;+ viewAreaElement.addEventListener("scroll", () => {+ rAF ??= window.requestAnimationFrame(onRAF);+ }, {+ useCapture: true,+ signal: abortSignal+ });+ abortSignal?.addEventListener("abort", () => window.cancelAnimationFrame(rAF), {+ once: true+ });+ return state;+}+function parseQueryString(query) {+ const params = new Map();+ for (const [key, value] of new URLSearchParams(query)) {+ params.set(key.toLowerCase(), value);+ }+ return params;+}+const InvisibleCharsRegExp = /[\x00-\x1F]/g;+function removeNullCharacters(str, replaceInvisible = false) {+ if (!InvisibleCharsRegExp.test(str)) {+ return str;+ }+ if (replaceInvisible) {+ return str.replaceAll(InvisibleCharsRegExp, m => m === "\x00" ? "" : " ");+ }+ return str.replaceAll("\x00", "");+}+function binarySearchFirstItem(items, condition, start = 0) {+ let minIndex = start;+ let maxIndex = items.length - 1;+ if (maxIndex < 0 || !condition(items[maxIndex])) {+ return items.length;+ }+ if (condition(items[minIndex])) {+ return minIndex;+ }+ while (minIndex < maxIndex) {+ const currentIndex = minIndex + maxIndex >> 1;+ const currentItem = items[currentIndex];+ if (condition(currentItem)) {+ maxIndex = currentIndex;+ } else {+ minIndex = currentIndex + 1;+ }+ }+ return minIndex;+}+function approximateFraction(x) {+ if (Math.floor(x) === x) {+ return [x, 1];+ }+ const xinv = 1 / x;+ const limit = 8;+ if (xinv > limit) {+ return [1, limit];+ } else if (Math.floor(xinv) === xinv) {+ return [1, xinv];+ }+ const x_ = x > 1 ? xinv : x;+ let a = 0,+ b = 1,+ c = 1,+ d = 1;+ while (true) {+ const p = a + c,+ q = b + d;+ if (q > limit) {+ break;+ }+ if (x_ <= p / q) {+ c = p;+ d = q;+ } else {+ a = p;+ b = q;+ }+ }+ if (x_ - a / b < c / d - x_) {+ return x_ === x ? [a, b] : [b, a];+ }+ return x_ === x ? [c, d] : [d, c];+}+function floorToDivide(x, div) {+ return x - x % div;+}+function getPageSizeInches({+ view,+ userUnit,+ rotate+}) {+ const [x1, y1, x2, y2] = view;+ const changeOrientation = rotate % 180 !== 0;+ const width = (x2 - x1) / 72 * userUnit;+ const height = (y2 - y1) / 72 * userUnit;+ return {+ width: changeOrientation ? height : width,+ height: changeOrientation ? width : height+ };+}+function backtrackBeforeAllVisibleElements(index, views, top) {+ if (index < 2) {+ return index;+ }+ let elt = views[index].div;+ let pageTop = elt.offsetTop + elt.clientTop;+ if (pageTop >= top) {+ elt = views[index - 1].div;+ pageTop = elt.offsetTop + elt.clientTop;+ }+ for (let i = index - 2; i >= 0; --i) {+ elt = views[i].div;+ if (elt.offsetTop + elt.clientTop + elt.clientHeight <= pageTop) {+ break;+ }+ index = i;+ }+ return index;+}+function visibleSort(a, b) {+ const pc = a.percent - b.percent;+ return Math.abs(pc) > 0.001 ? -pc : a.id - b.id;+}+function getVisibleElements({+ scrollEl,+ views,+ sortByVisibility = false,+ horizontal = false,+ rtl = false+}) {+ const top = scrollEl.scrollTop,+ bottom = top + scrollEl.clientHeight;+ const left = scrollEl.scrollLeft,+ right = left + scrollEl.clientWidth;+ function isElementBottomAfterViewTop(view) {+ const element = view.div;+ const elementBottom = element.offsetTop + element.clientTop + element.clientHeight;+ return elementBottom > top;+ }+ function isElementNextAfterViewHorizontally(view) {+ const element = view.div;+ const elementLeft = element.offsetLeft + element.clientLeft;+ const elementRight = elementLeft + element.clientWidth;+ return rtl ? elementLeft < right : elementRight > left;+ }+ const visible = [],+ ids = new Set(),+ numViews = views.length;+ let firstVisibleElementInd = binarySearchFirstItem(views, horizontal ? isElementNextAfterViewHorizontally : isElementBottomAfterViewTop);+ if (firstVisibleElementInd > 0 && firstVisibleElementInd < numViews && !horizontal) {+ firstVisibleElementInd = backtrackBeforeAllVisibleElements(firstVisibleElementInd, views, top);+ }+ let lastEdge = horizontal ? right : -1;+ for (let i = firstVisibleElementInd; i < numViews; i++) {+ const view = views[i],+ element = view.div;+ const currentWidth = element.offsetLeft + element.clientLeft;+ const currentHeight = element.offsetTop + element.clientTop;+ const viewWidth = element.clientWidth,+ viewHeight = element.clientHeight;+ const viewRight = currentWidth + viewWidth;+ const viewBottom = currentHeight + viewHeight;+ if (lastEdge === -1) {+ if (viewBottom >= bottom) {+ lastEdge = viewBottom;+ }+ } else if ((horizontal ? currentWidth : currentHeight) > lastEdge) {+ break;+ }+ if (viewBottom <= top || currentHeight >= bottom || viewRight <= left || currentWidth >= right) {+ continue;+ }+ const minY = Math.max(0, top - currentHeight);+ const minX = Math.max(0, left - currentWidth);+ const hiddenHeight = minY + Math.max(0, viewBottom - bottom);+ const hiddenWidth = minX + Math.max(0, viewRight - right);+ const fractionHeight = (viewHeight - hiddenHeight) / viewHeight,+ fractionWidth = (viewWidth - hiddenWidth) / viewWidth;+ const percent = fractionHeight * fractionWidth * 100 | 0;+ visible.push({+ id: view.id,+ x: currentWidth,+ y: currentHeight,+ visibleArea: percent === 100 ? null : {+ minX,+ minY,+ maxX: Math.min(viewRight, right) - currentWidth,+ maxY: Math.min(viewBottom, bottom) - currentHeight+ },+ view,+ percent,+ widthPercent: fractionWidth * 100 | 0+ });+ ids.add(view.id);+ }+ const first = visible[0],+ last = visible.at(-1);+ if (sortByVisibility) {+ visible.sort(visibleSort);+ }+ return {+ first,+ last,+ views: visible,+ ids+ };+}+function normalizeWheelEventDirection(evt) {+ let delta = Math.hypot(evt.deltaX, evt.deltaY);+ const angle = Math.atan2(evt.deltaY, evt.deltaX);+ if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) {+ delta = -delta;+ }+ return delta;+}+function normalizeWheelEventDelta(evt) {+ const deltaMode = evt.deltaMode;+ let delta = normalizeWheelEventDirection(evt);+ const MOUSE_PIXELS_PER_LINE = 30;+ const MOUSE_LINES_PER_PAGE = 30;+ if (deltaMode === WheelEvent.DOM_DELTA_PIXEL) {+ delta /= MOUSE_PIXELS_PER_LINE * MOUSE_LINES_PER_PAGE;+ } else if (deltaMode === WheelEvent.DOM_DELTA_LINE) {+ delta /= MOUSE_LINES_PER_PAGE;+ }+ return delta;+}+function isValidRotation(angle) {+ return Number.isInteger(angle) && angle % 90 === 0;+}+function isValidScrollMode(mode) {+ return Number.isInteger(mode) && Object.values(ScrollMode).includes(mode) && mode !== ScrollMode.UNKNOWN;+}+function isValidSpreadMode(mode) {+ return Number.isInteger(mode) && Object.values(SpreadMode).includes(mode) && mode !== SpreadMode.UNKNOWN;+}+function isPortraitOrientation(size) {+ return size.width <= size.height;+}+const animationStarted = new Promise(function (resolve) {+ window.requestAnimationFrame(resolve);+});+const docStyle = document.documentElement.style;+class ProgressBar {+ #classList = null;+ #disableAutoFetchTimeout = null;+ #percent = 0;+ #style = null;+ #visible = true;+ constructor(bar) {+ this.#classList = bar.classList;+ this.#style = bar.style;+ }+ get percent() {+ return this.#percent;+ }+ set percent(val) {+ this.#percent = val;+ if (isNaN(val)) {+ this.#classList.add("indeterminate");+ return;+ }+ this.#classList.remove("indeterminate");+ this.#style.setProperty("--progressBar-percent", `${this.#percent}%`);+ }+ setWidth(viewer) {+ if (!viewer) {+ return;+ }+ const container = viewer.parentNode;+ const scrollbarWidth = container.offsetWidth - viewer.offsetWidth;+ if (scrollbarWidth > 0) {+ this.#style.setProperty("--progressBar-end-offset", `${scrollbarWidth}px`);+ }+ }+ setDisableAutoFetch(delay = 5000) {+ if (this.#percent === 100 || isNaN(this.#percent)) {+ return;+ }+ if (this.#disableAutoFetchTimeout) {+ clearTimeout(this.#disableAutoFetchTimeout);+ }+ this.show();+ this.#disableAutoFetchTimeout = setTimeout(() => {+ this.#disableAutoFetchTimeout = null;+ this.hide();+ }, delay);+ }+ hide() {+ if (!this.#visible) {+ return;+ }+ this.#visible = false;+ this.#classList.add("hidden");+ }+ show() {+ if (this.#visible) {+ return;+ }+ this.#visible = true;+ this.#classList.remove("hidden");+ }+}+function getActiveOrFocusedElement() {+ let curRoot = document;+ let curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(":focus");+ while (curActiveOrFocused?.shadowRoot) {+ curRoot = curActiveOrFocused.shadowRoot;+ curActiveOrFocused = curRoot.activeElement || curRoot.querySelector(":focus");+ }+ return curActiveOrFocused;+}+function apiPageLayoutToViewerModes(layout) {+ let scrollMode = ScrollMode.VERTICAL,+ spreadMode = SpreadMode.NONE;+ switch (layout) {+ case "SinglePage":+ scrollMode = ScrollMode.PAGE;+ break;+ case "OneColumn":+ break;+ case "TwoPageLeft":+ scrollMode = ScrollMode.PAGE;+ case "TwoColumnLeft":+ spreadMode = SpreadMode.ODD;+ break;+ case "TwoPageRight":+ scrollMode = ScrollMode.PAGE;+ case "TwoColumnRight":+ spreadMode = SpreadMode.EVEN;+ break;+ }+ return {+ scrollMode,+ spreadMode+ };+}+function apiPageModeToSidebarView(mode) {+ switch (mode) {+ case "UseNone":+ return SidebarView.NONE;+ case "UseThumbs":+ return SidebarView.THUMBS;+ case "UseOutlines":+ return SidebarView.OUTLINE;+ case "UseAttachments":+ return SidebarView.ATTACHMENTS;+ case "UseOC":+ return SidebarView.LAYERS;+ }+ return SidebarView.NONE;+}+function toggleCheckedBtn(button, toggle, view = null) {+ button.classList.toggle("toggled", toggle);+ button.setAttribute("aria-checked", toggle);+ view?.classList.toggle("hidden", !toggle);+}+function toggleSelectedBtn(button, toggle, view = null) {+ button.classList.toggle("selected", toggle);+ button.setAttribute("aria-selected", toggle);+ view?.classList.toggle("hidden", !toggle);+}+function toggleExpandedBtn(button, toggle, view = null) {+ button.classList.toggle("toggled", toggle);+ button.setAttribute("aria-expanded", toggle);+ view?.classList.toggle("hidden", !toggle);+}+const calcRound = function () {+ const e = document.createElement("div");+ e.style.width = "round(down, calc(1.6666666666666665 * 792px), 1px)";+ return e.style.width === "calc(1320px)" ? Math.fround : x => x;+}();++;// ./web/internal_evt.js+const INTERNAL_EVT = "59968104-cc61-4cf9-b570-014b35b3709c";+const internalOpt = Object.freeze({+ internal: INTERNAL_EVT+});++;// ./web/pdf_find_controller.js+++++++++++++++++++++const FindState = {+ FOUND: 0,+ NOT_FOUND: 1,+ WRAPPED: 2,+ PENDING: 3+};+const CHARACTERS_TO_NORMALIZE = new Map([["\u2010", "-"], ["\u2018", "'"], ["\u2019", "'"], ["\u201A", "'"], ["\u201B", "'"], ["\u201C", '"'], ["\u201D", '"'], ["\u201E", '"'], ["\u201F", '"'], ["\u00BC", "1/4"], ["\u00BD", "1/2"], ["\u00BE", "3/4"]]);+const DIACRITICS_EXCEPTION = new Set([0x3099, 0x309a, 0x094d, 0x09cd, 0x0a4d, 0x0acd, 0x0b4d, 0x0bcd, 0x0c4d, 0x0ccd, 0x0d3b, 0x0d3c, 0x0d4d, 0x0dca, 0x0e3a, 0x0eba, 0x0f84, 0x1039, 0x103a, 0x1714, 0x1734, 0x17d2, 0x1a60, 0x1b44, 0x1baa, 0x1bab, 0x1bf2, 0x1bf3, 0x2d7f, 0xa806, 0xa82c, 0xa8c4, 0xa953, 0xa9c0, 0xaaf6, 0xabed, 0x0c56, 0x0f71, 0x0f72, 0x0f7a, 0x0f7b, 0x0f7c, 0x0f7d, 0x0f80, 0x0f74]);+let DIACRITICS_EXCEPTION_STR;+const DIACRITICS_REG_EXP = /\p{M}+/gu;+const SPECIAL_CHARS_REG_EXP = /([+^$|])|(\p{P}+)|(\s+)|(\p{M})|(\p{L})/gu;+const SYLLABLES_REG_EXP = /[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g;+const SYLLABLES_LENGTHS = new Map();+const FIRST_CHAR_SYLLABLES_REG_EXP = "[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]";+const NFKC_CHARS_TO_NORMALIZE = new Map();+let noSyllablesRegExp = null;+let withSyllablesRegExp = null;+function normalize(text, options = {}) {+ const syllablePositions = [];+ let m;+ while ((m = SYLLABLES_REG_EXP.exec(text)) !== null) {+ let {+ index+ } = m;+ for (const char of m[0]) {+ let len = SYLLABLES_LENGTHS.get(char);+ if (!len) {+ len = char.normalize("NFD").length;+ SYLLABLES_LENGTHS.set(char, len);+ }+ syllablePositions.push([len, index++]);+ }+ }+ const hasSyllables = syllablePositions.length > 0;+ const ignoreDashEOL = options.ignoreDashEOL ?? false;+ let normalizationRegex;+ if (!hasSyllables && noSyllablesRegExp) {+ normalizationRegex = noSyllablesRegExp;+ } else if (hasSyllables && withSyllablesRegExp) {+ normalizationRegex = withSyllablesRegExp;+ } else {+ const replace = CHARACTERS_TO_NORMALIZE.keys().join("");+ const toNormalizeWithNFKC = getNormalizeWithNFKC();+ const CJK = "(?:\\p{Ideographic}|[\u3040-\u30FF])";+ const HKDiacritics = "(?:\u3099|\u309A)";+ const BrokenWord = `\\p{Ll}-\\n(?=\\p{Ll})|\\p{Lu}-\\n(?=\\p{L})`;+ const regexps = [`[${replace}]`, `[${toNormalizeWithNFKC}]`, `${HKDiacritics}\\n`, "\\p{M}+(?:-\\n)?", `${BrokenWord}`, "\\S-\\n", `${CJK}\\n`, "\\n", hasSyllables ? FIRST_CHAR_SYLLABLES_REG_EXP : "\\u0000"];+ normalizationRegex = new RegExp(regexps.map(r => `(${r})`).join("|"), "gmu");+ if (hasSyllables) {+ withSyllablesRegExp = normalizationRegex;+ } else {+ noSyllablesRegExp = normalizationRegex;+ }+ }+ const rawDiacriticsPositions = [];+ while ((m = DIACRITICS_REG_EXP.exec(text)) !== null) {+ rawDiacriticsPositions.push([m[0].length, m.index]);+ }+ let normalized = text.normalize("NFD");+ const positions = [0, 0];+ let rawDiacriticsIndex = 0;+ let syllableIndex = 0;+ let shift = 0;+ let shiftOrigin = 0;+ let eol = 0;+ let hasDiacritics = false;+ normalized = normalized.replace(normalizationRegex, (match, p1, p2, p3, p4, p5, p6, p7, p8, p9, i) => {+ i -= shiftOrigin;+ if (p1) {+ const replacement = CHARACTERS_TO_NORMALIZE.get(p1);+ const jj = replacement.length;+ for (let j = 1; j < jj; j++) {+ positions.push(i - shift + j, shift - j);+ }+ shift -= jj - 1;+ return replacement;+ }+ if (p2) {+ const replacement = NFKC_CHARS_TO_NORMALIZE.getOrInsertComputed(p2, () => p2.normalize("NFKC"));+ const jj = replacement.length;+ for (let j = 1; j < jj; j++) {+ positions.push(i - shift + j, shift - j);+ }+ shift -= jj - 1;+ return replacement;+ }+ if (p3) {+ hasDiacritics = true;+ if (i + eol === rawDiacriticsPositions[rawDiacriticsIndex]?.[1]) {+ ++rawDiacriticsIndex;+ } else {+ positions.push(i - 1 - shift + 1, shift - 1);+ shift -= 1;+ shiftOrigin += 1;+ }+ positions.push(i - shift + 1, shift);+ shiftOrigin += 1;+ eol += 1;+ return p3.charAt(0);+ }+ if (p4) {+ const hasTrailingDashEOL = p4.endsWith("\n");+ const len = hasTrailingDashEOL ? p4.length - 2 : p4.length;+ hasDiacritics = true;+ let jj = len;+ if (i + eol === rawDiacriticsPositions[rawDiacriticsIndex]?.[1]) {+ jj -= rawDiacriticsPositions[rawDiacriticsIndex][0];+ ++rawDiacriticsIndex;+ }+ for (let j = 1; j <= jj; j++) {+ positions.push(i - 1 - shift + j, shift - j);+ }+ shift -= jj;+ shiftOrigin += jj;+ if (hasTrailingDashEOL) {+ i += len - 1;+ positions.push(i - shift + 1, 1 + shift);+ shift += 1;+ shiftOrigin += 1;+ eol += 1;+ return p4.slice(0, len);+ }+ return p4;+ }+ if (p5) {+ if (ignoreDashEOL) {+ shiftOrigin += 1;+ eol += 1;+ return p5.slice(0, -1);+ }+ const len = p5.length - 2;+ positions.push(i - shift + len, 1 + shift);+ shift += 1;+ shiftOrigin += 1;+ eol += 1;+ return p5.slice(0, -2);+ }+ if (p6) {+ shiftOrigin += 1;+ eol += 1;+ return p6.slice(0, -1);+ }+ if (p7) {+ const len = p7.length - 1;+ positions.push(i - shift + len, shift);+ shiftOrigin += 1;+ eol += 1;+ return p7.slice(0, -1);+ }+ if (p8) {+ positions.push(i - shift + 1, shift - 1);+ shift -= 1;+ shiftOrigin += 1;+ eol += 1;+ return " ";+ }+ if (i + eol === syllablePositions[syllableIndex]?.[1]) {+ const newCharLen = syllablePositions[syllableIndex][0] - 1;+ ++syllableIndex;+ for (let j = 1; j <= newCharLen; j++) {+ positions.push(i - (shift - j), shift - j);+ }+ shift -= newCharLen;+ shiftOrigin += newCharLen;+ }+ return p9;+ });+ positions.push(normalized.length, shift);+ const starts = new Uint32Array(positions.length >> 1);+ const shifts = new Int32Array(positions.length >> 1);+ for (let i = 0, ii = positions.length; i < ii; i += 2) {+ starts[i >> 1] = positions[i];+ shifts[i >> 1] = positions[i + 1];+ }+ return [normalized, [starts, shifts], hasDiacritics];+}+function getOriginalIndex(diffs, pos, len) {+ if (!diffs) {+ return [pos, len];+ }+ const [starts, shifts] = diffs;+ const start = pos;+ const end = pos + len - 1;+ let i = binarySearchFirstItem(starts, x => x >= start);+ if (starts[i] > start) {+ --i;+ }+ let j = binarySearchFirstItem(starts, x => x >= end, i);+ if (starts[j] > end) {+ --j;+ }+ const oldStart = start + shifts[i];+ const oldEnd = end + shifts[j];+ const oldLen = oldEnd + 1 - oldStart;+ return [oldStart, oldLen];+}+class PDFFindController {+ #state = null;+ #updateMatchesCountOnProgress = true;+ #delay = 0;+ #visitedPagesCount = 0;+ #copiedPageData = null;+ #savedPageData = null;+ constructor({+ linkService,+ eventBus,+ delay = 250,+ updateMatchesCountOnProgress = true+ }) {+ this._linkService = linkService;+ this._eventBus = eventBus;+ this.#updateMatchesCountOnProgress = updateMatchesCountOnProgress;+ this.#delay = delay;+ this.onIsPageVisible = null;+ this.#reset();+ eventBus.on("find", this.#onFind.bind(this), internalOpt);+ eventBus.on("findbarclose", this.#onFindBarClose.bind(this), internalOpt);+ eventBus.on("pagesedited", this.#onPagesEdited.bind(this), internalOpt);+ }+ get highlightMatches() {+ return this._highlightMatches;+ }+ get pageMatches() {+ return this._pageMatches;+ }+ get pageMatchesLength() {+ return this._pageMatchesLength;+ }+ get selected() {+ return this._selected;+ }+ get state() {+ return this.#state;+ }+ setDocument(pdfDocument) {+ if (this._pdfDocument) {+ this.#reset();+ }+ if (!pdfDocument) {+ return;+ }+ this._pdfDocument = pdfDocument;+ this._firstPageCapability.resolve();+ }+ #onFind(state) {+ if (!state) {+ return;+ }+ const pdfDocument = this._pdfDocument;+ const {+ type+ } = state;+ if (this.#state === null || this.#shouldDirtyMatch(state)) {+ this._dirtyMatch = true;+ }+ this.#state = state;+ if (type !== "highlightallchange") {+ this.#updateUIState(FindState.PENDING);+ }+ this._firstPageCapability.promise.then(() => {+ if (!this._pdfDocument || pdfDocument && this._pdfDocument !== pdfDocument) {+ return;+ }+ this.#extractText();+ const findbarClosed = !this._highlightMatches;+ const pendingTimeout = !!this._findTimeout;+ if (this._findTimeout) {+ clearTimeout(this._findTimeout);+ this._findTimeout = null;+ }+ if (!type) {+ this._findTimeout = setTimeout(() => {+ this.#nextMatch();+ this._findTimeout = null;+ }, this.#delay);+ } else if (this._dirtyMatch) {+ this.#nextMatch();+ } else if (type === "again") {+ this.#nextMatch();+ if (findbarClosed && this.#state.highlightAll) {+ this.#updateAllPages();+ }+ } else if (type === "highlightallchange") {+ if (pendingTimeout) {+ this.#nextMatch();+ } else {+ this._highlightMatches = true;+ }+ this.#updateAllPages();+ } else {+ this.#nextMatch();+ }+ });+ }+ scrollMatchIntoView({+ element = null,+ pageIndex = -1,+ matchIndex = -1+ }) {+ if (!this._scrollMatches || !element) {+ return;+ } else if (matchIndex === -1 || matchIndex !== this._selected.matchIdx) {+ return;+ } else if (pageIndex === -1 || pageIndex !== this._selected.pageIdx) {+ return;+ }+ this._scrollMatches = false;+ element.scrollIntoView({+ block: "start",+ inline: "center"+ });+ }+ #reset() {+ this._highlightMatches = false;+ this._scrollMatches = false;+ this._pdfDocument = null;+ this._pageMatches = [];+ this._pageMatchesLength = [];+ this.#visitedPagesCount = 0;+ this.#state = null;+ this._selected = {+ pageIdx: -1,+ matchIdx: -1+ };+ this._offset = {+ pageIdx: null,+ matchIdx: null,+ wrapped: false+ };+ this._extractTextPromises = [];+ this._pageContents = [];+ this._pageDiffs = [];+ this._hasDiacritics = [];+ this._matchesCountTotal = 0;+ this._pagesToSearch = null;+ this._pendingFindMatches = new Set();+ this._resumePageIdx = null;+ this._dirtyMatch = false;+ clearTimeout(this._findTimeout);+ this._findTimeout = null;+ this.#copiedPageData = null;+ this._firstPageCapability = Promise.withResolvers();+ }+ get #query() {+ const {+ query+ } = this.#state;+ if (typeof query === "string") {+ if (query !== this._rawQuery) {+ this._rawQuery = query;+ [this._normalizedQuery] = normalize(query);+ }+ return this._normalizedQuery;+ }+ return (query || []).filter(Boolean).map(q => normalize(q)[0]);+ }+ #shouldDirtyMatch(state) {+ const newQuery = state.query,+ prevQuery = this.#state.query;+ const newType = typeof newQuery,+ prevType = typeof prevQuery;+ if (newType !== prevType) {+ return true;+ }+ if (newType === "string") {+ if (newQuery !== prevQuery) {+ return true;+ }+ } else if (JSON.stringify(newQuery) !== JSON.stringify(prevQuery)) {+ return true;+ }+ switch (state.type) {+ case "again":+ const pageNumber = this._selected.pageIdx + 1;+ const linkService = this._linkService;+ return pageNumber >= 1 && pageNumber <= linkService.pagesCount && pageNumber !== linkService.page && !(this.onIsPageVisible?.(pageNumber) ?? true);+ case "highlightallchange":+ return false;+ }+ return true;+ }+ #convertToRegExpString(query, hasDiacritics) {+ const {+ matchDiacritics+ } = this.#state;+ let isUnicode = false;+ const addExtraWhitespaces = (original, fixed) => {+ if (original === query) {+ return fixed;+ }+ if (query.startsWith(original)) {+ return `${fixed}[ ]*`;+ }+ if (query.endsWith(original)) {+ return `[ ]*${fixed}`;+ }+ return `[ ]*${fixed}[ ]*`;+ };+ query = query.replaceAll(SPECIAL_CHARS_REG_EXP, (match, p1, p2, p3, p4, p5) => {+ if (p1) {+ return addExtraWhitespaces(p1, RegExp.escape(p1));+ }+ if (p2) {+ return addExtraWhitespaces(p2, RegExp.escape(p2));+ }+ if (p3) {+ return "[ ]+";+ }+ if (matchDiacritics) {+ return p4 || p5;+ }+ if (p4) {+ return DIACRITICS_EXCEPTION.has(p4.charCodeAt(0)) ? p4 : "";+ }+ if (hasDiacritics) {+ isUnicode = true;+ return `${p5}\\p{M}*`;+ }+ return p5;+ });+ const trailingSpaces = "[ ]*";+ if (query.endsWith(trailingSpaces)) {+ query = query.slice(0, query.length - trailingSpaces.length);+ }+ if (matchDiacritics) {+ if (hasDiacritics) {+ DIACRITICS_EXCEPTION_STR ||= String.fromCharCode(...DIACRITICS_EXCEPTION);+ isUnicode = true;+ query = `${query}(?=[${DIACRITICS_EXCEPTION_STR}]|[^\\p{M}]|$)`;+ }+ }+ return [isUnicode, query];+ }+ #calculateMatch(pageIndex) {+ if (!this.#state) {+ return;+ }+ const query = this.#query;+ if (query.length === 0) {+ return;+ }+ const pageContent = this._pageContents[pageIndex];+ const matcherResult = this.match(query, pageContent, pageIndex);+ const matches = this._pageMatches[pageIndex] = [];+ const matchesLength = this._pageMatchesLength[pageIndex] = [];+ const diffs = this._pageDiffs[pageIndex];+ matcherResult?.forEach(({+ index,+ length+ }) => {+ const [matchPos, matchLen] = getOriginalIndex(diffs, index, length);+ if (matchLen) {+ matches.push(matchPos);+ matchesLength.push(matchLen);+ }+ });+ if (this.#state.highlightAll) {+ this.#updatePage(pageIndex);+ }+ if (this._resumePageIdx === pageIndex) {+ this._resumePageIdx = null;+ this.#nextPageMatch();+ }+ const pageMatchesCount = matches.length;+ this._matchesCountTotal += pageMatchesCount;+ if (this.#updateMatchesCountOnProgress) {+ if (pageMatchesCount > 0) {+ this.#updateUIResultsCount();+ }+ } else if (++this.#visitedPagesCount === this._linkService.pagesCount) {+ this.#updateUIResultsCount();+ }+ }+ match(query, pageContent, pageIndex) {+ const hasDiacritics = this._hasDiacritics[pageIndex];+ let isUnicode = false;+ if (typeof query === "string") {+ [isUnicode, query] = this.#convertToRegExpString(query, hasDiacritics);+ } else {+ query = query.sort().reverse().map(q => {+ const [isUnicodePart, queryPart] = this.#convertToRegExpString(q, hasDiacritics);+ isUnicode ||= isUnicodePart;+ return `(${queryPart})`;+ }).join("|");+ }+ if (!query) {+ return undefined;+ }+ const {+ caseSensitive,+ entireWord+ } = this.#state;+ const flags = `g${isUnicode ? "u" : ""}${caseSensitive ? "" : "i"}`;+ query = new RegExp(query, flags);+ const matches = [];+ let match;+ while ((match = query.exec(pageContent)) !== null) {+ if (entireWord && !isEntireWord(pageContent, match.index, match[0].length)) {+ continue;+ }+ matches.push({+ index: match.index,+ length: match[0].length+ });+ }+ return matches;+ }+ #extractText() {+ if (this._extractTextPromises.length > 0) {+ return;+ }+ let deferred = Promise.resolve();+ const textOptions = {+ disableNormalization: true+ };+ const pdfDoc = this._pdfDocument;+ for (let i = 0, ii = this._linkService.pagesCount; i < ii; i++) {+ const {+ promise,+ resolve+ } = Promise.withResolvers();+ this._extractTextPromises[i] = promise;+ deferred = deferred.then(async () => {+ if (pdfDoc !== this._pdfDocument) {+ resolve();+ return;+ }+ try {+ const pdfPage = await pdfDoc.getPage(i + 1);+ const textContent = await pdfPage.getTextContent(textOptions);+ if (pdfDoc !== this._pdfDocument) {+ resolve();+ return;+ }+ const strBuf = [];+ for (const textItem of textContent.items) {+ strBuf.push(textItem.str);+ if (textItem.hasEOL) {+ strBuf.push("\n");+ }+ }+ [this._pageContents[i], this._pageDiffs[i], this._hasDiacritics[i]] = normalize(strBuf.join(""));+ } catch (ex) {+ if (pdfDoc !== this._pdfDocument) {+ resolve();+ return;+ }+ console.error(`Unable to get text content for page ${i + 1}`, ex);+ [this._pageContents[i], this._pageDiffs[i], this._hasDiacritics[i]] = ["", null, false];+ }+ resolve();+ });+ }+ }+ #updatePage(index) {+ if (this._scrollMatches && this._selected.pageIdx === index) {+ this._linkService.page = index + 1;+ }+ this._eventBus.dispatch("updatetextlayermatches", {+ source: this,+ pageIndex: index+ });+ }+ #updateAllPages() {+ this._eventBus.dispatch("updatetextlayermatches", {+ source: this,+ pageIndex: -1+ });+ }+ #nextMatch() {+ const previous = this.#state.findPrevious;+ const currentPageIndex = this._linkService.page - 1;+ const numPages = this._linkService.pagesCount;+ this._highlightMatches = true;+ if (this._dirtyMatch) {+ this._dirtyMatch = false;+ this._selected.pageIdx = this._selected.matchIdx = -1;+ this._offset.pageIdx = currentPageIndex;+ this._offset.matchIdx = null;+ this._offset.wrapped = false;+ this._resumePageIdx = null;+ this._pageMatches.length = 0;+ this._pageMatchesLength.length = 0;+ this.#visitedPagesCount = 0;+ this._matchesCountTotal = 0;+ this.#updateAllPages();+ for (let i = 0; i < numPages; i++) {+ if (this._pendingFindMatches.has(i)) {+ continue;+ }+ this._pendingFindMatches.add(i);+ this._extractTextPromises[i].then(() => {+ this._pendingFindMatches.delete(i);+ this.#calculateMatch(i);+ });+ }+ }+ const query = this.#query;+ if (query.length === 0) {+ this.#updateUIState(FindState.FOUND);+ return;+ }+ if (this._resumePageIdx) {+ return;+ }+ const offset = this._offset;+ this._pagesToSearch = numPages;+ if (offset.matchIdx !== null) {+ const numPageMatches = this._pageMatches[offset.pageIdx].length;+ if (!previous && offset.matchIdx + 1 < numPageMatches || previous && offset.matchIdx > 0) {+ offset.matchIdx = previous ? offset.matchIdx - 1 : offset.matchIdx + 1;+ this.#updateMatch(true);+ return;+ }+ this.#advanceOffsetPage(previous);+ }+ this.#nextPageMatch();+ }+ #matchesReady(matches) {+ const offset = this._offset;+ const numMatches = matches.length;+ const previous = this.#state.findPrevious;+ if (numMatches) {+ offset.matchIdx = previous ? numMatches - 1 : 0;+ this.#updateMatch(true);+ return true;+ }+ this.#advanceOffsetPage(previous);+ if (offset.wrapped) {+ offset.matchIdx = null;+ if (this._pagesToSearch < 0) {+ this.#updateMatch(false);+ return true;+ }+ }+ return false;+ }+ #nextPageMatch() {+ if (this._resumePageIdx !== null) {+ console.error("There can only be one pending page.");+ }+ let matches = null;+ do {+ const pageIdx = this._offset.pageIdx;+ matches = this._pageMatches[pageIdx];+ if (!matches) {+ this._resumePageIdx = pageIdx;+ break;+ }+ } while (!this.#matchesReady(matches));+ }+ #advanceOffsetPage(previous) {+ const offset = this._offset;+ const numPages = this._linkService.pagesCount;+ offset.pageIdx = previous ? offset.pageIdx - 1 : offset.pageIdx + 1;+ offset.matchIdx = null;+ this._pagesToSearch--;+ if (offset.pageIdx >= numPages || offset.pageIdx < 0) {+ offset.pageIdx = previous ? numPages - 1 : 0;+ offset.wrapped = true;+ }+ }+ #updateMatch(found = false) {+ let state = FindState.NOT_FOUND;+ const wrapped = this._offset.wrapped;+ this._offset.wrapped = false;+ if (found) {+ const previousPage = this._selected.pageIdx;+ this._selected.pageIdx = this._offset.pageIdx;+ this._selected.matchIdx = this._offset.matchIdx;+ state = wrapped ? FindState.WRAPPED : FindState.FOUND;+ if (previousPage !== -1 && previousPage !== this._selected.pageIdx) {+ this.#updatePage(previousPage);+ }+ }+ this.#updateUIState(state, this.#state.findPrevious);+ if (this._selected.pageIdx !== -1) {+ this._scrollMatches = true;+ this.#updatePage(this._selected.pageIdx);+ }+ }+ #onPagesEdited({+ pagesMapper,+ type,+ pageNumbers+ }) {+ if (this._extractTextPromises.length === 0) {+ return;+ }+ if (type === "copy") {+ const promises = new Map();+ const contents = new Map();+ const diffs = new Map();+ const diacritics = new Map();+ for (const pageNum of pageNumbers) {+ promises.set(pageNum, this._extractTextPromises[pageNum - 1]);+ contents.set(pageNum, this._pageContents[pageNum - 1]);+ diffs.set(pageNum, this._pageDiffs[pageNum - 1]);+ diacritics.set(pageNum, this._hasDiacritics[pageNum - 1]);+ }+ this.#copiedPageData = {+ promises,+ contents,+ diffs,+ diacritics+ };+ return;+ }+ if (type === "cancelCopy") {+ this.#copiedPageData = null;+ return;+ }+ if (type === "delete") {+ this.#savedPageData = {+ promises: this._extractTextPromises,+ contents: this._pageContents,+ diffs: this._pageDiffs,+ diacritics: this._hasDiacritics+ };+ }+ if (type === "cancelDelete") {+ this._extractTextPromises = this.#savedPageData.promises;+ this._pageContents = this.#savedPageData.contents;+ this._pageDiffs = this.#savedPageData.diffs;+ this._hasDiacritics = this.#savedPageData.diacritics;+ return;+ }+ if (type === "cleanSavedData") {+ this.#savedPageData = null;+ return;+ }+ if (this._findTimeout) {+ clearTimeout(this._findTimeout);+ this._findTimeout = null;+ }+ this._resumePageIdx = null;+ this._dirtyMatch = true;+ const prevPromises = this._extractTextPromises;+ const prevContents = this._pageContents;+ const prevDiffs = this._pageDiffs;+ const prevDiacritics = this._hasDiacritics;+ const extractTextPromises = this._extractTextPromises = [];+ const pageContents = this._pageContents = [];+ const pageDiffs = this._pageDiffs = [];+ const hasDiacritics = this._hasDiacritics = [];+ for (let i = 1, ii = pagesMapper.pagesNumber; i <= ii; i++) {+ const prevPageNumber = pagesMapper.getPrevPageNumber(i);+ if (prevPageNumber < 0) {+ const src = -prevPageNumber;+ extractTextPromises.push(this.#copiedPageData?.promises.get(src) || Promise.resolve());+ pageContents.push(this.#copiedPageData?.contents.get(src) ?? "");+ pageDiffs.push(this.#copiedPageData?.diffs.get(src) ?? null);+ hasDiacritics.push(this.#copiedPageData?.diacritics.get(src) ?? false);+ continue;+ }+ extractTextPromises.push(prevPromises[prevPageNumber - 1] || Promise.resolve());+ pageContents.push(prevContents[prevPageNumber - 1] ?? "");+ pageDiffs.push(prevDiffs[prevPageNumber - 1] ?? null);+ hasDiacritics.push(prevDiacritics[prevPageNumber - 1] ?? false);+ }+ if (this.#state) {+ this.#nextMatch();+ }+ }+ #onFindBarClose(evt) {+ const pdfDocument = this._pdfDocument;+ this._firstPageCapability.promise.then(() => {+ if (!this._pdfDocument || pdfDocument && this._pdfDocument !== pdfDocument) {+ return;+ }+ if (this._findTimeout) {+ clearTimeout(this._findTimeout);+ this._findTimeout = null;+ }+ if (this._resumePageIdx) {+ this._resumePageIdx = null;+ this._dirtyMatch = true;+ }+ this.#updateUIState(FindState.FOUND);+ this._highlightMatches = false;+ this.#updateAllPages();+ });+ }+ #requestMatchesCount() {+ const {+ pageIdx,+ matchIdx+ } = this._selected;+ let current = 0,+ total = this._matchesCountTotal;+ if (matchIdx !== -1) {+ for (let i = 0; i < pageIdx; i++) {+ current += this._pageMatches[i]?.length || 0;+ }+ current += matchIdx + 1;+ }+ if (current < 1 || current > total) {+ current = total = 0;+ }+ return {+ current,+ total+ };+ }+ #updateUIResultsCount() {+ this._eventBus.dispatch("updatefindmatchescount", {+ source: this,+ matchesCount: this.#requestMatchesCount()+ });+ }+ #updateUIState(state, previous = false) {+ if (!this.#updateMatchesCountOnProgress && (this.#visitedPagesCount !== this._linkService.pagesCount || state === FindState.PENDING)) {+ return;+ }+ this._eventBus.dispatch("updatefindcontrolstate", {+ source: this,+ state,+ previous,+ entireWord: this.#state?.entireWord ?? null,+ matchesCount: this.#requestMatchesCount(),+ rawQuery: this.#state?.query ?? null+ });+ }+}++// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.parse.js+var es_json_parse = __webpack_require__(9112);+// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.parse.js+var web_url_parse = __webpack_require__(5781);+;// ./web/pdf_link_service.js+++++++++const DEFAULT_LINK_REL = "noopener noreferrer nofollow";+const LinkTarget = {+ NONE: 0,+ SELF: 1,+ BLANK: 2,+ PARENT: 3,+ TOP: 4+};+class PDFLinkService {+ externalLinkEnabled = true;+ constructor({+ eventBus,+ externalLinkTarget = null,+ externalLinkRel = null,+ ignoreDestinationZoom = false+ } = {}) {+ this.eventBus = eventBus;+ this.externalLinkTarget = externalLinkTarget;+ this.externalLinkRel = externalLinkRel;+ this._ignoreDestinationZoom = ignoreDestinationZoom;+ this.baseUrl = null;+ this.pdfDocument = null;+ this.pdfViewer = null;+ this.pdfHistory = null;+ }+ setDocument(pdfDocument, baseUrl = null) {+ this.baseUrl = baseUrl;+ this.pdfDocument = pdfDocument;+ }+ setViewer(pdfViewer) {+ this.pdfViewer = pdfViewer;+ }+ setHistory(pdfHistory) {+ this.pdfHistory = pdfHistory;+ }+ get pagesCount() {+ return this.pdfDocument?.pagesMapper.pagesNumber || 0;+ }+ get page() {+ return this.pdfDocument ? this.pdfViewer.currentPageNumber : 1;+ }+ set page(value) {+ if (this.pdfDocument) {+ this.pdfViewer.currentPageNumber = value;+ }+ }+ get rotation() {+ return this.pdfDocument ? this.pdfViewer.pagesRotation : 0;+ }+ set rotation(value) {+ if (this.pdfDocument) {+ this.pdfViewer.pagesRotation = value;+ }+ }+ get isInPresentationMode() {+ return this.pdfDocument ? this.pdfViewer.isInPresentationMode : false;+ }+ async goToDestination(dest) {+ if (!this.pdfDocument) {+ return;+ }+ let namedDest, explicitDest, pageNumber;+ if (typeof dest === "string") {+ namedDest = dest;+ explicitDest = await this.pdfDocument.getDestination(dest);+ } else {+ namedDest = null;+ explicitDest = await dest;+ }+ if (!Array.isArray(explicitDest)) {+ console.error(`goToDestination: "${explicitDest}" is not a valid destination array, for dest="${dest}".`);+ return;+ }+ const [destRef] = explicitDest;+ if (destRef && typeof destRef === "object") {+ pageNumber = this.pdfDocument.cachedPageNumber(destRef);+ if (!pageNumber) {+ try {+ pageNumber = (await this.pdfDocument.getPageIndex(destRef)) + 1;+ } catch {+ console.error(`goToDestination: "${destRef}" is not a valid page reference, for dest="${dest}".`);+ return;+ }+ }+ } else if (Number.isInteger(destRef)) {+ pageNumber = destRef + 1;+ }+ if (!pageNumber || pageNumber < 1 || pageNumber > this.pagesCount) {+ console.error(`goToDestination: "${pageNumber}" is not a valid page number, for dest="${dest}".`);+ return;+ }+ if (this.pdfHistory) {+ this.pdfHistory.pushCurrentPosition();+ this.pdfHistory.push({+ namedDest,+ explicitDest,+ pageNumber+ });+ }+ this.pdfViewer.scrollPageIntoView({+ pageNumber,+ destArray: explicitDest,+ ignoreDestinationZoom: this._ignoreDestinationZoom+ });+ const ac = new AbortController();+ this.eventBus.on("textlayerrendered", evt => {+ if (evt.pageNumber === pageNumber) {+ evt.source.textLayer.div.focus();+ ac.abort();+ }+ }, {+ signal: ac.signal,+ ...internalOpt+ });+ }+ goToPage(val) {+ if (!this.pdfDocument) {+ return;+ }+ const pageNumber = typeof val === "string" && this.pdfViewer.pageLabelToPageNumber(val) || val | 0;+ if (!(Number.isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.pagesCount)) {+ console.error(`PDFLinkService.goToPage: "${val}" is not a valid page.`);+ return;+ }+ if (this.pdfHistory) {+ this.pdfHistory.pushCurrentPosition();+ this.pdfHistory.pushPage(pageNumber);+ }+ this.pdfViewer.scrollPageIntoView({+ pageNumber+ });+ }+ goToXY(pageNumber, x, y, options = {}) {+ this.pdfViewer.scrollPageIntoView({+ pageNumber,+ destArray: [null, {+ name: "XYZ"+ }, x, y],+ ignoreDestinationZoom: true,+ ...options+ });+ }+ async getAttachmentContent(id) {+ try {+ return await this.pdfDocument?.getAttachmentContent(id);+ } catch (error) {+ if (!(error instanceof PasswordException)) {+ console.warn(`Unable to load attachment content: ${error}`);+ }+ }+ return null;+ }+ addLinkAttributes(link, url, newWindow = false) {+ if (!url || typeof url !== "string") {+ throw new Error('A valid "url" parameter must provided.');+ }+ const target = newWindow ? LinkTarget.BLANK : this.externalLinkTarget,+ rel = this.externalLinkRel;+ let displayUrl = url;+ const parsedUrl = URL.parse(url);+ if (parsedUrl?.username || parsedUrl?.password) {+ parsedUrl.username = parsedUrl.password = "";+ displayUrl = parsedUrl.href;+ }+ if (this.externalLinkEnabled) {+ link.href = url;+ link.title = displayUrl;+ } else {+ link.href = "";+ link.title = `Disabled: ${displayUrl}`;+ link.onclick = () => false;+ }+ let targetStr = "";+ switch (target) {+ case LinkTarget.NONE:+ break;+ case LinkTarget.SELF:+ targetStr = "_self";+ break;+ case LinkTarget.BLANK:+ targetStr = "_blank";+ break;+ case LinkTarget.PARENT:+ targetStr = "_parent";+ break;+ case LinkTarget.TOP:+ targetStr = "_top";+ break;+ }+ link.target = targetStr;+ link.rel = typeof rel === "string" ? rel : DEFAULT_LINK_REL;+ }+ getDestinationHash(dest) {+ if (typeof dest === "string") {+ if (dest.length > 0) {+ return this.getAnchorUrl("#" + escape(dest));+ }+ } else if (Array.isArray(dest)) {+ const str = JSON.stringify(dest);+ if (str.length > 0) {+ return this.getAnchorUrl("#" + escape(str));+ }+ }+ return this.getAnchorUrl("");+ }+ getAnchorUrl(anchor) {+ return this.baseUrl ? this.baseUrl + anchor : anchor;+ }+ setHash(hash) {+ if (!this.pdfDocument) {+ return;+ }+ let pageNumber, dest;+ if (hash.includes("=")) {+ const params = parseQueryString(hash);+ if (params.has("search")) {+ const query = params.get("search").replaceAll('"', ""),+ phrase = params.get("phrase") === "true";+ this.eventBus.dispatch("findfromurlhash", {+ source: this,+ query: phrase ? query : query.match(/\S+/g)+ });+ }+ if (params.has("page")) {+ pageNumber = params.get("page") | 0 || 1;+ }+ if (params.has("zoom")) {+ const zoomArgs = params.get("zoom").split(",");+ const zoomArg = zoomArgs[0];+ const zoomArgNumber = parseFloat(zoomArg);+ if (!zoomArg.includes("Fit")) {+ dest = [null, {+ name: "XYZ"+ }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null, zoomArgs.length > 2 ? zoomArgs[2] | 0 : null, zoomArgNumber ? zoomArgNumber / 100 : zoomArg];+ } else if (zoomArg === "Fit" || zoomArg === "FitB") {+ dest = [null, {+ name: zoomArg+ }];+ } else if (zoomArg === "FitH" || zoomArg === "FitBH" || zoomArg === "FitV" || zoomArg === "FitBV") {+ dest = [null, {+ name: zoomArg+ }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null];+ } else if (zoomArg === "FitR") {+ if (zoomArgs.length !== 5) {+ console.error('PDFLinkService.setHash: Not enough parameters for "FitR".');+ } else {+ dest = [null, {+ name: zoomArg+ }, zoomArgs[1] | 0, zoomArgs[2] | 0, zoomArgs[3] | 0, zoomArgs[4] | 0];+ }+ } else {+ console.error(`PDFLinkService.setHash: "${zoomArg}" is not a valid zoom value.`);+ }+ }+ if (dest) {+ this.pdfViewer.scrollPageIntoView({+ pageNumber: pageNumber || this.page,+ destArray: dest,+ allowNegativeOffset: true+ });+ } else if (pageNumber) {+ this.page = pageNumber;+ }+ if (params.has("pagemode")) {+ this.eventBus.dispatch("pagemode", {+ source: this,+ mode: params.get("pagemode")+ });+ }+ if (params.has("nameddest")) {+ this.goToDestination(params.get("nameddest"));+ }+ return;+ }+ dest = unescape(hash);+ try {+ dest = JSON.parse(dest);+ if (!Array.isArray(dest)) {+ dest = dest.toString();+ }+ } catch {}+ if (typeof dest === "string" || isValidExplicitDest(dest)) {+ this.goToDestination(dest);+ return;+ }+ console.error(`PDFLinkService.setHash: "${unescape(hash)}" is not a valid destination.`);+ }+ executeNamedAction(action) {+ if (!this.pdfDocument) {+ return;+ }+ switch (action) {+ case "GoBack":+ this.pdfHistory?.back();+ break;+ case "GoForward":+ this.pdfHistory?.forward();+ break;+ case "NextPage":+ this.pdfViewer.nextPage();+ break;+ case "PrevPage":+ this.pdfViewer.previousPage();+ break;+ case "LastPage":+ this.page = this.pagesCount;+ break;+ case "FirstPage":+ this.page = 1;+ break;+ default:+ break;+ }+ this.eventBus.dispatch("namedaction", {+ source: this,+ action+ });+ }+ async executeSetOCGState(action) {+ if (!this.pdfDocument) {+ return;+ }+ const pdfDocument = this.pdfDocument,+ optionalContentConfig = await this.pdfViewer.optionalContentConfigPromise;+ if (pdfDocument !== this.pdfDocument) {+ return;+ }+ optionalContentConfig.setOCGState(action);+ this.pdfViewer.optionalContentConfigPromise = Promise.resolve(optionalContentConfig);+ }+}+class SimpleLinkService extends PDFLinkService {+ setDocument(pdfDocument, baseUrl = null) {}+}++;// ./web/annotation_layer_builder.js+++++++class AnnotationLayerBuilder {+ #annotations = null;+ #commentManager = null;+ #onAppend = null;+ #eventAC = null;+ #linksInjected = false;+ constructor({+ pdfPage,+ linkService,+ downloadManager,+ annotationStorage = null,+ imageResourcesPath = "",+ renderForms = true,+ enableComment = false,+ commentManager = null,+ enableScripting = false,+ hasJSActionsPromise = null,+ fieldObjectsPromise = null,+ annotationCanvasMap = null,+ accessibilityManager = null,+ annotationEditorUIManager = null,+ onAppend = null+ }) {+ this.pdfPage = pdfPage;+ this.linkService = linkService;+ this.downloadManager = downloadManager;+ this.imageResourcesPath = imageResourcesPath;+ this.renderForms = renderForms;+ this.annotationStorage = annotationStorage;+ this.enableComment = enableComment;+ this.#commentManager = commentManager;+ this.enableScripting = enableScripting;+ this._hasJSActionsPromise = hasJSActionsPromise || Promise.resolve(false);+ this._fieldObjectsPromise = fieldObjectsPromise || Promise.resolve(null);+ this._annotationCanvasMap = annotationCanvasMap;+ this._accessibilityManager = accessibilityManager;+ this._annotationEditorUIManager = annotationEditorUIManager;+ this.#onAppend = onAppend;+ this.annotationLayer = null;+ this.div = null;+ this._cancelled = false;+ this._eventBus = linkService.eventBus;+ }+ async render({+ viewport,+ intent = "display",+ structTreeLayer = null,+ optionalContentConfigPromise = null+ }) {+ if (this.div) {+ const optionalContentConfig = await optionalContentConfigPromise;+ if (this._cancelled || !this.annotationLayer) {+ return;+ }+ this.annotationLayer.update({+ viewport: viewport.clone({+ dontFlip: true+ }),+ optionalContentConfig+ });+ return;+ }+ const [annotations, hasJSActions, fieldObjects, optionalContentConfig] = await Promise.all([this.pdfPage.getAnnotations({+ intent+ }), this._hasJSActionsPromise, this._fieldObjectsPromise, optionalContentConfigPromise]);+ if (this._cancelled) {+ return;+ }+ const div = this.div = document.createElement("div");+ div.className = "annotationLayer";+ this.#onAppend?.(div);+ this.#initAnnotationLayer(viewport, structTreeLayer);+ if (annotations.length === 0) {+ this.#annotations = annotations;+ setLayerDimensions(this.div, viewport);+ return;+ }+ await this.annotationLayer.render({+ annotations,+ imageResourcesPath: this.imageResourcesPath,+ renderForms: this.renderForms,+ downloadManager: this.downloadManager,+ enableComment: this.enableComment,+ enableScripting: this.enableScripting,+ hasJSActions,+ fieldObjects,+ optionalContentConfig+ });+ this.#annotations = annotations;+ if (this.linkService.isInPresentationMode) {+ this.#updatePresentationModeState(PresentationModeState.FULLSCREEN);+ }+ if (!this.#eventAC) {+ this.#eventAC = new AbortController();+ this._eventBus?.on("presentationmodechanged", evt => {+ this.#updatePresentationModeState(evt.state);+ }, {+ signal: this.#eventAC.signal,+ ...internalOpt+ });+ }+ }+ #initAnnotationLayer(viewport, structTreeLayer) {+ this.annotationLayer = new AnnotationLayer({+ div: this.div,+ accessibilityManager: this._accessibilityManager,+ annotationCanvasMap: this._annotationCanvasMap,+ annotationEditorUIManager: this._annotationEditorUIManager,+ annotationStorage: this.annotationStorage,+ page: this.pdfPage,+ viewport: viewport.clone({+ dontFlip: true+ }),+ structTreeLayer,+ commentManager: this.#commentManager,+ linkService: this.linkService+ });+ }+ cancel() {+ this._cancelled = true;+ this.#eventAC?.abort();+ this.#eventAC = null;+ this.annotationLayer?.destroy();+ }+ refreshCanvases() {+ this.annotationLayer?.refreshCanvases();+ }+ hide() {+ if (!this.div) {+ return;+ }+ this.div.hidden = true;+ }+ hasEditableAnnotations() {+ return !!this.annotationLayer?.hasEditableAnnotations();+ }+ async injectLinkAnnotations(inferredLinks) {+ if (this.#annotations === null) {+ throw new Error("`render` method must be called before `injectLinkAnnotations`.");+ }+ if (this._cancelled || this.#linksInjected) {+ return;+ }+ this.#linksInjected = true;+ const newLinks = this.#annotations.length ? this.#checkInferredLinks(inferredLinks) : inferredLinks;+ if (!newLinks.length) {+ return;+ }+ await this.annotationLayer.addLinkAnnotations(newLinks);+ }+ #updatePresentationModeState(state) {+ if (!this.div) {+ return;+ }+ let disableFormElements = false;+ switch (state) {+ case PresentationModeState.FULLSCREEN:+ disableFormElements = true;+ break;+ case PresentationModeState.NORMAL:+ break;+ default:+ return;+ }+ for (const section of this.div.childNodes) {+ if (section.hasAttribute("data-internal-link") || section.classList.contains("mediaAnnotation")) {+ continue;+ }+ section.inert = disableFormElements;+ }+ }+ #checkInferredLinks(inferredLinks) {+ function annotationRects(annot) {+ if (!annot.quadPoints) {+ return [annot.rect];+ }+ const rects = [];+ for (let i = 2, ii = annot.quadPoints.length; i < ii; i += 8) {+ const trX = annot.quadPoints[i];+ const trY = annot.quadPoints[i + 1];+ const blX = annot.quadPoints[i + 2];+ const blY = annot.quadPoints[i + 3];+ rects.push([blX, blY, trX, trY]);+ }+ return rects;+ }+ function intersectAnnotations(annot1, annot2) {+ const intersections = [];+ const annot1Rects = annotationRects(annot1);+ const annot2Rects = annotationRects(annot2);+ for (const rect1 of annot1Rects) {+ for (const rect2 of annot2Rects) {+ const intersection = Util.intersect(rect1, rect2);+ if (intersection) {+ intersections.push(intersection);+ }+ }+ }+ return intersections;+ }+ function areaRects(rects) {+ let totalArea = 0;+ for (const rect of rects) {+ totalArea += Math.abs((rect[2] - rect[0]) * (rect[3] - rect[1]));+ }+ return totalArea;+ }+ return inferredLinks.filter(link => {+ let linkAreaRects;+ for (const annotation of this.#annotations) {+ if (annotation.annotationType !== AnnotationType.LINK) {+ continue;+ }+ const intersections = intersectAnnotations(annotation, link);+ if (intersections.length === 0) {+ continue;+ }+ linkAreaRects ??= areaRects(annotationRects(link));+ if (areaRects(intersections) / linkAreaRects > 0.5) {+ return false;+ }+ }+ return true;+ });+ }+}++// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.get-or-insert.js+var es_weak_map_get_or_insert = __webpack_require__(8454);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.get-or-insert-computed.js+var es_weak_map_get_or_insert_computed = __webpack_require__(9452);+;// ./web/base_download_manager.js++++class BaseDownloadManager {+ #openBlobUrls = new WeakMap();+ _triggerDownload(blobUrl, originalUrl, filename, isAttachment = false) {+ throw new Error("Not implemented: _triggerDownload");+ }+ _getOpenDataUrl(blobUrl, filename, dest = null) {+ throw new Error("Not implemented: _getOpenDataUrl");+ }+ downloadData(data, filename, contentType) {+ const blobUrl = URL.createObjectURL(new Blob([data], {+ type: contentType+ }));+ this._triggerDownload(blobUrl, blobUrl, filename, true);+ }+ openOrDownloadData(data, filename, dest = null) {+ const isPdfData = isPdfFile(filename);+ const contentType = isPdfData ? "application/pdf" : "";+ if (isPdfData) {+ const blobUrl = this.#openBlobUrls.getOrInsertComputed(data, () => URL.createObjectURL(new Blob([data], {+ type: contentType+ })));+ try {+ const viewerUrl = this._getOpenDataUrl(blobUrl, filename, dest);+ window.open(viewerUrl);+ return true;+ } catch (ex) {+ console.error("openOrDownloadData:", ex);+ URL.revokeObjectURL(blobUrl);+ this.#openBlobUrls.delete(data);+ }+ }+ this.downloadData(data, filename, contentType);+ return false;+ }+ download(data, url, filename) {+ const blobUrl = data ? URL.createObjectURL(new Blob([data], {+ type: "application/pdf"+ })) : null;+ this._triggerDownload(blobUrl, url, filename);+ }+}++;// ./web/download_manager.js+++class DownloadManager extends BaseDownloadManager {+ _triggerDownload(blobUrl, originalUrl, filename, isAttachment = false) {+ if (!blobUrl && !isAttachment) {+ if (!createValidAbsoluteUrl(originalUrl, "http://example.com")) {+ throw new Error(`_triggerDownload - not a valid URL: ${originalUrl}`);+ }+ blobUrl = originalUrl + "#pdfjs.action=download";+ }+ const a = document.createElement("a");+ a.href = blobUrl;+ a.target = "_parent";+ if ("download" in a) {+ a.download = filename;+ }+ (document.body || document.documentElement).append(a);+ a.click();+ a.remove();+ }+ _getOpenDataUrl(blobUrl, filename, dest = null) {+ throw new Error("Opening data is not supported in `COMPONENTS` builds.");+ }+}++// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.find.js+var es_iterator_find = __webpack_require__(116);+;// ./web/event_utils.js+++++++++++++++const WaitOnType = {+ EVENT: "event",+ TIMEOUT: "timeout"+};+async function waitOnEventOrTimeout({+ target,+ name,+ delay = 0+}) {+ if (typeof target !== "object" || !(name && typeof name === "string") || !(Number.isInteger(delay) && delay >= 0)) {+ throw new Error("waitOnEventOrTimeout - invalid parameters.");+ }+ const {+ promise,+ resolve+ } = Promise.withResolvers();+ const ac = new AbortController();+ function handler(type) {+ ac.abort();+ clearTimeout(timeout);+ resolve(type);+ }+ const evtMethod = target instanceof EventBus ? "on" : "addEventListener";+ const evtOpts = target instanceof EventBus ? {+ signal: ac.signal,+ ...internalOpt+ } : {+ signal: ac.signal+ };+ target[evtMethod](name, handler.bind(null, WaitOnType.EVENT), evtOpts);+ const timeout = setTimeout(handler.bind(null, WaitOnType.TIMEOUT), delay);+ return promise;+}+class EventBus {+ #listeners = new Map();+ constructor() {+ Object.seal(this);+ }+ on(eventName, listener, options = null) {+ let rmAbort = null;+ if (options?.signal instanceof AbortSignal) {+ const {+ signal+ } = options;+ if (signal.aborted) {+ console.error("Cannot use an `aborted` signal.");+ return;+ }+ const onAbort = () => this.off(eventName, listener);+ rmAbort = () => signal.removeEventListener("abort", onAbort);+ signal.addEventListener("abort", onAbort);+ }+ this.#listeners.getOrInsertComputed(eventName, makeSet).add({+ listener,+ internal: options?.internal === INTERNAL_EVT,+ once: options?.once === true,+ rmAbort+ });+ }+ off(eventName, listener, options = null) {+ const eventListeners = this.#listeners.get(eventName);+ const evt = eventListeners?.keys().find(e => e.listener === listener);+ if (evt) {+ evt.rmAbort?.();+ eventListeners.delete(evt);+ }+ }+ dispatch(eventName, data) {+ const eventListeners = this.#listeners.get(eventName);+ if (!eventListeners?.size) {+ return;+ }+ let extListeners;+ for (const {+ listener,+ internal,+ once+ } of new Set(eventListeners)) {+ if (once) {+ this.off(eventName, listener);+ }+ if (!internal) {+ (extListeners ??= []).push(listener);+ continue;+ }+ listener(data);+ }+ if (extListeners) {+ for (const listener of extListeners) {+ listener(data);+ }+ }+ }+}+class FirefoxEventBus extends EventBus {+ #externalServices;+ #globalEventNames;+ #isInAutomation;+ constructor(globalEventNames, externalServices, isInAutomation) {+ super();+ this.#globalEventNames = globalEventNames;+ this.#externalServices = externalServices;+ this.#isInAutomation = isInAutomation;+ }+ dispatch(eventName, data) {+ throw new Error("Not implemented: FirefoxEventBus.dispatch");+ }+}++;// ./node_modules/@fluent/bundle/esm/types.js+class FluentType {+ constructor(value) {+ this.value = value;+ }+ valueOf() {+ return this.value;+ }+}+class FluentNone extends FluentType {+ constructor(value = "???") {+ super(value);+ }+ toString(scope) {+ return `{${this.value}}`;+ }+}+class FluentNumber extends FluentType {+ constructor(value, opts = {}) {+ super(value);+ this.opts = opts;+ }+ toString(scope) {+ if (scope) {+ try {+ const nf = scope.memoizeIntlObject(Intl.NumberFormat, this.opts);+ return nf.format(this.value);+ } catch (err) {+ scope.reportError(err);+ }+ }+ return this.value.toString(10);+ }+}+class FluentDateTime extends FluentType {+ static supportsValue(value) {+ if (typeof value === "number") return true;+ if (value instanceof Date) return true;+ if (value instanceof FluentType) return FluentDateTime.supportsValue(value.valueOf());+ if ("Temporal" in globalThis) {+ const _Temporal = globalThis.Temporal;+ if (value instanceof _Temporal.Instant || value instanceof _Temporal.PlainDateTime || value instanceof _Temporal.PlainDate || value instanceof _Temporal.PlainMonthDay || value instanceof _Temporal.PlainTime || value instanceof _Temporal.PlainYearMonth) {+ return true;+ }+ }+ return false;+ }+ constructor(value, opts = {}) {+ if (value instanceof FluentDateTime) {+ opts = {+ ...value.opts,+ ...opts+ };+ value = value.value;+ } else if (value instanceof FluentType) {+ value = value.valueOf();+ }+ if (typeof value === "object" && "calendarId" in value && opts.calendar === undefined) {+ opts = {+ ...opts,+ calendar: value.calendarId+ };+ }+ super(value);+ this.opts = opts;+ }+ [Symbol.toPrimitive](hint) {+ return hint === "string" ? this.toString() : this.toNumber();+ }+ toNumber() {+ const value = this.value;+ if (typeof value === "number") return value;+ if (value instanceof Date) return value.getTime();+ if ("epochMilliseconds" in value) {+ return value.epochMilliseconds;+ }+ if ("toZonedDateTime" in value) {+ return value.toZonedDateTime("UTC").epochMilliseconds;+ }+ throw new TypeError("Unwrapping a non-number value as a number");+ }+ toString(scope) {+ if (scope) {+ try {+ const dtf = scope.memoizeIntlObject(Intl.DateTimeFormat, this.opts);+ return dtf.format(this.value);+ } catch (err) {+ scope.reportError(err);+ }+ }+ if (typeof this.value === "number" || this.value instanceof Date) {+ return new Date(this.value).toISOString();+ }+ return this.value.toString();+ }+}+;// ./node_modules/@fluent/bundle/esm/resolver.js+++const MAX_PLACEABLES = 100;+const FSI = "\u2068";+const PDI = "\u2069";+function match(scope, selector, key) {+ if (key === selector) {+ return true;+ }+ if (key instanceof FluentNumber && selector instanceof FluentNumber && key.value === selector.value) {+ return true;+ }+ if (selector instanceof FluentNumber && typeof key === "string") {+ let category = scope.memoizeIntlObject(Intl.PluralRules, selector.opts).select(selector.value);+ if (key === category) {+ return true;+ }+ }+ return false;+}+function getDefault(scope, variants, star) {+ if (variants[star]) {+ return resolvePattern(scope, variants[star].value);+ }+ scope.reportError(new RangeError("No default"));+ return new FluentNone();+}+function getArguments(scope, args) {+ const positional = [];+ const named = Object.create(null);+ for (const arg of args) {+ if (arg.type === "narg") {+ named[arg.name] = resolveExpression(scope, arg.value);+ } else {+ positional.push(resolveExpression(scope, arg));+ }+ }+ return {+ positional,+ named+ };+}+function resolveExpression(scope, expr) {+ switch (expr.type) {+ case "str":+ return expr.value;+ case "num":+ return new FluentNumber(expr.value, {+ minimumFractionDigits: expr.precision+ });+ case "var":+ return resolveVariableReference(scope, expr);+ case "mesg":+ return resolveMessageReference(scope, expr);+ case "term":+ return resolveTermReference(scope, expr);+ case "func":+ return resolveFunctionReference(scope, expr);+ case "select":+ return resolveSelectExpression(scope, expr);+ default:+ return new FluentNone();+ }+}+function resolveVariableReference(scope, {+ name+}) {+ let arg;+ if (scope.params) {+ if (Object.prototype.hasOwnProperty.call(scope.params, name)) {+ arg = scope.params[name];+ } else {+ return new FluentNone(`$${name}`);+ }+ } else if (scope.args && Object.prototype.hasOwnProperty.call(scope.args, name)) {+ arg = scope.args[name];+ } else {+ scope.reportError(new ReferenceError(`Unknown variable: $${name}`));+ return new FluentNone(`$${name}`);+ }+ if (arg instanceof FluentType) {+ return arg;+ }+ switch (typeof arg) {+ case "string":+ return arg;+ case "number":+ return new FluentNumber(arg);+ case "object":+ if (FluentDateTime.supportsValue(arg)) {+ return new FluentDateTime(arg);+ }+ default:+ scope.reportError(new TypeError(`Variable type not supported: $${name}, ${typeof arg}`));+ return new FluentNone(`$${name}`);+ }+}+function resolveMessageReference(scope, {+ name,+ attr+}) {+ const message = scope.bundle._messages.get(name);+ if (!message) {+ scope.reportError(new ReferenceError(`Unknown message: ${name}`));+ return new FluentNone(name);+ }+ if (attr) {+ const attribute = message.attributes[attr];+ if (attribute) {+ return resolvePattern(scope, attribute);+ }+ scope.reportError(new ReferenceError(`Unknown attribute: ${attr}`));+ return new FluentNone(`${name}.${attr}`);+ }+ if (message.value) {+ return resolvePattern(scope, message.value);+ }+ scope.reportError(new ReferenceError(`No value: ${name}`));+ return new FluentNone(name);+}+function resolveTermReference(scope, {+ name,+ attr,+ args+}) {+ const id = `-${name}`;+ const term = scope.bundle._terms.get(id);+ if (!term) {+ scope.reportError(new ReferenceError(`Unknown term: ${id}`));+ return new FluentNone(id);+ }+ if (attr) {+ const attribute = term.attributes[attr];+ if (attribute) {+ scope.params = getArguments(scope, args).named;+ const resolved = resolvePattern(scope, attribute);+ scope.params = null;+ return resolved;+ }+ scope.reportError(new ReferenceError(`Unknown attribute: ${attr}`));+ return new FluentNone(`${id}.${attr}`);+ }+ scope.params = getArguments(scope, args).named;+ const resolved = resolvePattern(scope, term.value);+ scope.params = null;+ return resolved;+}+function resolveFunctionReference(scope, {+ name,+ args+}) {+ let func = scope.bundle._functions[name];+ if (!func) {+ scope.reportError(new ReferenceError(`Unknown function: ${name}()`));+ return new FluentNone(`${name}()`);+ }+ if (typeof func !== "function") {+ scope.reportError(new TypeError(`Function ${name}() is not callable`));+ return new FluentNone(`${name}()`);+ }+ try {+ let resolved = getArguments(scope, args);+ return func(resolved.positional, resolved.named);+ } catch (err) {+ scope.reportError(err);+ return new FluentNone(`${name}()`);+ }+}+function resolveSelectExpression(scope, {+ selector,+ variants,+ star+}) {+ let sel = resolveExpression(scope, selector);+ if (sel instanceof FluentNone) {+ return getDefault(scope, variants, star);+ }+ for (const variant of variants) {+ const key = resolveExpression(scope, variant.key);+ if (match(scope, sel, key)) {+ return resolvePattern(scope, variant.value);+ }+ }+ return getDefault(scope, variants, star);+}+function resolveComplexPattern(scope, ptn) {+ if (scope.dirty.has(ptn)) {+ scope.reportError(new RangeError("Cyclic reference"));+ return new FluentNone();+ }+ scope.dirty.add(ptn);+ const result = [];+ const useIsolating = scope.bundle._useIsolating && ptn.length > 1;+ for (const elem of ptn) {+ if (typeof elem === "string") {+ result.push(scope.bundle._transform(elem));+ continue;+ }+ scope.placeables++;+ if (scope.placeables > MAX_PLACEABLES) {+ scope.dirty.delete(ptn);+ throw new RangeError(`Too many placeables expanded: ${scope.placeables}, ` + `max allowed is ${MAX_PLACEABLES}`);+ }+ if (useIsolating) {+ result.push(FSI);+ }+ result.push(resolveExpression(scope, elem).toString(scope));+ if (useIsolating) {+ result.push(PDI);+ }+ }+ scope.dirty.delete(ptn);+ return result.join("");+}+function resolvePattern(scope, value) {+ if (typeof value === "string") {+ return scope.bundle._transform(value);+ }+ return resolveComplexPattern(scope, value);+}+;// ./node_modules/@fluent/bundle/esm/scope.js+++class Scope {+ constructor(bundle, errors, args) {+ this.dirty = new WeakSet();+ this.params = null;+ this.placeables = 0;+ this.bundle = bundle;+ this.errors = errors;+ this.args = args;+ }+ reportError(error) {+ if (!this.errors || !(error instanceof Error)) {+ throw error;+ }+ this.errors.push(error);+ }+ memoizeIntlObject(ctor, opts) {+ let cache = this.bundle._intls.get(ctor);+ if (!cache) {+ cache = {};+ this.bundle._intls.set(ctor, cache);+ }+ let id = JSON.stringify(opts);+ if (!cache[id]) {+ cache[id] = new ctor(this.bundle.locales, opts);+ }+ return cache[id];+ }+}+;// ./node_modules/@fluent/bundle/esm/builtins.js+++function values(opts, allowed) {+ const unwrapped = Object.create(null);+ for (const [name, opt] of Object.entries(opts)) {+ if (allowed.includes(name)) {+ unwrapped[name] = opt.valueOf();+ }+ }+ return unwrapped;+}+const NUMBER_ALLOWED = ["unitDisplay", "currencyDisplay", "useGrouping", "minimumIntegerDigits", "minimumFractionDigits", "maximumFractionDigits", "minimumSignificantDigits", "maximumSignificantDigits"];+function NUMBER(args, opts) {+ let arg = args[0];+ if (arg instanceof FluentNone) {+ return new FluentNone(`NUMBER(${arg.valueOf()})`);+ }+ if (arg instanceof FluentNumber) {+ return new FluentNumber(arg.valueOf(), {+ ...arg.opts,+ ...values(opts, NUMBER_ALLOWED)+ });+ }+ if (arg instanceof FluentDateTime) {+ return new FluentNumber(arg.toNumber(), {+ ...values(opts, NUMBER_ALLOWED)+ });+ }+ throw new TypeError("Invalid argument to NUMBER");+}+const DATETIME_ALLOWED = ["dateStyle", "timeStyle", "fractionalSecondDigits", "dayPeriod", "hour12", "weekday", "era", "year", "month", "day", "hour", "minute", "second", "timeZoneName"];+function DATETIME(args, opts) {+ let arg = args[0];+ if (arg instanceof FluentNone) {+ return new FluentNone(`DATETIME(${arg.valueOf()})`);+ }+ if (arg instanceof FluentDateTime || arg instanceof FluentNumber) {+ return new FluentDateTime(arg, values(opts, DATETIME_ALLOWED));+ }+ throw new TypeError("Invalid argument to DATETIME");+}+;// ./node_modules/@fluent/bundle/esm/memoizer.js+++const cache = new Map();+function getMemoizerForLocale(locales) {+ const stringLocale = Array.isArray(locales) ? locales.join(" ") : locales;+ let memoizer = cache.get(stringLocale);+ if (memoizer === undefined) {+ memoizer = new Map();+ cache.set(stringLocale, memoizer);+ }+ return memoizer;+}+;// ./node_modules/@fluent/bundle/esm/bundle.js+++++++++class FluentBundle {+ constructor(locales, {+ functions,+ useIsolating = true,+ transform = v => v+ } = {}) {+ this._terms = new Map();+ this._messages = new Map();+ this.locales = Array.isArray(locales) ? locales : [locales];+ this._functions = {+ NUMBER: NUMBER,+ DATETIME: DATETIME,+ ...functions+ };+ this._useIsolating = useIsolating;+ this._transform = transform;+ this._intls = getMemoizerForLocale(locales);+ }+ hasMessage(id) {+ return this._messages.has(id);+ }+ getMessage(id) {+ return this._messages.get(id);+ }+ addResource(res, {+ allowOverrides = false+ } = {}) {+ const errors = [];+ for (let i = 0; i < res.body.length; i++) {+ let entry = res.body[i];+ if (entry.id.startsWith("-")) {+ if (allowOverrides === false && this._terms.has(entry.id)) {+ errors.push(new Error(`Attempt to override an existing term: "${entry.id}"`));+ continue;+ }+ this._terms.set(entry.id, entry);+ } else {+ if (allowOverrides === false && this._messages.has(entry.id)) {+ errors.push(new Error(`Attempt to override an existing message: "${entry.id}"`));+ continue;+ }+ this._messages.set(entry.id, entry);+ }+ }+ return errors;+ }+ formatPattern(pattern, args = null, errors = null) {+ if (typeof pattern === "string") {+ return this._transform(pattern);+ }+ let scope = new Scope(this, errors, args);+ try {+ let value = resolveComplexPattern(scope, pattern);+ return value.toString(scope);+ } catch (err) {+ if (scope.errors && err instanceof Error) {+ scope.errors.push(err);+ return new FluentNone().toString(scope);+ }+ throw err;+ }+ }+}+;// ./node_modules/@fluent/bundle/esm/resource.js++const RE_MESSAGE_START = /^(-?[a-zA-Z][\w-]*) *= */gm;+const RE_ATTRIBUTE_START = /\.([a-zA-Z][\w-]*) *= */y;+const RE_VARIANT_START = /\*?\[/y;+const RE_NUMBER_LITERAL = /(-?[0-9]+(?:\.([0-9]+))?)/y;+const RE_IDENTIFIER = /([a-zA-Z][\w-]*)/y;+const RE_REFERENCE = /([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y;+const RE_FUNCTION_NAME = /^[A-Z][A-Z0-9_-]*$/;+const RE_TEXT_RUN = /([^{}\n\r]+)/y;+const RE_STRING_RUN = /([^\\"\n\r]*)/y;+const RE_STRING_ESCAPE = /\\([\\"])/y;+const RE_UNICODE_ESCAPE = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y;+const RE_LEADING_NEWLINES = /^\n+/;+const RE_TRAILING_SPACES = / +$/;+const RE_BLANK_LINES = / *\r?\n/g;+const RE_INDENT = /( *)$/;+const TOKEN_BRACE_OPEN = /{\s*/y;+const TOKEN_BRACE_CLOSE = /\s*}/y;+const TOKEN_BRACKET_OPEN = /\[\s*/y;+const TOKEN_BRACKET_CLOSE = /\s*] */y;+const TOKEN_PAREN_OPEN = /\s*\(\s*/y;+const TOKEN_ARROW = /\s*->\s*/y;+const TOKEN_COLON = /\s*:\s*/y;+const TOKEN_COMMA = /\s*,?\s*/y;+const TOKEN_BLANK = /\s+/y;+class FluentResource {+ constructor(source) {+ this.body = [];+ RE_MESSAGE_START.lastIndex = 0;+ let cursor = 0;+ while (true) {+ let next = RE_MESSAGE_START.exec(source);+ if (next === null) {+ break;+ }+ cursor = RE_MESSAGE_START.lastIndex;+ try {+ this.body.push(parseMessage(next[1]));+ } catch (err) {+ if (err instanceof SyntaxError) {+ continue;+ }+ throw err;+ }+ }+ function test(re) {+ re.lastIndex = cursor;+ return re.test(source);+ }+ function consumeChar(char, errorClass) {+ if (source[cursor] === char) {+ cursor++;+ return true;+ }+ if (errorClass) {+ throw new errorClass(`Expected ${char}`);+ }+ return false;+ }+ function consumeToken(re, errorClass) {+ if (test(re)) {+ cursor = re.lastIndex;+ return true;+ }+ if (errorClass) {+ throw new errorClass(`Expected ${re.toString()}`);+ }+ return false;+ }+ function match(re) {+ re.lastIndex = cursor;+ let result = re.exec(source);+ if (result === null) {+ throw new SyntaxError(`Expected ${re.toString()}`);+ }+ cursor = re.lastIndex;+ return result;+ }+ function match1(re) {+ return match(re)[1];+ }+ function parseMessage(id) {+ let value = parsePattern();+ let attributes = parseAttributes();+ if (value === null && Object.keys(attributes).length === 0) {+ throw new SyntaxError("Expected message value or attributes");+ }+ return {+ id,+ value,+ attributes+ };+ }+ function parseAttributes() {+ let attrs = Object.create(null);+ while (test(RE_ATTRIBUTE_START)) {+ let name = match1(RE_ATTRIBUTE_START);+ let value = parsePattern();+ if (value === null) {+ throw new SyntaxError("Expected attribute value");+ }+ attrs[name] = value;+ }+ return attrs;+ }+ function parsePattern() {+ let first;+ if (test(RE_TEXT_RUN)) {+ first = match1(RE_TEXT_RUN);+ }+ if (source[cursor] === "{" || source[cursor] === "}") {+ return parsePatternElements(first ? [first] : [], Infinity);+ }+ let indent = parseIndent();+ if (indent) {+ if (first) {+ return parsePatternElements([first, indent], indent.length);+ }+ indent.value = trim(indent.value, RE_LEADING_NEWLINES);+ return parsePatternElements([indent], indent.length);+ }+ if (first) {+ return trim(first, RE_TRAILING_SPACES);+ }+ return null;+ }+ function parsePatternElements(elements = [], commonIndent) {+ while (true) {+ if (test(RE_TEXT_RUN)) {+ elements.push(match1(RE_TEXT_RUN));+ continue;+ }+ if (source[cursor] === "{") {+ elements.push(parsePlaceable());+ continue;+ }+ if (source[cursor] === "}") {+ throw new SyntaxError("Unbalanced closing brace");+ }+ let indent = parseIndent();+ if (indent) {+ elements.push(indent);+ commonIndent = Math.min(commonIndent, indent.length);+ continue;+ }+ break;+ }+ let lastIndex = elements.length - 1;+ let lastElement = elements[lastIndex];+ if (typeof lastElement === "string") {+ elements[lastIndex] = trim(lastElement, RE_TRAILING_SPACES);+ }+ let baked = [];+ for (let element of elements) {+ if (element instanceof Indent) {+ element = element.value.slice(0, element.value.length - commonIndent);+ }+ if (element) {+ baked.push(element);+ }+ }+ return baked;+ }+ function parsePlaceable() {+ consumeToken(TOKEN_BRACE_OPEN, SyntaxError);+ let selector = parseInlineExpression();+ if (consumeToken(TOKEN_BRACE_CLOSE)) {+ return selector;+ }+ if (consumeToken(TOKEN_ARROW)) {+ let variants = parseVariants();+ consumeToken(TOKEN_BRACE_CLOSE, SyntaxError);+ return {+ type: "select",+ selector,+ ...variants+ };+ }+ throw new SyntaxError("Unclosed placeable");+ }+ function parseInlineExpression() {+ if (source[cursor] === "{") {+ return parsePlaceable();+ }+ if (test(RE_REFERENCE)) {+ let [, sigil, name, attr = null] = match(RE_REFERENCE);+ if (sigil === "$") {+ return {+ type: "var",+ name+ };+ }+ if (consumeToken(TOKEN_PAREN_OPEN)) {+ let args = parseArguments();+ if (sigil === "-") {+ return {+ type: "term",+ name,+ attr,+ args+ };+ }+ if (RE_FUNCTION_NAME.test(name)) {+ return {+ type: "func",+ name,+ args+ };+ }+ throw new SyntaxError("Function names must be all upper-case");+ }+ if (sigil === "-") {+ return {+ type: "term",+ name,+ attr,+ args: []+ };+ }+ return {+ type: "mesg",+ name,+ attr+ };+ }+ return parseLiteral();+ }+ function parseArguments() {+ let args = [];+ while (true) {+ switch (source[cursor]) {+ case ")":+ cursor++;+ return args;+ case undefined:+ throw new SyntaxError("Unclosed argument list");+ }+ args.push(parseArgument());+ consumeToken(TOKEN_COMMA);+ }+ }+ function parseArgument() {+ let expr = parseInlineExpression();+ if (expr.type !== "mesg") {+ return expr;+ }+ if (consumeToken(TOKEN_COLON)) {+ return {+ type: "narg",+ name: expr.name,+ value: parseLiteral()+ };+ }+ return expr;+ }+ function parseVariants() {+ let variants = [];+ let count = 0;+ let star;+ while (test(RE_VARIANT_START)) {+ if (consumeChar("*")) {+ star = count;+ }+ let key = parseVariantKey();+ let value = parsePattern();+ if (value === null) {+ throw new SyntaxError("Expected variant value");+ }+ variants[count++] = {+ key,+ value+ };+ }+ if (count === 0) {+ return null;+ }+ if (star === undefined) {+ throw new SyntaxError("Expected default variant");+ }+ return {+ variants,+ star+ };+ }+ function parseVariantKey() {+ consumeToken(TOKEN_BRACKET_OPEN, SyntaxError);+ let key;+ if (test(RE_NUMBER_LITERAL)) {+ key = parseNumberLiteral();+ } else {+ key = {+ type: "str",+ value: match1(RE_IDENTIFIER)+ };+ }+ consumeToken(TOKEN_BRACKET_CLOSE, SyntaxError);+ return key;+ }+ function parseLiteral() {+ if (test(RE_NUMBER_LITERAL)) {+ return parseNumberLiteral();+ }+ if (source[cursor] === '"') {+ return parseStringLiteral();+ }+ throw new SyntaxError("Invalid expression");+ }+ function parseNumberLiteral() {+ let [, value, fraction = ""] = match(RE_NUMBER_LITERAL);+ let precision = fraction.length;+ return {+ type: "num",+ value: parseFloat(value),+ precision+ };+ }+ function parseStringLiteral() {+ consumeChar('"', SyntaxError);+ let value = "";+ while (true) {+ value += match1(RE_STRING_RUN);+ if (source[cursor] === "\\") {+ value += parseEscapeSequence();+ continue;+ }+ if (consumeChar('"')) {+ return {+ type: "str",+ value+ };+ }+ throw new SyntaxError("Unclosed string literal");+ }+ }+ function parseEscapeSequence() {+ if (test(RE_STRING_ESCAPE)) {+ return match1(RE_STRING_ESCAPE);+ }+ if (test(RE_UNICODE_ESCAPE)) {+ let [, codepoint4, codepoint6] = match(RE_UNICODE_ESCAPE);+ let codepoint = parseInt(codepoint4 || codepoint6, 16);+ return codepoint <= 0xd7ff || 0xe000 <= codepoint ? String.fromCodePoint(codepoint) : "�";+ }+ throw new SyntaxError("Unknown escape sequence");+ }+ function parseIndent() {+ let start = cursor;+ consumeToken(TOKEN_BLANK);+ switch (source[cursor]) {+ case ".":+ case "[":+ case "*":+ case "}":+ case undefined:+ return false;+ case "{":+ return makeIndent(source.slice(start, cursor));+ }+ if (source[cursor - 1] === " ") {+ return makeIndent(source.slice(start, cursor));+ }+ return false;+ }+ function trim(text, re) {+ return text.replace(re, "");+ }+ function makeIndent(blank) {+ let value = blank.replace(RE_BLANK_LINES, "\n");+ let length = RE_INDENT.exec(blank)[1].length;+ return new Indent(value, length);+ }+ }+}+class Indent {+ constructor(value, length) {+ this.value = value;+ this.length = length;+ }+}+;// ./node_modules/@fluent/bundle/esm/index.js++++;// ./node_modules/@fluent/dom/esm/overlay.js++++const reOverlay = /<|&#?\w+;/;+const TEXT_LEVEL_ELEMENTS = {+ "http://www.w3.org/1999/xhtml": ["em", "strong", "small", "s", "cite", "q", "dfn", "abbr", "data", "time", "code", "var", "samp", "kbd", "sub", "sup", "i", "b", "u", "mark", "bdi", "bdo", "span", "br", "wbr"]+};+const LOCALIZABLE_ATTRIBUTES = {+ "http://www.w3.org/1999/xhtml": {+ global: ["title", "aria-description", "aria-label", "aria-valuetext"],+ a: ["download"],+ area: ["download", "alt"],+ input: ["alt", "placeholder"],+ menuitem: ["label"],+ menu: ["label"],+ optgroup: ["label"],+ option: ["label"],+ track: ["label"],+ img: ["alt"],+ textarea: ["placeholder"],+ th: ["abbr"]+ },+ "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul": {+ global: ["accesskey", "aria-label", "aria-valuetext", "label", "title", "tooltiptext"],+ description: ["value"],+ key: ["key", "keycode"],+ label: ["value"],+ textbox: ["placeholder", "value"]+ }+};+function translateElement(element, translation) {+ const {+ value+ } = translation;+ if (typeof value === "string") {+ if (element.localName === "title" && element.namespaceURI === "http://www.w3.org/1999/xhtml") {+ element.textContent = value;+ } else if (!reOverlay.test(value)) {+ element.textContent = value;+ } else {+ const templateElement = element.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml", "template");+ templateElement.innerHTML = value;+ overlayChildNodes(templateElement.content, element);+ }+ }+ overlayAttributes(translation, element);+}+function overlayChildNodes(fromFragment, toElement) {+ for (const childNode of fromFragment.childNodes) {+ if (childNode.nodeType === childNode.TEXT_NODE) {+ continue;+ }+ if (childNode.hasAttribute("data-l10n-name")) {+ const sanitized = getNodeForNamedElement(toElement, childNode);+ fromFragment.replaceChild(sanitized, childNode);+ continue;+ }+ if (isElementAllowed(childNode)) {+ const sanitized = createSanitizedElement(childNode);+ fromFragment.replaceChild(sanitized, childNode);+ continue;+ }+ console.warn(`An element of forbidden type "${childNode.localName}" was found in ` + "the translation. Only safe text-level elements and elements with " + "data-l10n-name are allowed.");+ fromFragment.replaceChild(createTextNodeFromTextContent(childNode), childNode);+ }+ toElement.textContent = "";+ toElement.appendChild(fromFragment);+}+function hasAttribute(attributes, name) {+ if (!attributes) {+ return false;+ }+ for (let attr of attributes) {+ if (attr.name === name) {+ return true;+ }+ }+ return false;+}+function overlayAttributes(fromElement, toElement) {+ const explicitlyAllowed = toElement.hasAttribute("data-l10n-attrs") ? toElement.getAttribute("data-l10n-attrs").split(",").map(i => i.trim()) : null;+ for (const attr of Array.from(toElement.attributes)) {+ if (isAttrNameLocalizable(attr.name, toElement, explicitlyAllowed) && !hasAttribute(fromElement.attributes, attr.name)) {+ toElement.removeAttribute(attr.name);+ }+ }+ if (!fromElement.attributes) {+ return;+ }+ for (const attr of Array.from(fromElement.attributes)) {+ if (isAttrNameLocalizable(attr.name, toElement, explicitlyAllowed) && toElement.getAttribute(attr.name) !== attr.value) {+ toElement.setAttribute(attr.name, attr.value);+ }+ }+}+function getNodeForNamedElement(sourceElement, translatedChild) {+ const childName = translatedChild.getAttribute("data-l10n-name");+ const sourceChild = sourceElement.querySelector(`[data-l10n-name="${childName}"]`);+ if (!sourceChild) {+ console.warn(`An element named "${childName}" wasn't found in the source.`);+ return createTextNodeFromTextContent(translatedChild);+ }+ if (sourceChild.localName !== translatedChild.localName) {+ console.warn(`An element named "${childName}" was found in the translation ` + `but its type ${translatedChild.localName} didn't match the ` + `element found in the source (${sourceChild.localName}).`);+ return createTextNodeFromTextContent(translatedChild);+ }+ sourceElement.removeChild(sourceChild);+ const clone = sourceChild.cloneNode(false);+ return shallowPopulateUsing(translatedChild, clone);+}+function createSanitizedElement(element) {+ const clone = element.ownerDocument.createElement(element.localName);+ return shallowPopulateUsing(element, clone);+}+function createTextNodeFromTextContent(element) {+ return element.ownerDocument.createTextNode(element.textContent);+}+function isElementAllowed(element) {+ const allowed = TEXT_LEVEL_ELEMENTS[element.namespaceURI];+ return allowed && allowed.includes(element.localName);+}+function isAttrNameLocalizable(name, element, explicitlyAllowed = null) {+ if (explicitlyAllowed && explicitlyAllowed.includes(name)) {+ return true;+ }+ const allowed = LOCALIZABLE_ATTRIBUTES[element.namespaceURI];+ if (!allowed) {+ return false;+ }+ const attrName = name.toLowerCase();+ const elemName = element.localName;+ if (allowed.global.includes(attrName)) {+ return true;+ }+ if (!allowed[elemName]) {+ return false;+ }+ if (allowed[elemName].includes(attrName)) {+ return true;+ }+ if (element.namespaceURI === "http://www.w3.org/1999/xhtml" && elemName === "input" && attrName === "value") {+ const type = element.type.toLowerCase();+ if (type === "submit" || type === "button" || type === "reset") {+ return true;+ }+ }+ return false;+}+function shallowPopulateUsing(fromElement, toElement) {+ toElement.textContent = fromElement.textContent;+ overlayAttributes(fromElement, toElement);+ return toElement;+}+;// ./node_modules/cached-iterable/src/cached_iterable.mjs+class CachedIterable extends Array {+ static from(iterable) {+ if (iterable instanceof this) {+ return iterable;+ }+ return new this(iterable);+ }+}+;// ./node_modules/cached-iterable/src/cached_sync_iterable.mjs+++class CachedSyncIterable extends CachedIterable {+ constructor(iterable) {+ super();+ if (Symbol.iterator in Object(iterable)) {+ this.iterator = iterable[Symbol.iterator]();+ } else {+ throw new TypeError("Argument must implement the iteration protocol.");+ }+ }+ [Symbol.iterator]() {+ const cached = this;+ let cur = 0;+ return {+ next() {+ if (cached.length <= cur) {+ cached.push(cached.iterator.next());+ }+ return cached[cur++];+ }+ };+ }+ touchNext(count = 1) {+ let idx = 0;+ while (idx++ < count) {+ const last = this[this.length - 1];+ if (last && last.done) {+ break;+ }+ this.push(this.iterator.next());+ }+ return this[this.length - 1];+ }+}+;// ./node_modules/cached-iterable/src/cached_async_iterable.mjs+++class CachedAsyncIterable extends CachedIterable {+ constructor(iterable) {+ super();+ if (Symbol.asyncIterator in Object(iterable)) {+ this.iterator = iterable[Symbol.asyncIterator]();+ } else if (Symbol.iterator in Object(iterable)) {+ this.iterator = iterable[Symbol.iterator]();+ } else {+ throw new TypeError("Argument must implement the iteration protocol.");+ }+ }+ [Symbol.asyncIterator]() {+ const cached = this;+ let cur = 0;+ return {+ async next() {+ if (cached.length <= cur) {+ cached.push(cached.iterator.next());+ }+ return cached[cur++];+ }+ };+ }+ async touchNext(count = 1) {+ let idx = 0;+ while (idx++ < count) {+ const last = this[this.length - 1];+ if (last && (await last).done) {+ break;+ }+ this.push(this.iterator.next());+ }+ return this[this.length - 1];+ }+}+;// ./node_modules/cached-iterable/src/index.mjs+++;// ./node_modules/@fluent/dom/esm/localization.js+++++++++++++++class Localization {+ constructor(resourceIds = [], generateBundles) {+ this.resourceIds = resourceIds;+ this.generateBundles = generateBundles;+ this.onChange(true);+ }+ addResourceIds(resourceIds, eager = false) {+ this.resourceIds.push(...resourceIds);+ this.onChange(eager);+ return this.resourceIds.length;+ }+ removeResourceIds(resourceIds) {+ this.resourceIds = this.resourceIds.filter(r => !resourceIds.includes(r));+ this.onChange();+ return this.resourceIds.length;+ }+ async formatWithFallback(keys, method) {+ const translations = [];+ let hasAtLeastOneBundle = false;+ for await (const bundle of this.bundles) {+ hasAtLeastOneBundle = true;+ const missingIds = keysFromBundle(method, bundle, keys, translations);+ if (missingIds.size === 0) {+ break;+ }+ if (typeof console !== "undefined") {+ const locale = bundle.locales[0];+ const ids = Array.from(missingIds).join(", ");+ console.warn(`[fluent] Missing translations in ${locale}: ${ids}`);+ }+ }+ if (!hasAtLeastOneBundle && typeof console !== "undefined") {+ console.warn(`[fluent] Request for keys failed because no resource bundles got generated.+ keys: ${JSON.stringify(keys)}.+ resourceIds: ${JSON.stringify(this.resourceIds)}.`);+ }+ return translations;+ }+ formatMessages(keys) {+ return this.formatWithFallback(keys, messageFromBundle);+ }+ formatValues(keys) {+ return this.formatWithFallback(keys, valueFromBundle);+ }+ async formatValue(id, args) {+ const [val] = await this.formatValues([{+ id,+ args+ }]);+ return val;+ }+ handleEvent() {+ this.onChange();+ }+ onChange(eager = false) {+ this.bundles = CachedAsyncIterable.from(this.generateBundles(this.resourceIds));+ if (eager) {+ this.bundles.touchNext(2);+ }+ }+}+function valueFromBundle(bundle, errors, message, args) {+ if (message.value) {+ return bundle.formatPattern(message.value, args, errors);+ }+ return null;+}+function messageFromBundle(bundle, errors, message, args) {+ const formatted = {+ value: null,+ attributes: null+ };+ if (message.value) {+ formatted.value = bundle.formatPattern(message.value, args, errors);+ }+ let attrNames = Object.keys(message.attributes);+ if (attrNames.length > 0) {+ formatted.attributes = new Array(attrNames.length);+ for (let [i, name] of attrNames.entries()) {+ let value = bundle.formatPattern(message.attributes[name], args, errors);+ formatted.attributes[i] = {+ name,+ value+ };+ }+ }+ return formatted;+}+function keysFromBundle(method, bundle, keys, translations) {+ const messageErrors = [];+ const missingIds = new Set();+ keys.forEach(({+ id,+ args+ }, i) => {+ if (translations[i] !== undefined) {+ return;+ }+ let message = bundle.getMessage(id);+ if (message) {+ messageErrors.length = 0;+ translations[i] = method(bundle, messageErrors, message, args);+ if (messageErrors.length > 0 && typeof console !== "undefined") {+ const locale = bundle.locales[0];+ const errors = messageErrors.join(", ");+ console.warn(`[fluent][resolver] errors in ${locale}/${id}: ${errors}.`);+ }+ } else {+ missingIds.add(id);+ }+ });+ return missingIds;+}+;// ./node_modules/@fluent/dom/esm/dom_localization.js+++++++++++++++const L10NID_ATTR_NAME = "data-l10n-id";+const L10NARGS_ATTR_NAME = "data-l10n-args";+const L10N_ELEMENT_QUERY = `[${L10NID_ATTR_NAME}]`;+class DOMLocalization extends Localization {+ constructor(resourceIds, generateBundles) {+ super(resourceIds, generateBundles);+ this.roots = new Set();+ this.pendingrAF = null;+ this.pendingElements = new Set();+ this.windowElement = null;+ this.mutationObserver = null;+ this.observerConfig = {+ attributes: true,+ characterData: false,+ childList: true,+ subtree: true,+ attributeFilter: [L10NID_ATTR_NAME, L10NARGS_ATTR_NAME]+ };+ }+ onChange(eager = false) {+ super.onChange(eager);+ if (this.roots) {+ this.translateRoots();+ }+ }+ setAttributes(element, id, args) {+ element.setAttribute(L10NID_ATTR_NAME, id);+ if (args) {+ element.setAttribute(L10NARGS_ATTR_NAME, JSON.stringify(args));+ } else {+ element.removeAttribute(L10NARGS_ATTR_NAME);+ }+ return element;+ }+ getAttributes(element) {+ return {+ id: element.getAttribute(L10NID_ATTR_NAME),+ args: JSON.parse(element.getAttribute(L10NARGS_ATTR_NAME) || null)+ };+ }+ connectRoot(newRoot) {+ for (const root of this.roots) {+ if (root === newRoot || root.contains(newRoot) || newRoot.contains(root)) {+ throw new Error("Cannot add a root that overlaps with existing root.");+ }+ }+ if (this.windowElement) {+ if (this.windowElement !== newRoot.ownerDocument.defaultView) {+ throw new Error(`Cannot connect a root:+ DOMLocalization already has a root from a different window.`);+ }+ } else {+ this.windowElement = newRoot.ownerDocument.defaultView;+ this.mutationObserver = new this.windowElement.MutationObserver(mutations => this.translateMutations(mutations));+ }+ this.roots.add(newRoot);+ this.mutationObserver.observe(newRoot, this.observerConfig);+ }+ disconnectRoot(root) {+ this.roots.delete(root);+ this.pauseObserving();+ if (this.roots.size === 0) {+ this.mutationObserver = null;+ if (this.windowElement && this.pendingrAF) {+ this.windowElement.cancelAnimationFrame(this.pendingrAF);+ }+ this.windowElement = null;+ this.pendingrAF = null;+ this.pendingElements.clear();+ return true;+ }+ this.resumeObserving();+ return false;+ }+ translateRoots() {+ const roots = Array.from(this.roots);+ return Promise.all(roots.map(root => this.translateFragment(root)));+ }+ pauseObserving() {+ if (!this.mutationObserver) {+ return;+ }+ this.translateMutations(this.mutationObserver.takeRecords());+ this.mutationObserver.disconnect();+ }+ resumeObserving() {+ if (!this.mutationObserver) {+ return;+ }+ for (const root of this.roots) {+ this.mutationObserver.observe(root, this.observerConfig);+ }+ }+ translateMutations(mutations) {+ for (const mutation of mutations) {+ switch (mutation.type) {+ case "attributes":+ if (mutation.target.hasAttribute("data-l10n-id")) {+ this.pendingElements.add(mutation.target);+ }+ break;+ case "childList":+ for (const addedNode of mutation.addedNodes) {+ if (addedNode.nodeType === addedNode.ELEMENT_NODE) {+ if (addedNode.childElementCount) {+ for (const element of this.getTranslatables(addedNode)) {+ this.pendingElements.add(element);+ }+ } else if (addedNode.hasAttribute(L10NID_ATTR_NAME)) {+ this.pendingElements.add(addedNode);+ }+ }+ }+ break;+ }+ }+ if (this.pendingElements.size > 0) {+ if (this.pendingrAF === null) {+ this.pendingrAF = this.windowElement.requestAnimationFrame(() => {+ this.translateElements(Array.from(this.pendingElements));+ this.pendingElements.clear();+ this.pendingrAF = null;+ });+ }+ }+ }+ translateFragment(frag) {+ return this.translateElements(this.getTranslatables(frag));+ }+ async translateElements(elements) {+ if (!elements.length) {+ return undefined;+ }+ const keys = elements.map(this.getKeysForElement);+ const translations = await this.formatMessages(keys);+ return this.applyTranslations(elements, translations);+ }+ applyTranslations(elements, translations) {+ this.pauseObserving();+ for (let i = 0; i < elements.length; i++) {+ if (translations[i] !== undefined) {+ translateElement(elements[i], translations[i]);+ }+ }+ this.resumeObserving();+ }+ getTranslatables(element) {+ const nodes = Array.from(element.querySelectorAll(L10N_ELEMENT_QUERY));+ if (typeof element.hasAttribute === "function" && element.hasAttribute(L10NID_ATTR_NAME)) {+ nodes.push(element);+ }+ return nodes;+ }+ getKeysForElement(element) {+ return {+ id: element.getAttribute(L10NID_ATTR_NAME),+ args: JSON.parse(element.getAttribute(L10NARGS_ATTR_NAME) || null)+ };+ }+}+;// ./node_modules/@fluent/dom/esm/index.js+++;// ./web/l10n.js+++++++++++class L10n {+ #dir;+ #elements;+ #lang;+ #l10n;+ constructor({+ lang,+ isRTL+ }, l10n = null) {+ this.#lang = L10n.#fixupLangCode(lang);+ this.#l10n = l10n;+ this.#dir = isRTL ?? L10n.#isRTL(this.#lang) ? "rtl" : "ltr";+ }+ _setL10n(l10n) {+ this.#l10n = l10n;+ }+ getLanguage() {+ return this.#lang;+ }+ getDirection() {+ return this.#dir;+ }+ async get(ids, args = null, fallback) {+ if (Array.isArray(ids)) {+ ids = ids.map(id => ({+ id+ }));+ const messages = await this.#l10n.formatMessages(ids);+ return messages.map(message => message.value);+ }+ const messages = await this.#l10n.formatMessages([{+ id: ids,+ args+ }]);+ return messages[0]?.value || fallback;+ }+ async translate(element) {+ (this.#elements ||= new Set()).add(element);+ try {+ this.#l10n.connectRoot(element);+ await this.#l10n.translateRoots();+ } catch {}+ }+ async translateOnce(element) {+ try {+ await this.#l10n.translateElements([element]);+ } catch (ex) {+ console.error("translateOnce:", ex);+ }+ }+ async destroy() {+ if (this.#elements) {+ for (const element of this.#elements) {+ this.#l10n.disconnectRoot(element);+ }+ this.#elements.clear();+ this.#elements = null;+ }+ this.#l10n.pauseObserving();+ }+ pause() {+ this.#l10n.pauseObserving();+ }+ resume() {+ this.#l10n.resumeObserving();+ }+ static #fixupLangCode(langCode) {+ langCode = langCode?.toLowerCase() || "en-us";+ const PARTIAL_LANG_CODES = {+ en: "en-us",+ es: "es-es",+ fy: "fy-nl",+ ga: "ga-ie",+ gu: "gu-in",+ hi: "hi-in",+ hy: "hy-am",+ nb: "nb-no",+ ne: "ne-np",+ nn: "nn-no",+ pa: "pa-in",+ pt: "pt-pt",+ sv: "sv-se",+ zh: "zh-cn"+ };+ return PARTIAL_LANG_CODES[langCode] || langCode;+ }+ static #isRTL(lang) {+ const shortCode = lang.split("-", 1)[0];+ return ["ar", "he", "fa", "ps", "ur"].includes(shortCode);+ }+}+const GenericL10n = null;++;// ./web/genericl10n.js++++++function PLATFORM() {+ const {+ isAndroid,+ isLinux,+ isMac,+ isWindows+ } = FeatureTest.platform;+ if (isLinux) {+ return "linux";+ }+ if (isWindows) {+ return "windows";+ }+ if (isMac) {+ return "macos";+ }+ if (isAndroid) {+ return "android";+ }+ return "other";+}+function createBundle(lang, text) {+ const resource = new FluentResource(text);+ const bundle = new FluentBundle(lang, {+ functions: {+ PLATFORM+ }+ });+ const errors = bundle.addResource(resource);+ if (errors.length) {+ console.error("L10n errors", errors);+ }+ return bundle;+}+class genericl10n_GenericL10n extends L10n {+ constructor(lang) {+ super({+ lang+ });+ const generateBundles = !lang ? genericl10n_GenericL10n.#generateBundlesFallback.bind(genericl10n_GenericL10n, this.getLanguage()) : genericl10n_GenericL10n.#generateBundles.bind(genericl10n_GenericL10n, "en-us", this.getLanguage());+ this._setL10n(new DOMLocalization([], generateBundles));+ }+ static async *#generateBundles(defaultLang, baseLang) {+ const {+ baseURL,+ paths+ } = await this.#getPaths();+ const langs = [baseLang];+ if (defaultLang !== baseLang) {+ const shortLang = baseLang.split("-", 1)[0];+ if (shortLang !== baseLang) {+ langs.push(shortLang);+ }+ langs.push(defaultLang);+ }+ const bundles = langs.map(lang => [lang, this.#createBundle(lang, baseURL, paths)]);+ for (const [lang, bundlePromise] of bundles) {+ const bundle = await bundlePromise;+ if (bundle) {+ yield bundle;+ } else if (lang === "en-us") {+ yield this.#createBundleFallback(lang);+ }+ }+ }+ static async #createBundle(lang, baseURL, paths) {+ const path = paths[lang];+ if (!path) {+ return null;+ }+ const url = new URL(path, baseURL);+ const text = await fetchData(url, "text");+ return createBundle(lang, text);+ }+ static async #getPaths() {+ try {+ const {+ href+ } = document.querySelector(`link[type="application/l10n"]`);+ const paths = await fetchData(href, "json");+ return {+ baseURL: href.substring(0, href.lastIndexOf("/") + 1) || "./",+ paths+ };+ } catch {}+ return {+ baseURL: "./",+ paths: Object.create(null)+ };+ }+ static async *#generateBundlesFallback(lang) {+ yield this.#createBundleFallback(lang);+ }+ static async #createBundleFallback(lang) {+ const text = "pdfjs-previous-button =\n .title = Previous Page\npdfjs-previous-button-label = Previous\npdfjs-next-button =\n .title = Next Page\npdfjs-next-button-label = Next\npdfjs-page-input =\n .title = Page\npdfjs-of-pages = of { $pagesCount }\npdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount })\npdfjs-zoom-out-button =\n .title = Zoom Out\npdfjs-zoom-out-button-label = Zoom Out\npdfjs-zoom-in-button =\n .title = Zoom In\npdfjs-zoom-in-button-label = Zoom In\npdfjs-zoom-select =\n .title = Zoom\npdfjs-presentation-mode-button =\n .title = Switch to Presentation Mode\npdfjs-presentation-mode-button-label = Presentation Mode\npdfjs-open-file-button =\n .title = Open File\npdfjs-open-file-button-label = Open\npdfjs-print-button =\n .title = Print\npdfjs-print-button-label = Print\npdfjs-save-button =\n .title = Save\npdfjs-save-button-label = Save\npdfjs-download-button =\n .title = Download\npdfjs-download-button-label = Download\npdfjs-bookmark-button =\n .title = Current Page (View URL from Current Page)\npdfjs-bookmark-button-label = Current Page\npdfjs-tools-button =\n .title = Tools\npdfjs-tools-button-label = Tools\npdfjs-first-page-button =\n .title = Go to First Page\npdfjs-first-page-button-label = Go to First Page\npdfjs-last-page-button =\n .title = Go to Last Page\npdfjs-last-page-button-label = Go to Last Page\npdfjs-page-rotate-cw-button =\n .title = Rotate Clockwise\npdfjs-page-rotate-cw-button-label = Rotate Clockwise\npdfjs-page-rotate-ccw-button =\n .title = Rotate Counterclockwise\npdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise\npdfjs-cursor-text-select-tool-button =\n .title = Enable Text Selection Tool\npdfjs-cursor-text-select-tool-button-label = Text Selection Tool\npdfjs-cursor-hand-tool-button =\n .title = Enable Hand Tool\npdfjs-cursor-hand-tool-button-label = Hand Tool\npdfjs-scroll-page-button =\n .title = Use Page Scrolling\npdfjs-scroll-page-button-label = Page Scrolling\npdfjs-scroll-vertical-button =\n .title = Use Vertical Scrolling\npdfjs-scroll-vertical-button-label = Vertical Scrolling\npdfjs-scroll-horizontal-button =\n .title = Use Horizontal Scrolling\npdfjs-scroll-horizontal-button-label = Horizontal Scrolling\npdfjs-scroll-wrapped-button =\n .title = Use Wrapped Scrolling\npdfjs-scroll-wrapped-button-label = Wrapped Scrolling\npdfjs-spread-none-button =\n .title = Do not join page spreads\npdfjs-spread-none-button-label = No Spreads\npdfjs-spread-odd-button =\n .title = Join page spreads starting with odd-numbered pages\npdfjs-spread-odd-button-label = Odd Spreads\npdfjs-spread-even-button =\n .title = Join page spreads starting with even-numbered pages\npdfjs-spread-even-button-label = Even Spreads\npdfjs-document-properties-button =\n .title = Document Properties…\npdfjs-document-properties-button-label = Document Properties…\npdfjs-document-properties-file-name = File name:\npdfjs-document-properties-file-size = File size:\npdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes)\npdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)\npdfjs-document-properties-title = Title:\npdfjs-document-properties-author = Author:\npdfjs-document-properties-subject = Subject:\npdfjs-document-properties-keywords = Keywords:\npdfjs-document-properties-creation-date = Creation Date:\npdfjs-document-properties-modification-date = Modification Date:\npdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: \"short\", timeStyle: \"medium\") }\npdfjs-document-properties-creator = Creator:\npdfjs-document-properties-producer = PDF Producer:\npdfjs-document-properties-version = PDF Version:\npdfjs-document-properties-page-count = Page Count:\npdfjs-document-properties-page-size = Page Size:\npdfjs-document-properties-page-size-unit-inches = in\npdfjs-document-properties-page-size-unit-millimeters = mm\npdfjs-document-properties-page-size-orientation-portrait = portrait\npdfjs-document-properties-page-size-orientation-landscape = landscape\npdfjs-document-properties-page-size-name-a-three = A3\npdfjs-document-properties-page-size-name-a-four = A4\npdfjs-document-properties-page-size-name-letter = Letter\npdfjs-document-properties-page-size-name-legal = Legal\npdfjs-document-properties-page-size-dimension-string = { $width } × { $height } { $unit } ({ $orientation })\npdfjs-document-properties-page-size-dimension-name-string = { $width } × { $height } { $unit } ({ $name }, { $orientation })\npdfjs-document-properties-linearized = Fast Web View:\npdfjs-document-properties-linearized-yes = Yes\npdfjs-document-properties-linearized-no = No\npdfjs-document-properties-close-button = Close\npdfjs-print-progress-message = Preparing document for printing…\npdfjs-print-progress-percent = { $progress }%\npdfjs-print-progress-close-button = Cancel\npdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser.\npdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing.\npdfjs-current-outline-item-button =\n .title = Find Current Outline Item\npdfjs-current-outline-item-button-label = Current Outline Item\npdfjs-findbar-button =\n .title = Find in Document\npdfjs-findbar-button-label = Find\npdfjs-additional-layers = Additional Layers\npdfjs-thumb-page-title1 =\n .title = Page { $page } of { $total }\npdfjs-thumb-page-canvas =\n .aria-label = Thumbnail of Page { $page }\npdfjs-thumb-page-checkbox1 =\n .title = Select page { $page }\npdfjs-find-input =\n .title = Find\n .placeholder = Find in document…\npdfjs-find-previous-button =\n .title = Find the previous occurrence of the phrase\npdfjs-find-previous-button-label = Previous\npdfjs-find-next-button =\n .title = Find the next occurrence of the phrase\npdfjs-find-next-button-label = Next\npdfjs-find-highlight-checkbox = Highlight All\npdfjs-find-match-case-checkbox-label = Match Case\npdfjs-find-match-diacritics-checkbox-label = Match Diacritics\npdfjs-find-entire-word-checkbox-label = Whole Words\npdfjs-find-reached-top = Reached top of document, continued from bottom\npdfjs-find-reached-bottom = Reached end of document, continued from top\npdfjs-find-match-count =\n { $total ->\n [one] { $current } of { $total } match\n *[other] { $current } of { $total } matches\n }\npdfjs-find-match-count-limit =\n { $limit ->\n [one] More than { $limit } match\n *[other] More than { $limit } matches\n }\npdfjs-find-not-found = Phrase not found\npdfjs-page-scale-width = Page Width\npdfjs-page-scale-fit = Page Fit\npdfjs-page-scale-auto = Automatic Zoom\npdfjs-page-scale-actual = Actual Size\npdfjs-page-scale-percent = { $scale }%\npdfjs-page-landmark =\n .aria-label = Page { $page }\npdfjs-loading-error = An error occurred while loading the PDF.\npdfjs-invalid-file-error = Invalid or corrupted PDF file.\npdfjs-missing-file-error = Missing PDF file.\npdfjs-unexpected-response-error = Unexpected server response.\npdfjs-rendering-error = An error occurred while rendering the page.\npdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: \"short\", timeStyle: \"medium\") }\npdfjs-text-annotation-type =\n .alt = [{ $type } Annotation]\npdfjs-password-label = Enter the password to open this PDF file.\npdfjs-password-invalid = Invalid password. Please try again.\npdfjs-password-ok-button = OK\npdfjs-password-cancel-button = Cancel\npdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts.\npdfjs-editor-free-text-button =\n .title = Text\npdfjs-editor-color-picker-free-text-input =\n .title = Change text color\npdfjs-editor-free-text-button-label = Text\npdfjs-editor-ink-button =\n .title = Draw\npdfjs-editor-color-picker-ink-input =\n .title = Change drawing color\npdfjs-editor-ink-button-label = Draw\npdfjs-editor-stamp-button =\n .title = Add or edit images\npdfjs-editor-stamp-button-label = Add or edit images\npdfjs-editor-highlight-button =\n .title = Highlight\npdfjs-editor-highlight-button-label = Highlight\npdfjs-highlight-floating-button1 =\n .title = Highlight\n .aria-label = Highlight\npdfjs-highlight-floating-button-label = Highlight\npdfjs-comment-floating-button =\n .title = Comment\n .aria-label = Comment\npdfjs-comment-floating-button-label = Comment\npdfjs-editor-comment-button =\n .title = Comment\n .aria-label = Comment\npdfjs-editor-comment-button-label = Comment\npdfjs-editor-signature-button =\n .title = Add signature\npdfjs-editor-signature-button-label = Add signature\npdfjs-editor-highlight-editor =\n .aria-label = Highlight editor\npdfjs-editor-ink-editor =\n .aria-label = Drawing editor\npdfjs-editor-signature-editor1 =\n .aria-description = Signature editor: { $description }\npdfjs-editor-stamp-editor =\n .aria-label = Image editor\npdfjs-editor-remove-ink-button =\n .title = Remove drawing\npdfjs-editor-remove-freetext-button =\n .title = Remove text\npdfjs-editor-remove-stamp-button =\n .title = Remove image\npdfjs-editor-remove-highlight-button =\n .title = Remove highlight\npdfjs-editor-remove-signature-button =\n .title = Remove signature\npdfjs-editor-free-text-color-input = Color\npdfjs-editor-free-text-size-input = Size\npdfjs-editor-ink-color-input = Color\npdfjs-editor-ink-thickness-input = Thickness\npdfjs-editor-ink-opacity-input = Opacity\npdfjs-editor-stamp-add-image-button =\n .title = Add image\npdfjs-editor-stamp-add-image-button-label = Add image\npdfjs-editor-free-highlight-thickness-input = Thickness\npdfjs-editor-free-highlight-thickness-title =\n .title = Change thickness when highlighting items other than text\npdfjs-editor-add-signature-container =\n .aria-label = Signature controls and saved signatures\npdfjs-editor-signature-add-signature-button =\n .title = Add new signature\npdfjs-editor-signature-add-signature-button-label = Add new signature\npdfjs-editor-add-saved-signature-button =\n .title = Saved signature: { $description }\npdfjs-free-text2 =\n .aria-label = Text Editor\n .default-content = Start typing…\npdfjs-editor-comments-sidebar-title =\n { $count ->\n [one] Comment\n *[other] Comments\n }\npdfjs-editor-comments-sidebar-close-button =\n .title = Close the sidebar\n .aria-label = Close the sidebar\npdfjs-editor-comments-sidebar-close-button-label = Close the sidebar\npdfjs-editor-comments-sidebar-no-comments1 = See something noteworthy? Highlight it and leave a comment.\npdfjs-editor-comments-sidebar-no-comments-link = Learn more\npdfjs-editor-alt-text-button =\n .aria-label = Alt text\npdfjs-editor-alt-text-button-label = Alt text\npdfjs-editor-alt-text-edit-button =\n .aria-label = Edit alt text\npdfjs-editor-alt-text-dialog-label = Choose an option\npdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.\npdfjs-editor-alt-text-add-description-label = Add a description\npdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions.\npdfjs-editor-alt-text-mark-decorative-label = Mark as decorative\npdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks.\npdfjs-editor-alt-text-cancel-button = Cancel\npdfjs-editor-alt-text-save-button = Save\npdfjs-editor-alt-text-decorative-tooltip = Marked as decorative\npdfjs-editor-alt-text-textarea =\n .placeholder = For example, “A young man sits down at a table to eat a meal”\npdfjs-editor-resizer-top-left =\n .aria-label = Top left corner — resize\npdfjs-editor-resizer-top-middle =\n .aria-label = Top middle — resize\npdfjs-editor-resizer-top-right =\n .aria-label = Top right corner — resize\npdfjs-editor-resizer-middle-right =\n .aria-label = Middle right — resize\npdfjs-editor-resizer-bottom-right =\n .aria-label = Bottom right corner — resize\npdfjs-editor-resizer-bottom-middle =\n .aria-label = Bottom middle — resize\npdfjs-editor-resizer-bottom-left =\n .aria-label = Bottom left corner — resize\npdfjs-editor-resizer-middle-left =\n .aria-label = Middle left — resize\npdfjs-editor-highlight-colorpicker-label = Highlight color\npdfjs-editor-colorpicker-button =\n .title = Change color\npdfjs-editor-colorpicker-dropdown =\n .aria-label = Color choices\npdfjs-editor-colorpicker-yellow =\n .title = Yellow\npdfjs-editor-colorpicker-green =\n .title = Green\npdfjs-editor-colorpicker-blue =\n .title = Blue\npdfjs-editor-colorpicker-pink =\n .title = Pink\npdfjs-editor-colorpicker-red =\n .title = Red\npdfjs-editor-highlight-show-all-button-label = Show all\npdfjs-editor-highlight-show-all-button =\n .title = Show all\npdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description)\npdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description)\npdfjs-editor-new-alt-text-textarea =\n .placeholder = Write your description here…\npdfjs-editor-new-alt-text-description = Short description for people who can’t see the image or when the image doesn’t load.\npdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate.\npdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more\npdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically\npdfjs-editor-new-alt-text-not-now-button = Not now\npdfjs-editor-new-alt-text-error-title = Couldn’t create alt text automatically\npdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later.\npdfjs-editor-new-alt-text-error-close-button = Close\npdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)\n .aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)\npdfjs-editor-new-alt-text-added-button =\n .aria-label = Alt text added\npdfjs-editor-new-alt-text-added-button-label = Alt text added\npdfjs-editor-new-alt-text-missing-button =\n .aria-label = Missing alt text\npdfjs-editor-new-alt-text-missing-button-label = Missing alt text\npdfjs-editor-new-alt-text-to-review-button =\n .aria-label = Review alt text\npdfjs-editor-new-alt-text-to-review-button-label = Review alt text\npdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText }\npdfjs-image-alt-text-settings-button =\n .title = Image alt text settings\npdfjs-image-alt-text-settings-button-label = Image alt text settings\npdfjs-editor-alt-text-settings-dialog-label = Image alt text settings\npdfjs-editor-alt-text-settings-automatic-title = Automatic alt text\npdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically\npdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who can’t see the image or when the image doesn’t load.\npdfjs-editor-alt-text-settings-editor-title = Alt text editor\npdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image\npdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text.\npdfjs-editor-alt-text-settings-close-button = Close\npdfjs-editor-highlight-added-alert = Highlight added\npdfjs-editor-freetext-added-alert = Text added\npdfjs-editor-ink-added-alert = Drawing added\npdfjs-editor-stamp-added-alert = Image added\npdfjs-editor-signature-added-alert = Signature added\npdfjs-editor-undo-bar-message-highlight = Highlight removed\npdfjs-editor-undo-bar-message-freetext = Text removed\npdfjs-editor-undo-bar-message-ink = Drawing removed\npdfjs-editor-undo-bar-message-stamp = Image removed\npdfjs-editor-undo-bar-message-signature = Signature removed\npdfjs-editor-undo-bar-message-comment = Comment removed\npdfjs-editor-undo-bar-message-multiple =\n { $count ->\n [one] { $count } annotation removed\n *[other] { $count } annotations removed\n }\npdfjs-editor-undo-bar-undo-button =\n .title = Undo\npdfjs-editor-undo-bar-undo-button-label = Undo\npdfjs-editor-undo-bar-close-button =\n .title = Close\npdfjs-editor-undo-bar-close-button-label = Close\npdfjs-editor-add-signature-dialog-label = This modal allows the user to create a signature to add to a PDF document. The user can edit the name (which also serves as the alt text), and optionally save the signature for repeated use.\npdfjs-editor-add-signature-dialog-title = Add a signature\npdfjs-editor-add-signature-type-button = Type\n .title = Type\npdfjs-editor-add-signature-draw-button = Draw\n .title = Draw\npdfjs-editor-add-signature-image-button = Image\n .title = Image\npdfjs-editor-add-signature-type-input =\n .aria-label = Type your signature\n .placeholder = Type your signature\npdfjs-editor-add-signature-draw-placeholder = Draw your signature\npdfjs-editor-add-signature-draw-thickness-range-label = Thickness\npdfjs-editor-add-signature-draw-thickness-range =\n .title = Drawing thickness: { $thickness }\npdfjs-editor-add-signature-image-placeholder = Drag a file here to upload\npdfjs-editor-add-signature-image-browse-link =\n { PLATFORM() ->\n [macos] Or choose image files\n *[other] Or browse image files\n }\npdfjs-editor-add-signature-description-label = Description (alt text)\npdfjs-editor-add-signature-description-input =\n .title = Description (alt text)\npdfjs-editor-add-signature-description-default-when-drawing = Signature\npdfjs-editor-add-signature-clear-button-label = Clear signature\npdfjs-editor-add-signature-clear-button =\n .title = Clear signature\npdfjs-editor-add-signature-save-checkbox = Save signature\npdfjs-editor-add-signature-save-warning-message = You’ve reached the limit of 5 saved signatures. Remove one to save more.\npdfjs-editor-add-signature-image-upload-error-title = Couldn’t upload image\npdfjs-editor-add-signature-image-upload-error-description = Check your network connection or try another image.\npdfjs-editor-add-signature-image-no-data-error-title = Can’t convert this image into a signature\npdfjs-editor-add-signature-image-no-data-error-description = Please try uploading a different image.\npdfjs-editor-add-signature-error-close-button = Close\npdfjs-editor-add-signature-cancel-button = Cancel\npdfjs-editor-add-signature-add-button = Add\npdfjs-editor-delete-signature-button1 =\n .title = Remove saved signature\npdfjs-editor-delete-signature-button-label1 = Remove saved signature\npdfjs-editor-add-signature-edit-button-label = Edit description\npdfjs-editor-edit-signature-dialog-title = Edit description\npdfjs-editor-edit-signature-update-button = Update\npdfjs-show-comment-button =\n .title = Show comment\npdfjs-editor-edit-comment-popup-button-label = Edit comment\npdfjs-editor-edit-comment-popup-button =\n .title = Edit comment\npdfjs-editor-delete-comment-popup-button-label = Remove comment\npdfjs-editor-delete-comment-popup-button =\n .title = Remove comment\npdfjs-editor-edit-comment-dialog-title-when-editing = Edit comment\npdfjs-editor-edit-comment-dialog-save-button-when-editing = Update\npdfjs-editor-edit-comment-dialog-title-when-adding = Add comment\npdfjs-editor-edit-comment-dialog-save-button-when-adding = Add\npdfjs-editor-edit-comment-dialog-text-input =\n .placeholder = Start typing…\npdfjs-editor-edit-comment-dialog-cancel-button = Cancel\npdfjs-editor-add-comment-button =\n .title = Add comment\npdfjs-toggle-views-manager-button1 =\n .title = Manage pages\npdfjs-toggle-views-manager-notification-button =\n .title = Toggle Sidebar (document contains thumbnails/outline/attachments/layers)\npdfjs-toggle-views-manager-button1-label = Manage pages\npdfjs-views-manager-sidebar =\n .aria-label = Sidebar\npdfjs-views-manager-sidebar-resizer =\n .aria-label = Sidebar resizer\npdfjs-views-manager-view-selector-button =\n .title = Views\npdfjs-views-manager-view-selector-button-label = Views\npdfjs-views-manager-pages-title = Pages\npdfjs-views-manager-outlines-title1 = Document outline\n .title = Document outline (double-click to expand/collapse all items)\npdfjs-views-manager-attachments-title = Attachments\npdfjs-views-manager-layers-title1 = Layers\n .title = Layers (double-click to reset all layers to the default state)\npdfjs-views-manager-pages-option-label = Pages\npdfjs-views-manager-outlines-option-label = Document outline\npdfjs-views-manager-attachments-option-label = Attachments\npdfjs-views-manager-layers-option-label = Layers\npdfjs-views-manager-add-file-button =\n .title = Add file\npdfjs-views-manager-add-file-button-label = Add file\npdfjs-views-manager-pages-status-action-label =\n { $count ->\n [one] { $count } selected\n *[other] { $count } selected\n }\npdfjs-views-manager-pages-status-none-action-label = Select pages\npdfjs-views-manager-pages-status-action-button-label = Manage\npdfjs-views-manager-pages-status-copy-button-label = Copy\npdfjs-views-manager-pages-status-cut-button-label = Cut\npdfjs-views-manager-pages-status-delete-button-label = Delete\npdfjs-views-manager-pages-status-export-selected-button-label = Export selected…\npdfjs-views-manager-status-undo-cut-label =\n { $count ->\n [one] 1 page cut\n *[other] { $count } pages cut\n }\npdfjs-views-manager-pages-status-undo-copy-label =\n { $count ->\n [one] 1 page copied\n *[other] { $count } pages copied\n }\npdfjs-views-manager-pages-status-undo-delete-label =\n { $count ->\n [one] 1 page deleted\n *[other] { $count } pages deleted\n }\npdfjs-views-manager-status-undo-button-label = Undo\npdfjs-views-manager-status-done-button-label = Done\npdfjs-views-manager-status-close-button =\n .title = Close\npdfjs-views-manager-status-close-button-label = Close\npdfjs-views-manager-paste-button-label = Paste\npdfjs-views-manager-paste-button-before =\n .title = Paste before the first page\npdfjs-views-manager-paste-button-after =\n .title = Paste after page { $page }\npdfjs-new-badge-content = NEW\npdfjs-views-manager-waiting-for-file = Uploading file…\npdfjs-digital-signature-properties-button =\n .title = Digital signature properties\n .aria-label = Digital signature properties\npdfjs-digital-signature-properties-button-label = Digital signature properties\npdfjs-digital-signature-properties-banner-verified = Document was signed with a valid digital signature\npdfjs-digital-signature-properties-banner-unknown =\n { $count ->\n [one] Document signed but { $count } digital signature could not be verified\n *[other] Document signed but { $count } digital signatures could not be verified\n }\npdfjs-digital-signature-properties-banner-untrusted =\n { $count ->\n [one] Document signed with { $count } certificate that is not trusted\n *[other] Document signed with { $count } certificates that are not trusted\n }\npdfjs-digital-signature-properties-banner-expired =\n { $count ->\n [one] Document signed with { $count } expired certificate\n *[other] Document signed with { $count } expired certificates\n }\npdfjs-digital-signature-properties-banner-invalid =\n { $count ->\n [one] Document has { $count } invalid digital signature\n *[other] Document has { $count } invalid digital signatures\n }\npdfjs-digital-signature-properties-banner-revoked =\n { $count ->\n [one] Document signed with { $count } revoked certificate\n *[other] Document signed with { $count } revoked certificates\n }\npdfjs-digital-signature-properties-status-verified = Status: Signature verified\npdfjs-digital-signature-properties-status-invalid = Status: Signature invalid\npdfjs-digital-signature-properties-status-unknown = Status: Unable to verify (unsupported)\npdfjs-digital-signature-properties-certificate-trusted = Certificate: Trusted ({ $issuer })\npdfjs-digital-signature-properties-certificate-unknown = Certificate: Unavailable\npdfjs-digital-signature-properties-certificate-untrusted = Certificate: Untrusted\npdfjs-digital-signature-properties-certificate-untrusted-unknown-issuer = Certificate: Unknown issuer ({ $issuer })\npdfjs-digital-signature-properties-certificate-untrusted-self-signed = Certificate: Self-signed ({ $issuer })\npdfjs-digital-signature-properties-certificate-untrusted-untrusted-issuer = Certificate: Untrusted issuer ({ $issuer })\npdfjs-digital-signature-properties-certificate-expired = Certificate: Expired\npdfjs-digital-signature-properties-certificate-expired-with-date = Certificate: Expired ({ DATETIME($dateObj, dateStyle: \"medium\") })\npdfjs-digital-signature-properties-certificate-revoked = Certificate: Revoked\npdfjs-digital-signature-properties-view-certificate = View certificate\npdfjs-digital-signature-properties-reason = Reason: { $reason }\npdfjs-digital-signature-properties-timestamp = Timestamp: { DATETIME($dateObj, dateStyle: \"short\", timeStyle: \"medium\") }\npdfjs-digital-signature-properties-sub-signatures =\n { $count ->\n [one] Sub-signature ({ $count })\n *[other] Sub-signatures ({ $count })\n }";+ return createBundle(lang, text);+ }+}++;// ./web/pdf_history.js++++++const HASH_CHANGE_TIMEOUT = 1000;+const POSITION_UPDATED_THRESHOLD = 50;+const UPDATE_VIEWAREA_TIMEOUT = 1000;+function getCurrentHash() {+ return document.location.hash;+}+class PDFHistory {+ #eventAC = null;+ constructor({+ linkService,+ eventBus+ }) {+ this.linkService = linkService;+ this.eventBus = eventBus;+ this._initialized = false;+ this._fingerprint = "";+ this.reset();+ this.eventBus.on("pagesinit", () => {+ this._isPagesLoaded = false;+ this.eventBus.on("pagesloaded", evt => {+ this._isPagesLoaded = !!evt.pagesCount;+ }, {+ once: true,+ ...internalOpt+ });+ }, internalOpt);+ }+ initialize({+ fingerprint,+ resetHistory = false,+ updateUrl = false+ }) {+ if (!fingerprint || typeof fingerprint !== "string") {+ console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');+ return;+ }+ if (this._initialized) {+ this.reset();+ }+ const reInitialized = this._fingerprint !== "" && this._fingerprint !== fingerprint;+ this._fingerprint = fingerprint;+ this._updateUrl = updateUrl === true;+ this._initialized = true;+ this.#bindEvents();+ const state = window.history.state;+ this._popStateInProgress = false;+ this._blockHashChange = 0;+ this._currentHash = getCurrentHash();+ this._numPositionUpdates = 0;+ this._uid = this._maxUid = 0;+ this._destination = null;+ this._position = null;+ if (!this.#isValidState(state, true) || resetHistory) {+ const {+ hash,+ page,+ rotation+ } = this.#parseCurrentHash(true);+ if (!hash || reInitialized || resetHistory) {+ this.#pushOrReplaceState(null, true);+ return;+ }+ this.#pushOrReplaceState({+ hash,+ page,+ rotation+ }, true);+ return;+ }+ const destination = state.destination;+ this.#updateInternalState(destination, state.uid, true);+ if (destination.rotation !== undefined) {+ this._initialRotation = destination.rotation;+ }+ if (destination.dest) {+ this._initialBookmark = JSON.stringify(destination.dest);+ this._destination.page = null;+ } else if (destination.hash) {+ this._initialBookmark = destination.hash;+ } else if (destination.page) {+ this._initialBookmark = `page=${destination.page}`;+ }+ }+ reset() {+ if (this._initialized) {+ this.#pageHide();+ this._initialized = false;+ this.#unbindEvents();+ }+ if (this._updateViewareaTimeout) {+ clearTimeout(this._updateViewareaTimeout);+ this._updateViewareaTimeout = null;+ }+ this._initialBookmark = null;+ this._initialRotation = null;+ }+ push({+ namedDest = null,+ explicitDest,+ pageNumber+ }) {+ if (!this._initialized) {+ return;+ }+ if (namedDest && typeof namedDest !== "string") {+ console.error("PDFHistory.push: " + `"${namedDest}" is not a valid namedDest parameter.`);+ return;+ } else if (!Array.isArray(explicitDest)) {+ console.error("PDFHistory.push: " + `"${explicitDest}" is not a valid explicitDest parameter.`);+ return;+ } else if (!this.#isValidPage(pageNumber)) {+ if (pageNumber !== null || this._destination) {+ console.error("PDFHistory.push: " + `"${pageNumber}" is not a valid pageNumber parameter.`);+ return;+ }+ }+ const hash = namedDest || JSON.stringify(explicitDest);+ if (!hash) {+ return;+ }+ let forceReplace = false;+ if (this._destination && (isDestHashesEqual(this._destination.hash, hash) || isDestArraysEqual(this._destination.dest, explicitDest))) {+ if (this._destination.page) {+ return;+ }+ forceReplace = true;+ }+ if (this._popStateInProgress && !forceReplace) {+ return;+ }+ this.#pushOrReplaceState({+ dest: explicitDest,+ hash,+ page: pageNumber,+ rotation: this.linkService.rotation+ }, forceReplace);+ if (!this._popStateInProgress) {+ this._popStateInProgress = true;+ Promise.resolve().then(() => {+ this._popStateInProgress = false;+ });+ }+ }+ pushPage(pageNumber) {+ if (!this._initialized) {+ return;+ }+ if (!this.#isValidPage(pageNumber)) {+ console.error(`PDFHistory.pushPage: "${pageNumber}" is not a valid page number.`);+ return;+ }+ if (this._destination?.page === pageNumber) {+ return;+ }+ if (this._popStateInProgress) {+ return;+ }+ this.#pushOrReplaceState({+ dest: null,+ hash: `page=${pageNumber}`,+ page: pageNumber,+ rotation: this.linkService.rotation+ });+ if (!this._popStateInProgress) {+ this._popStateInProgress = true;+ Promise.resolve().then(() => {+ this._popStateInProgress = false;+ });+ }+ }+ pushCurrentPosition() {+ if (!this._initialized || this._popStateInProgress) {+ return;+ }+ this.#tryPushCurrentPosition();+ }+ back() {+ if (!this._initialized || this._popStateInProgress) {+ return;+ }+ const state = window.history.state;+ if (this.#isValidState(state) && state.uid > 0) {+ window.history.back();+ }+ }+ forward() {+ if (!this._initialized || this._popStateInProgress) {+ return;+ }+ const state = window.history.state;+ if (this.#isValidState(state) && state.uid < this._maxUid) {+ window.history.forward();+ }+ }+ get popStateInProgress() {+ return this._initialized && (this._popStateInProgress || this._blockHashChange > 0);+ }+ get initialBookmark() {+ return this._initialized ? this._initialBookmark : null;+ }+ get initialRotation() {+ return this._initialized ? this._initialRotation : null;+ }+ #pushOrReplaceState(destination, forceReplace = false) {+ const shouldReplace = forceReplace || !this._destination;+ const newState = {+ fingerprint: this._fingerprint,+ uid: shouldReplace ? this._uid : this._uid + 1,+ destination+ };+ this.#updateInternalState(destination, newState.uid);+ let newUrl;+ if (this._updateUrl && destination?.hash) {+ const {+ href,+ protocol+ } = document.location;+ if (protocol !== "file:") {+ newUrl = updateUrlHash(href, destination.hash);+ }+ }+ if (shouldReplace) {+ window.history.replaceState(newState, "", newUrl);+ } else {+ window.history.pushState(newState, "", newUrl);+ }+ }+ #tryPushCurrentPosition(temporary = false) {+ if (!this._position) {+ return;+ }+ let position = this._position;+ if (temporary) {+ position = Object.assign(Object.create(null), this._position);+ position.temporary = true;+ }+ if (!this._destination) {+ this.#pushOrReplaceState(position);+ return;+ }+ if (this._destination.temporary) {+ this.#pushOrReplaceState(position, true);+ return;+ }+ if (this._destination.hash === position.hash) {+ return;+ }+ if (!this._destination.page && ( false || this._numPositionUpdates <= POSITION_UPDATED_THRESHOLD)) {+ return;+ }+ let forceReplace = false;+ if (this._destination.page >= position.first && this._destination.page <= position.page) {+ if (this._destination.dest !== undefined || !this._destination.first) {+ return;+ }+ forceReplace = true;+ }+ this.#pushOrReplaceState(position, forceReplace);+ }+ #isValidPage(val) {+ return Number.isInteger(val) && val > 0 && val <= this.linkService.pagesCount;+ }+ #isValidState(state, checkReload = false) {+ if (!state) {+ return false;+ }+ if (state.fingerprint !== this._fingerprint) {+ if (checkReload) {+ if (typeof state.fingerprint !== "string" || state.fingerprint.length !== this._fingerprint.length) {+ return false;+ }+ const [perfEntry] = performance.getEntriesByType("navigation");+ if (perfEntry?.type !== "reload") {+ return false;+ }+ } else {+ return false;+ }+ }+ if (!Number.isInteger(state.uid) || state.uid < 0) {+ return false;+ }+ if (state.destination === null || typeof state.destination !== "object") {+ return false;+ }+ return true;+ }+ #updateInternalState(destination, uid, removeTemporary = false) {+ if (this._updateViewareaTimeout) {+ clearTimeout(this._updateViewareaTimeout);+ this._updateViewareaTimeout = null;+ }+ if (removeTemporary && destination?.temporary) {+ delete destination.temporary;+ }+ this._destination = destination;+ this._uid = uid;+ this._maxUid = Math.max(this._maxUid, uid);+ this._numPositionUpdates = 0;+ }+ #parseCurrentHash(checkNameddest = false) {+ const hash = unescape(getCurrentHash()).substring(1);+ const params = parseQueryString(hash);+ const nameddest = params.get("nameddest") || "";+ let page = params.get("page") | 0;+ if (!this.#isValidPage(page) || checkNameddest && nameddest.length > 0) {+ page = null;+ }+ return {+ hash,+ page,+ rotation: this.linkService.rotation+ };+ }+ #updateViewarea({+ location+ }) {+ if (this._updateViewareaTimeout) {+ clearTimeout(this._updateViewareaTimeout);+ this._updateViewareaTimeout = null;+ }+ this._position = {+ hash: location.pdfOpenParams.substring(1),+ page: this.linkService.page,+ first: location.pageNumber,+ rotation: location.rotation+ };+ if (this._popStateInProgress) {+ return;+ }+ if ( true && this._isPagesLoaded && this._destination && !this._destination.page) {+ this._numPositionUpdates++;+ }+ if (true) {+ this._updateViewareaTimeout = setTimeout(() => {+ if (!this._popStateInProgress) {+ this.#tryPushCurrentPosition(true);+ }+ this._updateViewareaTimeout = null;+ }, UPDATE_VIEWAREA_TIMEOUT);+ }+ }+ #popState({+ state+ }) {+ const newHash = getCurrentHash(),+ hashChanged = this._currentHash !== newHash;+ this._currentHash = newHash;+ if (!state) {+ this._uid++;+ const {+ hash,+ page,+ rotation+ } = this.#parseCurrentHash();+ this.#pushOrReplaceState({+ hash,+ page,+ rotation+ }, true);+ return;+ }+ if (!this.#isValidState(state)) {+ return;+ }+ this._popStateInProgress = true;+ if (hashChanged) {+ this._blockHashChange++;+ waitOnEventOrTimeout({+ target: window,+ name: "hashchange",+ delay: HASH_CHANGE_TIMEOUT+ }).then(() => {+ this._blockHashChange--;+ });+ }+ const destination = state.destination;+ this.#updateInternalState(destination, state.uid, true);+ if (isValidRotation(destination.rotation)) {+ this.linkService.rotation = destination.rotation;+ }+ if (destination.dest) {+ this.linkService.goToDestination(destination.dest);+ } else if (destination.hash) {+ this.linkService.setHash(destination.hash);+ } else if (destination.page) {+ this.linkService.page = destination.page;+ }+ Promise.resolve().then(() => {+ this._popStateInProgress = false;+ });+ }+ #pageHide() {+ if (!this._destination || this._destination.temporary) {+ this.#tryPushCurrentPosition();+ }+ }+ #bindEvents() {+ if (this.#eventAC) {+ return;+ }+ this.#eventAC = new AbortController();+ const {+ signal+ } = this.#eventAC;+ this.eventBus.on("updateviewarea", this.#updateViewarea.bind(this), {+ signal,+ ...internalOpt+ });+ window.addEventListener("popstate", this.#popState.bind(this), {+ signal+ });+ window.addEventListener("pagehide", this.#pageHide.bind(this), {+ signal+ });+ }+ #unbindEvents() {+ this.#eventAC?.abort();+ this.#eventAC = null;+ }+}+function isDestHashesEqual(destHash, pushHash) {+ if (typeof destHash !== "string" || typeof pushHash !== "string") {+ return false;+ }+ if (destHash === pushHash) {+ return true;+ }+ const nameddest = parseQueryString(destHash).get("nameddest");+ if (nameddest === pushHash) {+ return true;+ }+ return false;+}+function isDestArraysEqual(firstDest, secondDest) {+ function isEntryEqual(first, second) {+ if (typeof first !== typeof second) {+ return false;+ }+ if (Array.isArray(first) || Array.isArray(second)) {+ return false;+ }+ if (first !== null && typeof first === "object" && second !== null) {+ if (Object.keys(first).length !== Object.keys(second).length) {+ return false;+ }+ for (const key in first) {+ if (!isEntryEqual(first[key], second[key])) {+ return false;+ }+ }+ return true;+ }+ return first === second || Number.isNaN(first) && Number.isNaN(second);+ }+ if (!(Array.isArray(firstDest) && Array.isArray(secondDest))) {+ return false;+ }+ if (firstDest.length !== secondDest.length) {+ return false;+ }+ for (let i = 0, ii = firstDest.length; i < ii; i++) {+ if (!isEntryEqual(firstDest[i], secondDest[i])) {+ return false;+ }+ }+ return true;+}++;// ./web/annotation_editor_layer_builder.js+++class AnnotationEditorLayerBuilder {+ #annotationLayer = null;+ #drawLayer = null;+ #onAppend = null;+ #structTreeLayer = null;+ #textLayer = null;+ #uiManager;+ constructor(options) {+ this.pageIndex = options.pageIndex;+ this.accessibilityManager = options.accessibilityManager;+ this.l10n = options.l10n;+ this.l10n ||= new genericl10n_GenericL10n();+ this.annotationEditorLayer = null;+ this.div = null;+ this._cancelled = false;+ this.#uiManager = options.uiManager;+ this.#annotationLayer = options.annotationLayer || null;+ this.#textLayer = options.textLayer || null;+ this.#drawLayer = options.drawLayer || null;+ this.#onAppend = options.onAppend || null;+ this.#structTreeLayer = options.structTreeLayer || null;+ }+ updatePageIndex(newPageIndex) {+ this.pageIndex = newPageIndex;+ this.annotationEditorLayer?.updatePageIndex(newPageIndex);+ }+ async render({+ viewport,+ intent = "display"+ }) {+ if (intent !== "display") {+ return;+ }+ if (this._cancelled) {+ return;+ }+ const clonedViewport = viewport.clone({+ dontFlip: true+ });+ if (this.div) {+ this.annotationEditorLayer.update({+ viewport: clonedViewport+ });+ this.show();+ return;+ }+ const div = this.div = document.createElement("div");+ div.className = "annotationEditorLayer";+ div.hidden = true;+ div.dir = this.#uiManager.direction;+ this.#onAppend?.(div);+ this.annotationEditorLayer = new AnnotationEditorLayer({+ uiManager: this.#uiManager,+ div,+ structTreeLayer: this.#structTreeLayer,+ accessibilityManager: this.accessibilityManager,+ pageIndex: this.pageIndex,+ l10n: this.l10n,+ viewport: clonedViewport,+ annotationLayer: this.#annotationLayer,+ textLayer: this.#textLayer,+ drawLayer: this.#drawLayer+ });+ const parameters = {+ viewport: clonedViewport,+ div,+ annotations: null,+ intent+ };+ await this.annotationEditorLayer.render(parameters);+ this.show();+ }+ update(viewport) {+ if (this.div) {+ this.annotationEditorLayer.update({+ viewport: viewport.clone({+ dontFlip: true+ })+ });+ }+ }+ cancel() {+ this._cancelled = true;+ if (!this.div) {+ return;+ }+ this.annotationEditorLayer.destroy();+ }+ hide() {+ if (!this.div) {+ return;+ }+ this.annotationEditorLayer.pause(true);+ this.div.hidden = true;+ }+ show() {+ if (!this.div || this.annotationEditorLayer.isInvisible) {+ return;+ }+ this.div.hidden = false;+ this.annotationEditorLayer.pause(false);+ }+}++;// ./web/app_options.js+++++{+ var compatParams = new Map();+ const {+ maxTouchPoints,+ platform,+ userAgent+ } = navigator;+ const isAndroid = /Android/.test(userAgent);+ const isIOS = /\b(?:iPad|iPhone|iPod)(?=;)/.test(userAgent) || platform === "MacIntel" && maxTouchPoints > 1;+ if (isIOS || isAndroid) {+ compatParams.set("maxCanvasPixels", 5242880);+ }+ if (isAndroid) {+ compatParams.set("useSystemFonts", false);+ }+}+const OptionKind = {+ BROWSER: 0x01,+ VIEWER: 0x02,+ API: 0x04,+ WORKER: 0x08,+ EVENT_DISPATCH: 0x10,+ PREFERENCE: 0x80+};+const Type = {+ BOOLEAN: 0x01,+ NUMBER: 0x02,+ OBJECT: 0x04,+ STRING: 0x08,+ UNDEFINED: 0x10+};+const defaultOptions = new Map([["allowedGlobalEvents", {+ value: null,+ kind: OptionKind.BROWSER+}], ["canvasMaxAreaInBytes", {+ value: -1,+ kind: OptionKind.BROWSER + OptionKind.API+}], ["isInAutomation", {+ value: false,+ kind: OptionKind.BROWSER+}], ["localeProperties", {+ value: {+ lang: navigator.language || "en-US"+ },+ kind: OptionKind.BROWSER+}], ["maxCanvasDim", {+ value: 32767,+ kind: OptionKind.BROWSER + OptionKind.VIEWER+}], ["nimbusDataStr", {+ value: "",+ kind: OptionKind.BROWSER+}], ["supportsCaretBrowsingMode", {+ value: false,+ kind: OptionKind.BROWSER+}], ["supportsDocumentFonts", {+ value: true,+ kind: OptionKind.BROWSER+}], ["supportsDownloading", {+ value: true,+ kind: OptionKind.BROWSER+}], ["supportsIntegratedFind", {+ value: false,+ kind: OptionKind.BROWSER+}], ["supportsMouseWheelZoomCtrlKey", {+ value: true,+ kind: OptionKind.BROWSER+}], ["supportsMouseWheelZoomMetaKey", {+ value: true,+ kind: OptionKind.BROWSER+}], ["supportsPinchToZoom", {+ value: true,+ kind: OptionKind.BROWSER+}], ["supportsPrinting", {+ value: true,+ kind: OptionKind.BROWSER+}], ["toolbarDensity", {+ value: 0,+ kind: OptionKind.BROWSER + OptionKind.EVENT_DISPATCH+}], ["altTextLearnMoreUrl", {+ value: "",+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["annotationEditorMode", {+ value: 0,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["annotationMode", {+ value: 2,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["capCanvasAreaFactor", {+ value: 200,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["commentLearnMoreUrl", {+ value: "",+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["cursorToolOnLoad", {+ value: 0,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["debuggerSrc", {+ value: "./debugger.mjs",+ kind: OptionKind.VIEWER+}], ...[["defaultUrl", {+ value: "compressed.tracemonkey-pldi-09.pdf",+ kind: OptionKind.VIEWER+}]], ["defaultZoomDelay", {+ value: 400,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["defaultZoomValue", {+ value: "",+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["disableHistory", {+ value: false,+ kind: OptionKind.VIEWER+}], ["disablePageLabels", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ...[["disablePreferences", {+ value: false,+ kind: OptionKind.VIEWER+}]], ...[], ["enableAltText", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableAltTextModelDownload", {+ value: true,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE + OptionKind.EVENT_DISPATCH+}], ["enableAutoLinking", {+ value: true,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableComment", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableDetailCanvas", {+ value: true,+ kind: OptionKind.VIEWER+}], ...[], ["enableGuessAltText", {+ value: true,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE + OptionKind.EVENT_DISPATCH+}], ["enableHighlightFloatingButton", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableMerge", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableNewAltTextWhenAddingImage", {+ value: true,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableNewBadge", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableNova", {+ value: true,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableOptimizedPartialRendering", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enablePermissions", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enablePrintAutoRotate", {+ value: true,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableScripting", {+ value: true,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableSelectionRendering", {+ value: true,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableSignatureEditor", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableSignatureVerification", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableSplitMerge", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["enableUpdatedAddImage", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["externalLinkRel", {+ value: "noopener noreferrer nofollow",+ kind: OptionKind.VIEWER+}], ["externalLinkTarget", {+ value: 0,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ...[], ["highlightEditorColors", {+ value: "yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F," + "yellow_HCM=#FFFFCC,green_HCM=#53FFBC,blue_HCM=#80EBFF,pink_HCM=#F6B8FF,red_HCM=#C50043",+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["historyUpdateUrl", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["ignoreDestinationZoom", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["imageResourcesPath", {+ value: "./images/",+ kind: OptionKind.VIEWER+}], ["imagesRightClickMinSize", {+ value: -1,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["maxCanvasPixels", {+ value: 2 ** 25,+ kind: OptionKind.VIEWER+}], ["minDurationToUpdateCanvas", {+ value: 500,+ kind: OptionKind.VIEWER+}], ["forcePageColors", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["pageColorsBackground", {+ value: "Canvas",+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["pageColorsForeground", {+ value: "CanvasText",+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["pdfBugEnabled", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["postMessageAfterPrintCallback", {+ value: false,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["printResolution", {+ value: 150,+ kind: OptionKind.VIEWER+}], ...[["sandboxBundleSrc", {+ value: "../build/pdf.sandbox.mjs",+ kind: OptionKind.VIEWER+}]], ["sidebarViewOnLoad", {+ value: -1,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["scrollModeOnLoad", {+ value: -1,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["spreadModeOnLoad", {+ value: -1,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["textLayerMode", {+ value: 1,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["viewerCssTheme", {+ value: 0,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["viewOnLoad", {+ value: 0,+ kind: OptionKind.VIEWER + OptionKind.PREFERENCE+}], ["cMapPacked", {+ value: true,+ kind: OptionKind.API+}], ["cMapUrl", {+ value: "../web/cmaps/",+ kind: OptionKind.API+}], ["disableAutoFetch", {+ value: false,+ kind: OptionKind.API + OptionKind.PREFERENCE+}], ["disableFontFace", {+ value: false,+ kind: OptionKind.API + OptionKind.PREFERENCE+}], ["disableRange", {+ value: false,+ kind: OptionKind.API + OptionKind.PREFERENCE+}], ["disableStream", {+ value: false,+ kind: OptionKind.API + OptionKind.PREFERENCE+}], ["docBaseUrl", {+ value: "",+ kind: OptionKind.API+}], ["enableHWA", {+ value: true,+ kind: OptionKind.API + OptionKind.PREFERENCE+}], ["enableWebGPU", {+ value: true,+ kind: OptionKind.API + OptionKind.PREFERENCE+}], ["enableXfa", {+ value: true,+ kind: OptionKind.API + OptionKind.PREFERENCE+}], ["fontExtraProperties", {+ value: false,+ kind: OptionKind.API+}], ["iccUrl", {+ value: "../web/iccs/",+ kind: OptionKind.API+}], ["isOffscreenCanvasSupported", {+ value: true,+ kind: OptionKind.API+}], ["maxImageSize", {+ value: -1,+ kind: OptionKind.API+}], ["pdfBug", {+ value: false,+ kind: OptionKind.API+}], ["standardFontDataUrl", {+ value: "../web/standard_fonts/",+ kind: OptionKind.API+}], ["useSystemFonts", {+ value: undefined,+ kind: OptionKind.API,+ type: Type.BOOLEAN + Type.UNDEFINED+}], ["verbosity", {+ value: 1,+ kind: OptionKind.API+}], ["wasmUrl", {+ value: "../web/wasm/",+ kind: OptionKind.API+}], ["workerPort", {+ value: null,+ kind: OptionKind.WORKER+}], ["workerSrc", {+ value: "../build/pdf.worker.mjs",+ kind: OptionKind.WORKER+}]]);+class AppOptions {+ static eventBus;+ static #opts = new Map();+ static {+ for (const [name, defaultOpt] of defaultOptions) {+ this.#opts.set(name, defaultOpt.value);+ }+ for (const [name, value] of compatParams) {+ this.#opts.set(name, value);+ }+ this._hasInvokedSet = false;+ this._checkDisablePreferences = () => {+ if (this.get("disablePreferences")) {+ return true;+ }+ if (this._hasInvokedSet) {+ console.warn("The Preferences may override manually set AppOptions; " + 'please use the "disablePreferences"-option to prevent that.');+ }+ return false;+ };+ }+ static get(name) {+ return this.#opts.get(name);+ }+ static getAll(kind = null, defaultOnly = false) {+ const options = Object.create(null);+ for (const [name, defaultOpt] of defaultOptions) {+ if (kind && !(kind & defaultOpt.kind)) {+ continue;+ }+ options[name] = !defaultOnly ? this.#opts.get(name) : defaultOpt.value;+ }+ return options;+ }+ static set(name, value) {+ this.setAll({+ [name]: value+ });+ }+ static setAll(options, prefs = false) {+ this._hasInvokedSet ||= true;+ let events;+ for (const name in options) {+ const defaultOpt = defaultOptions.get(name),+ userOpt = options[name];+ if (!defaultOpt || !(typeof userOpt === typeof defaultOpt.value || Type[(typeof userOpt).toUpperCase()] & defaultOpt.type)) {+ continue;+ }+ const {+ kind+ } = defaultOpt;+ if (prefs && !(kind & OptionKind.BROWSER || kind & OptionKind.PREFERENCE)) {+ continue;+ }+ if (this.eventBus && kind & OptionKind.EVENT_DISPATCH) {+ (events ??= new Map()).set(name, userOpt);+ }+ this.#opts.set(name, userOpt);+ }+ events?.forEach((value, name) => {+ this.eventBus.dispatch(name.toLowerCase(), {+ source: this,+ value+ });+ });+ }+}++;// ./web/autolinker.js+++++++function DOMRectToPDF({+ width,+ height,+ left,+ top+}, pdfPageView) {+ if (width === 0 || height === 0) {+ return null;+ }+ const pageBox = pdfPageView.textLayer.div.getBoundingClientRect();+ const bottomLeft = pdfPageView.getPagePoint(left - pageBox.left, top - pageBox.top);+ const topRight = pdfPageView.getPagePoint(left - pageBox.left + width, top - pageBox.top + height);+ return Util.normalizeRect([bottomLeft[0], bottomLeft[1], topRight[0], topRight[1]]);+}+function calculateLinkPosition(range, pdfPageView) {+ const rangeRects = range.getClientRects();+ if (rangeRects.length === 1) {+ return {+ rect: DOMRectToPDF(rangeRects[0], pdfPageView)+ };+ }+ const rect = [Infinity, Infinity, -Infinity, -Infinity];+ const quadPoints = [];+ let i = 0;+ for (const domRect of rangeRects) {+ const normalized = DOMRectToPDF(domRect, pdfPageView);+ if (normalized === null) {+ continue;+ }+ quadPoints[i] = quadPoints[i + 4] = normalized[0];+ quadPoints[i + 1] = quadPoints[i + 3] = normalized[3];+ quadPoints[i + 2] = quadPoints[i + 6] = normalized[2];+ quadPoints[i + 5] = quadPoints[i + 7] = normalized[1];+ Util.rectBoundingBox(...normalized, rect);+ i += 8;+ }+ return {+ quadPoints,+ rect+ };+}+function textPosition(container, offset) {+ let currentContainer = container;+ do {+ if (currentContainer.nodeType === Node.TEXT_NODE) {+ const currentLength = currentContainer.textContent.length;+ if (offset <= currentLength) {+ return [currentContainer, offset];+ }+ offset -= currentLength;+ } else if (currentContainer.firstChild) {+ currentContainer = currentContainer.firstChild;+ continue;+ }+ while (!currentContainer.nextSibling && currentContainer !== container) {+ currentContainer = currentContainer.parentNode;+ }+ if (currentContainer !== container) {+ currentContainer = currentContainer.nextSibling;+ }+ } while (currentContainer !== container);+ throw new Error("Offset is bigger than container's contents length.");+}+function createLinkAnnotation({+ url,+ index,+ length+}, pdfPageView, id) {+ const highlighter = pdfPageView._textHighlighter;+ const [{+ begin,+ end+ }] = highlighter._convertMatches([index], [length]);+ const range = new Range();+ range.setStart(...textPosition(highlighter.textDivs[begin.divIdx], begin.offset));+ range.setEnd(...textPosition(highlighter.textDivs[end.divIdx], end.offset));+ return {+ id: `inferred_link_${id}`,+ unsafeUrl: url,+ url,+ annotationType: AnnotationType.LINK,+ rotation: 0,+ ...calculateLinkPosition(range, pdfPageView),+ borderStyle: null+ };+}+class Autolinker {+ static #index = 0;+ static #regex;+ static #numericTLDRegex;+ static findLinks(text) {+ this.#regex ??= /\b(?:https?:\/\/|mailto:|www\.)(?:[\S--[\p{P}<>]]|\/|[\S--[\[\]]]+[\S--[\p{P}<>]])+|(?=\p{L})[\S--[@\p{Ps}\p{Pe}<>]]{1,64}@([\S--[[\p{P}--\-]<>]]{1,63}(?:\.[\S--[[\p{P}--\-]<>]]{1,63})+)/gv;+ const [normalizedText, diffs] = normalize(text, {+ ignoreDashEOL: true+ });+ const matches = normalizedText.matchAll(this.#regex);+ const links = [];+ for (const match of matches) {+ const [url, emailDomain] = match;+ let raw;+ if (url.startsWith("www.") || url.startsWith("http://") || url.startsWith("https://")) {+ raw = url;+ } else if (emailDomain) {+ const hostname = URL.parse(`http://${emailDomain}`)?.hostname;+ if (!hostname) {+ continue;+ }+ this.#numericTLDRegex ??= /\.\d+$/;+ if (this.#numericTLDRegex.test(hostname)) {+ continue;+ }+ }+ raw ??= url.startsWith("mailto:") ? url : `mailto:${url}`;+ const absoluteURL = createValidAbsoluteUrl(raw, null, {+ addDefaultProtocol: true+ });+ if (absoluteURL) {+ const [index, length] = getOriginalIndex(diffs, match.index, url.length);+ links.push({+ url: absoluteURL.href,+ index,+ length+ });+ }+ }+ return links;+ }+ static processLinks(pdfPageView) {+ return this.findLinks(pdfPageView._textHighlighter.textContentItemsStr.join("\n")).map(link => createLinkAnnotation(link, pdfPageView, this.#index++));+ }+}++;// ./web/renderable_view.js+const RenderingStates = {+ INITIAL: 0,+ RUNNING: 1,+ PAUSED: 2,+ FINISHED: 3+};+class RenderableView {+ renderingId = "";+ renderTask = null;+ resume = null;+ get renderingState() {+ throw new Error("Abstract getter `renderingState` accessed");+ }+ set renderingState(state) {+ throw new Error("Abstract setter `renderingState` accessed");+ }+ async draw() {+ throw new Error("Not implemented: draw");+ }+}++;// ./web/base_pdf_page_view.js+++class BasePDFPageView extends RenderableView {+ #loadingId = null;+ #renderError = null;+ #renderingState = RenderingStates.INITIAL;+ #showCanvas = null;+ #startTime = 0;+ #tempCanvas = null;+ canvas = null;+ div = null;+ enableOptimizedPartialRendering = false;+ enableSelectionRendering = true;+ imagesRightClickMinSize = -1;+ eventBus = null;+ id = null;+ imageCoordinates = null;+ pageColors = null;+ recordedBBoxes = null;+ renderingQueue = null;+ constructor(options) {+ super();+ this.eventBus = options.eventBus;+ this.id = options.id;+ this.pageColors = options.pageColors || null;+ this.renderingQueue = options.renderingQueue;+ this.enableOptimizedPartialRendering = options.enableOptimizedPartialRendering ?? false;+ this.enableSelectionRendering = options.enableSelectionRendering !== false && FeatureTest.isBackdropFilterSupported;+ this.imagesRightClickMinSize = options.imagesRightClickMinSize ?? -1;+ this.minDurationToUpdateCanvas = options.minDurationToUpdateCanvas ?? 500;+ }+ get renderingState() {+ return this.#renderingState;+ }+ set renderingState(state) {+ if (state === this.#renderingState) {+ return;+ }+ this.#renderingState = state;+ if (this.#loadingId) {+ clearTimeout(this.#loadingId);+ this.#loadingId = null;+ }+ switch (state) {+ case RenderingStates.PAUSED:+ this.div.classList.remove("loading");+ this.#startTime = 0;+ this.#showCanvas?.(false);+ break;+ case RenderingStates.RUNNING:+ this.div.classList.add("loadingIcon");+ this.#loadingId = setTimeout(() => {+ this.div.classList.add("loading");+ this.#loadingId = null;+ }, 0);+ this.#startTime = Date.now();+ break;+ case RenderingStates.INITIAL:+ case RenderingStates.FINISHED:+ this.div.classList.remove("loadingIcon", "loading");+ this.#startTime = 0;+ break;+ }+ }+ _createCanvas(onShow, hideUntilComplete = false) {+ const {+ pageColors+ } = this;+ const hasHCM = !!(pageColors?.background && pageColors?.foreground);+ const prevCanvas = this.canvas;+ const updateOnFirstShow = !prevCanvas && !hasHCM && !hideUntilComplete;+ let canvas = this.canvas = document.createElement("canvas");+ this.#showCanvas = isLastShow => {+ if (updateOnFirstShow) {+ let tempCanvas = this.#tempCanvas;+ if (!isLastShow && this.minDurationToUpdateCanvas > 0) {+ if (Date.now() - this.#startTime < this.minDurationToUpdateCanvas) {+ return;+ }+ if (!tempCanvas) {+ tempCanvas = this.#tempCanvas = canvas;+ canvas = this.canvas = canvas.cloneNode(false);+ onShow(canvas);+ }+ }+ if (tempCanvas) {+ const ctx = canvas.getContext("2d", {+ alpha: false+ });+ ctx.drawImage(tempCanvas, 0, 0);+ if (isLastShow) {+ this.#resetTempCanvas();+ } else {+ this.#startTime = Date.now();+ }+ return;+ }+ onShow(canvas);+ this.#showCanvas = null;+ return;+ }+ if (!isLastShow) {+ return;+ }+ if (prevCanvas) {+ prevCanvas.replaceWith(canvas);+ prevCanvas.width = prevCanvas.height = 0;+ } else {+ onShow(canvas);+ }+ };+ return {+ canvas,+ prevCanvas+ };+ }+ #renderContinueCallback = cont => {+ this.#showCanvas?.(false);+ if (this.renderingQueue && !this.renderingQueue.isHighestPriority(this)) {+ this.renderingState = RenderingStates.PAUSED;+ this.resume = () => {+ this.renderingState = RenderingStates.RUNNING;+ cont();+ };+ return;+ }+ cont();+ };+ _resetCanvas() {+ const {+ canvas+ } = this;+ if (!canvas) {+ return;+ }+ canvas.remove();+ canvas.width = canvas.height = 0;+ this.canvas = null;+ this.#resetTempCanvas();+ }+ #resetTempCanvas() {+ if (this.#tempCanvas) {+ this.#tempCanvas.width = this.#tempCanvas.height = 0;+ this.#tempCanvas = null;+ }+ }+ async _drawCanvas(options, onCancel, onFinish) {+ const renderTask = this.renderTask = this.pdfPage.render(options);+ renderTask.onContinue = this.#renderContinueCallback;+ renderTask.onError = error => {+ if (error instanceof RenderingCancelledException) {+ onCancel();+ this.#renderError = null;+ }+ };+ let error = null;+ try {+ await renderTask.promise;+ this.#showCanvas?.(true);+ } catch (e) {+ if (e instanceof RenderingCancelledException) {+ return;+ }+ error = e;+ this.#showCanvas?.(true);+ } finally {+ this.#renderError = error;+ if (renderTask === this.renderTask) {+ this.renderTask = null;+ if (this.enableOptimizedPartialRendering) {+ this.recordedBBoxes ??= renderTask.recordedBBoxes;+ }+ if (this.imagesRightClickMinSize !== -1) {+ this.imageCoordinates ??= this.pdfPage.imageCoordinates;+ }+ }+ }+ this.renderingState = RenderingStates.FINISHED;+ onFinish(renderTask);+ if (error) {+ throw error;+ }+ }+ cancelRendering({+ cancelExtraDelay = 0+ } = {}) {+ if (this.renderTask) {+ this.renderTask.cancel(cancelExtraDelay);+ this.renderTask = null;+ }+ this.resume = null;+ }+ dispatchPageRender() {+ this.eventBus.dispatch("pagerender", {+ source: this,+ pageNumber: this.id+ });+ }+ dispatchPageRendered(cssTransform, isDetailView) {+ this.eventBus.dispatch("pagerendered", {+ source: this,+ pageNumber: this.id,+ cssTransform,+ isDetailView,+ timestamp: performance.now(),+ error: this.#renderError+ });+ }+}++;// ./web/draw_layer_builder.js++class DrawLayerBuilder {+ #drawLayer = null;+ constructor(options) {+ this.pageIndex = options.pageIndex;+ this.textLayer = options.textLayer || null;+ this.filterFactory = options.filterFactory || null;+ this.pageColors = options.pageColors || null;+ }+ async render({+ intent = "display"+ }) {+ if (intent !== "display" || this.#drawLayer || this._cancelled) {+ return;+ }+ this.#drawLayer = new DrawLayer({+ pageIndex: this.pageIndex,+ textLayer: this.textLayer,+ filterFactory: this.filterFactory,+ pageColors: this.pageColors+ });+ }+ cancel() {+ this._cancelled = true;+ this.#drawLayer?.destroy();+ this.#drawLayer = null;+ }+ setParent(parent) {+ this.#drawLayer?.setParent(parent);+ }+ getDrawLayer() {+ return this.#drawLayer;+ }+}++;// ./web/pdf_page_detail_view.js++++class PDFPageDetailView extends BasePDFPageView {+ #detailArea = null;+ renderingCancelled = false;+ constructor({+ pageView+ }) {+ super(pageView);+ this.pageView = pageView;+ this.renderingId = "detail" + this.id;+ this.div = pageView.div;+ }+ setPdfPage(pdfPage) {+ this.pageView.setPdfPage(pdfPage);+ }+ get pdfPage() {+ return this.pageView.pdfPage;+ }+ get renderingState() {+ return super.renderingState;+ }+ set renderingState(state) {+ this.renderingCancelled = false;+ super.renderingState = state;+ }+ reset({+ keepCanvas = false+ } = {}) {+ const renderingCancelled = this.renderingCancelled || this.renderingState === RenderingStates.RUNNING || this.renderingState === RenderingStates.PAUSED;+ this.cancelRendering();+ this.renderingState = RenderingStates.INITIAL;+ this.renderingCancelled = renderingCancelled;+ if (!keepCanvas) {+ this._resetCanvas();+ }+ }+ #shouldRenderDifferentArea(visibleArea) {+ if (!this.#detailArea) {+ return true;+ }+ const minDetailX = this.#detailArea.minX;+ const minDetailY = this.#detailArea.minY;+ const maxDetailX = this.#detailArea.width + minDetailX;+ const maxDetailY = this.#detailArea.height + minDetailY;+ if (visibleArea.minX < minDetailX || visibleArea.minY < minDetailY || visibleArea.maxX > maxDetailX || visibleArea.maxY > maxDetailY) {+ return true;+ }+ const {+ width: maxWidth,+ height: maxHeight,+ scale+ } = this.pageView.viewport;+ if (this.#detailArea.scale !== scale) {+ return true;+ }+ const paddingLeftSize = visibleArea.minX - minDetailX;+ const paddingRightSize = maxDetailX - visibleArea.maxX;+ const paddingTopSize = visibleArea.minY - minDetailY;+ const paddingBottomSize = maxDetailY - visibleArea.maxY;+ const MOVEMENT_THRESHOLD = 0.5;+ const ratio = (1 + MOVEMENT_THRESHOLD) / MOVEMENT_THRESHOLD;+ if (minDetailX > 0 && paddingRightSize / paddingLeftSize > ratio || maxDetailX < maxWidth && paddingLeftSize / paddingRightSize > ratio || minDetailY > 0 && paddingBottomSize / paddingTopSize > ratio || maxDetailY < maxHeight && paddingTopSize / paddingBottomSize > ratio) {+ return true;+ }+ return false;+ }+ update({+ visibleArea = null,+ underlyingViewUpdated = false+ } = {}) {+ if (underlyingViewUpdated) {+ this.cancelRendering();+ this.renderingState = RenderingStates.INITIAL;+ return;+ }+ if (!this.#shouldRenderDifferentArea(visibleArea)) {+ return;+ }+ const {+ viewport,+ maxCanvasPixels,+ capCanvasAreaFactor+ } = this.pageView;+ const visibleWidth = visibleArea.maxX - visibleArea.minX;+ const visibleHeight = visibleArea.maxY - visibleArea.minY;+ const visiblePixels = visibleWidth * visibleHeight * OutputScale.pixelRatio ** 2;+ const maxDetailToVisibleLinearRatio = Math.sqrt(OutputScale.capPixels(maxCanvasPixels, capCanvasAreaFactor) / visiblePixels);+ const maxOverflowScale = (maxDetailToVisibleLinearRatio - 1) / 2;+ let overflowScale = Math.min(1, maxOverflowScale);+ if (overflowScale < 0) {+ overflowScale = 0;+ }+ const overflowWidth = visibleWidth * overflowScale;+ const overflowHeight = visibleHeight * overflowScale;+ const minX = Math.max(0, visibleArea.minX - overflowWidth);+ const maxX = Math.min(viewport.width, visibleArea.maxX + overflowWidth);+ const minY = Math.max(0, visibleArea.minY - overflowHeight);+ const maxY = Math.min(viewport.height, visibleArea.maxY + overflowHeight);+ const width = maxX - minX;+ const height = maxY - minY;+ this.#detailArea = {+ minX,+ minY,+ width,+ height,+ scale: viewport.scale+ };+ this.reset({+ keepCanvas: true+ });+ }+ _getRenderingContext(canvas, transform) {+ const baseContext = this.pageView._getRenderingContext(canvas, transform, false);+ const recordedBBoxes = this.pdfPage.recordedBBoxes;+ if (!recordedBBoxes || !this.enableOptimizedPartialRendering) {+ return baseContext;+ }+ const {+ viewport: {+ width: vWidth,+ height: vHeight+ }+ } = this.pageView;+ const {+ width: aWidth,+ height: aHeight,+ minX: aMinX,+ minY: aMinY+ } = this.#detailArea;+ const detailMinX = aMinX / vWidth;+ const detailMinY = aMinY / vHeight;+ const detailMaxX = (aMinX + aWidth) / vWidth;+ const detailMaxY = (aMinY + aHeight) / vHeight;+ return {+ ...baseContext,+ operationsFilter(index) {+ if (recordedBBoxes.isEmpty(index)) {+ return false;+ }+ return recordedBBoxes.minX(index) <= detailMaxX && recordedBBoxes.maxX(index) >= detailMinX && recordedBBoxes.minY(index) <= detailMaxY && recordedBBoxes.maxY(index) >= detailMinY;+ }+ };+ }+ async draw() {+ if (this.pageView.detailView !== this) {+ return undefined;+ }+ const hideUntilComplete = this.pageView.renderingState === RenderingStates.FINISHED || this.renderingState === RenderingStates.FINISHED;+ if (this.renderingState !== RenderingStates.INITIAL) {+ console.error("Must be in new state before drawing");+ this.reset();+ }+ const {+ div,+ pdfPage,+ viewport+ } = this.pageView;+ if (!pdfPage) {+ this.renderingState = RenderingStates.FINISHED;+ throw new Error("pdfPage is not loaded");+ }+ this.renderingState = RenderingStates.RUNNING;+ const canvasWrapper = this.pageView._ensureCanvasWrapper();+ const {+ canvas,+ prevCanvas+ } = this._createCanvas(newCanvas => {+ if (canvasWrapper.firstElementChild?.tagName === "CANVAS") {+ canvasWrapper.firstElementChild.after(newCanvas);+ } else {+ canvasWrapper.prepend(newCanvas);+ }+ }, hideUntilComplete);+ canvas.ariaHidden = true;+ if (this.enableOptimizedPartialRendering) {+ canvas.className = "detailView";+ }+ const {+ width,+ height+ } = viewport;+ const area = this.#detailArea;+ const {+ pixelRatio+ } = OutputScale;+ const transform = [pixelRatio, 0, 0, pixelRatio, -area.minX * pixelRatio, -area.minY * pixelRatio];+ canvas.width = area.width * pixelRatio;+ canvas.height = area.height * pixelRatio;+ const {+ style+ } = canvas;+ style.width = `${area.width * 100 / width}%`;+ style.height = `${area.height * 100 / height}%`;+ style.top = `${area.minY * 100 / height}%`;+ style.left = `${area.minX * 100 / width}%`;+ const renderingPromise = this._drawCanvas(this._getRenderingContext(canvas, transform), () => {+ this.canvas?.remove();+ this.canvas = prevCanvas;+ }, () => {+ this.pageView._refreshAnnotationLayer();+ this.dispatchPageRendered(false, true);+ });+ div.setAttribute("data-loaded", true);+ this.dispatchPageRender();+ return renderingPromise;+ }+}++;// ./web/struct_tree_layer_builder.js+++++++++++++++const PDF_ROLE_TO_HTML_ROLE = {+ Document: null,+ DocumentFragment: null,+ Part: "group",+ Art: "article",+ Sect: "group",+ Div: "group",+ BlockQuote: "blockquote",+ Aside: "note",+ NonStruct: "none",+ P: "paragraph",+ H: "heading",+ Title: null,+ FENote: "note",+ Sub: "group",+ Lbl: null,+ Span: null,+ Em: "emphasis",+ Strong: "strong",+ Note: "note",+ Code: "code",+ Link: "link",+ Annot: "note",+ Form: "form",+ Ruby: null,+ RB: null,+ RT: null,+ RP: null,+ Warichu: null,+ WT: null,+ WP: null,+ L: "list",+ LI: "listitem",+ LBody: null,+ Table: "table",+ TR: "row",+ TH: "columnheader",+ TD: "cell",+ THead: "rowgroup",+ TBody: "rowgroup",+ TFoot: "rowgroup",+ Caption: "caption",+ Figure: "figure",+ Formula: null,+ Artifact: null+};+const ARIA_ROLES_WITH_PROHIBITED_NAMES = new Set(["caption", "code", "emphasis", "generic", "none", "paragraph", "strong"]);+const MathMLElements = new Set(["math", "merror", "mfrac", "mi", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mprescripts", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msubsup", "msup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "semantics"]);+const MathMLNamespace = "http://www.w3.org/1998/Math/MathML";+class MathMLSanitizer {+ static get sanitizer() {+ return shadow(this, "sanitizer", FeatureTest.isSanitizerSupported ? new Sanitizer({+ elements: Array.from(MathMLElements.keys(), name => ({+ name,+ namespace: MathMLNamespace+ })),+ replaceWithChildrenElements: [{+ name: "maction",+ namespace: MathMLNamespace+ }],+ attributes: ["dir", "displaystyle", "mathbackground", "mathcolor", "mathsize", "scriptlevel", "encoding", "display", "linethickness", "intent", "arg", "form", "fence", "separator", "lspace", "rspace", "stretchy", "symmetric", "maxsize", "minsize", "largeop", "movablelimits", "width", "height", "depth", "voffset", "accent", "accentunder", "columnspan", "rowspan"],+ comments: false+ }) : null);+ }+}+const HEADING_PATTERN = /^H(\d+)$/;+class StructTreeLayerBuilder {+ #promise;+ #treeDom = null;+ #treePromise;+ #annotationIds = new Set();+ #elementAttributes = new Map();+ #pendingLinkOwnership = new Map();+ #linkTextId = 0;+ #structElementIdPrefix = `pdfjs_internal_struct_${getUuid()}_`;+ #structElementIds = new Map();+ #structElements = new Map();+ #rawDims;+ #elementsToAddToTextLayer = null;+ #elementsToHideInTextLayer = null;+ #elementsToStealFromTextLayer = null;+ constructor(pdfPage, rawDims) {+ this.#promise = pdfPage.getStructTree();+ this.#rawDims = rawDims;+ }+ async render() {+ if (this.#treePromise) {+ return this.#treePromise;+ }+ const {+ promise,+ resolve,+ reject+ } = Promise.withResolvers();+ this.#treePromise = promise;+ try {+ const tree = await this.#promise;+ this.#collectStructElements(tree);+ this.#collectAnnotations(tree);+ this.#treeDom = this.#walk(tree);+ } catch (ex) {+ reject(ex);+ }+ this.#promise = null;+ this.#treeDom?.classList.add("structTree");+ resolve(this.#treeDom);+ return promise;+ }+ async getAriaAttributes(annotationId, {+ enableLinkOwnership = false+ } = {}) {+ try {+ await this.render();+ const ownership = this.#pendingLinkOwnership.get(annotationId);+ if (ownership && enableLinkOwnership) {+ const {+ element,+ ids+ } = ownership;+ element.removeAttribute("role");+ if (ids.length > 0) {+ this.#elementAttributes.getOrInsertComputed(annotationId, makeMap).set("aria-owns", ids.join(" "));+ }+ this.#pendingLinkOwnership.delete(annotationId);+ }+ return this.#elementAttributes.get(annotationId);+ } catch {}+ return null;+ }+ async getAnnotationIds() {+ try {+ await this.render();+ return this.#annotationIds;+ } catch {}+ return null;+ }+ hide() {+ if (this.#treeDom && !this.#treeDom.hidden) {+ this.#treeDom.hidden = true;+ }+ }+ show() {+ if (this.#treeDom?.hidden) {+ this.#treeDom.hidden = false;+ }+ }+ #collectStructElements(node) {+ if (!node) {+ return;+ }+ if (node.structId) {+ this.#structElements.getOrInsert(node.structId, node);+ }+ for (const child of node.children || []) {+ this.#collectStructElements(child);+ }+ }+ #collectAnnotations(node) {+ if (!node) {+ return;+ }+ if (node.type === "annotation") {+ this.#annotationIds.add(node.id);+ return;+ }+ for (const child of node.children || []) {+ this.#collectAnnotations(child);+ }+ }+ #getStructElementId(structId) {+ return this.#structElementIds.getOrInsertComputed(structId, () => `${this.#structElementIdPrefix}${this.#structElementIds.size}`);+ }+ #getHeaderIds(headers) {+ const result = [],+ visited = new Set(),+ pending = headers.toReversed();+ while (pending.length > 0) {+ const structId = pending.pop();+ if (visited.has(structId)) {+ continue;+ }+ visited.add(structId);+ const header = this.#structElements.get(structId);+ if (header?.role !== "TH") {+ continue;+ }+ result.push(this.#getStructElementId(structId));+ if (header.headers) {+ for (let i = header.headers.length - 1; i >= 0; i--) {+ pending.push(header.headers[i]);+ }+ }+ }+ return result;+ }+ #setAttributes(structElement, htmlElement) {+ const {+ alt,+ colSpan,+ headers,+ id,+ lang,+ rowSpan,+ short,+ structId,+ summary+ } = structElement;+ if (alt !== undefined) {+ let added = false;+ const label = removeNullCharacters(alt);+ for (const child of structElement.children) {+ if (child.type === "annotation") {+ this.#elementAttributes.getOrInsertComputed(child.id, makeMap).set("aria-label", label);+ added = true;+ }+ }+ const role = htmlElement.getAttribute("role") || (htmlElement.localName === "span" ? "generic" : null);+ if (!added && role !== "none") {+ htmlElement.setAttribute(ARIA_ROLES_WITH_PROHIBITED_NAMES.has(role) ? "aria-description" : "aria-label", label);+ }+ }+ if (id !== undefined) {+ htmlElement.setAttribute("aria-owns", id);+ }+ if (structId !== undefined && this.#structElements.get(structId) === structElement) {+ const elementId = this.#getStructElementId(structId);+ if (short !== undefined) {+ const abbreviation = document.createElement("span");+ abbreviation.setAttribute("id", elementId);+ abbreviation.setAttribute("aria-hidden", "true");+ abbreviation.textContent = removeNullCharacters(short);+ htmlElement.append(abbreviation);+ } else {+ htmlElement.setAttribute("id", elementId);+ }+ }+ if (lang !== undefined) {+ htmlElement.setAttribute("lang", removeNullCharacters(lang, true));+ }+ if (rowSpan !== undefined) {+ htmlElement.setAttribute("aria-rowspan", rowSpan);+ }+ if (colSpan !== undefined) {+ htmlElement.setAttribute("aria-colspan", colSpan);+ }+ if (headers?.length > 0) {+ const headerIds = this.#getHeaderIds(headers);+ if (headerIds.length > 0) {+ htmlElement.setAttribute("aria-describedby", headerIds.join(" "));+ }+ }+ if (summary !== undefined) {+ htmlElement.setAttribute("aria-description", removeNullCharacters(summary));+ }+ }+ #addImageInTextLayer(node, element) {+ const {+ alt,+ bbox,+ children+ } = node;+ const child = children?.[0];+ if (!this.#rawDims || !alt || !bbox || child?.type !== "content") {+ return false;+ }+ const {+ id+ } = child;+ if (!id) {+ return false;+ }+ element.setAttribute("aria-owns", id);+ const img = document.createElement("span");+ (this.#elementsToAddToTextLayer ||= new Map()).set(id, img);+ img.setAttribute("role", "img");+ img.setAttribute("aria-label", removeNullCharacters(alt));+ const {+ pageHeight,+ pageX,+ pageY+ } = this.#rawDims;+ const calc = "calc(var(--total-scale-factor) *";+ const {+ style+ } = img;+ style.width = `${calc}${bbox[2] - bbox[0]}px)`;+ style.height = `${calc}${bbox[3] - bbox[1]}px)`;+ style.left = `${calc}${bbox[0] - pageX}px)`;+ style.top = `${calc}${pageHeight - bbox[3] + pageY}px)`;+ return true;+ }+ updateTextLayer() {+ if (this.#elementsToAddToTextLayer) {+ for (const [id, img] of this.#elementsToAddToTextLayer) {+ document.getElementById(id)?.append(img);+ }+ this.#elementsToAddToTextLayer.clear();+ this.#elementsToAddToTextLayer = null;+ }+ if (this.#elementsToHideInTextLayer) {+ for (const id of this.#elementsToHideInTextLayer) {+ const elem = document.getElementById(id);+ if (elem) {+ elem.ariaHidden = true;+ }+ }+ this.#elementsToHideInTextLayer.length = 0;+ this.#elementsToHideInTextLayer = null;+ }+ if (this.#elementsToStealFromTextLayer) {+ for (let i = 0, ii = this.#elementsToStealFromTextLayer.length; i < ii; i += 2) {+ const element = this.#elementsToStealFromTextLayer[i];+ const ids = this.#elementsToStealFromTextLayer[i + 1];+ let textContent = "";+ for (const id of ids) {+ const elem = document.getElementById(id);+ if (elem) {+ textContent += elem.textContent.trim() || "";+ elem.ariaHidden = "true";+ }+ }+ if (textContent) {+ element.textContent = textContent;+ }+ }+ this.#elementsToStealFromTextLayer.length = 0;+ this.#elementsToStealFromTextLayer = null;+ }+ }+ #collectIds(node, ids) {+ if (!node) {+ return;+ }+ if ("id" in node) {+ ids.push(node.id);+ }+ for (const kid of node.children || []) {+ this.#collectIds(kid, ids);+ }+ }+ #walk(node, parentNodes = []) {+ if (!node) {+ return null;+ }+ let element;+ let visitChildren = true;+ if ("role" in node) {+ const {+ role+ } = node;+ if (MathMLElements.has(role)) {+ element = document.createElementNS(MathMLNamespace, role);+ const ids = [];+ (this.#elementsToStealFromTextLayer ||= []).push(element, ids);+ for (const {+ type,+ id+ } of node.children || []) {+ if (type === "content" && id) {+ ids.push(id);+ }+ }+ } else {+ element = document.createElement("span");+ }+ const match = role.match(HEADING_PATTERN);+ if (match) {+ element.setAttribute("role", "heading");+ element.setAttribute("aria-level", match[1]);+ } else if (PDF_ROLE_TO_HTML_ROLE[role]) {+ let htmlRole = PDF_ROLE_TO_HTML_ROLE[role];+ if (role === "TH") {+ if (node.scope === "Row") {+ htmlRole = "rowheader";+ } else if (node.scope === "Column") {+ htmlRole = "columnheader";+ } else if (parentNodes.at(-1)?.role === "TR" && parentNodes.at(-2)?.role === "TBody") {+ htmlRole = "rowheader";+ }+ } else if (role === "Caption") {+ const parentRole = parentNodes.at(-1)?.role;+ if (parentRole !== "Table" && parentRole !== "Figure") {+ htmlRole = null;+ }+ }+ if (htmlRole) {+ element.setAttribute("role", htmlRole);+ }+ }+ if (role === "Figure" && this.#addImageInTextLayer(node, element)) {+ return element;+ }+ if (role === "Formula") {+ if (node.mathML && MathMLSanitizer.sanitizer) {+ visitChildren = false;+ element.setHTML(node.mathML, {+ sanitizer: MathMLSanitizer.sanitizer+ });+ this.#collectIds(node, this.#elementsToHideInTextLayer ||= []);+ delete node.alt;+ }+ if (!node.mathML && node.children.length === 1 && node.children[0].role !== "math") {+ element = document.createElementNS(MathMLNamespace, "math");+ delete node.alt;+ }+ }+ }+ element ||= document.createElement("span");+ this.#setAttributes(node, element);+ if (node.children) {+ if (node.children.length === 1 && !("role" in node.children[0]) && "id" in node.children[0] && element.getAttribute("role") !== "none") {+ this.#setAttributes(node.children[0], element);+ } else if (visitChildren) {+ parentNodes.push(node);+ for (const kid of node.children) {+ element.append(this.#walk(kid, parentNodes));+ }+ parentNodes.pop();+ }+ }+ if (node.role === "Link") {+ const annotations = node.children?.filter(child => child.type === "annotation");+ if (annotations?.length === 1) {+ const annotation = annotations[0];+ const ids = [];+ for (const child of element.children) {+ if (child.getAttribute("aria-owns") === annotation.id) {+ continue;+ }+ child.id ||= `${this.#structElementIdPrefix}link_${this.#linkTextId++}`;+ ids.push(child.id);+ }+ this.#pendingLinkOwnership.set(annotation.id, {+ element,+ ids+ });+ }+ }+ return element;+ }+}++;// ./web/text_accessibility.js+++++++class TextAccessibilityManager {+ #enabled = false;+ #textChildren = null;+ #textNodes = new Map();+ #waitingElements = new Map();+ setTextMapping(textDivs) {+ this.#textChildren = textDivs;+ }+ static #compareElementPositions(e1, e2) {+ const rect1 = e1.getBoundingClientRect();+ const rect2 = e2.getBoundingClientRect();+ if (rect1.width === 0 && rect1.height === 0) {+ return +1;+ }+ if (rect2.width === 0 && rect2.height === 0) {+ return -1;+ }+ const top1 = rect1.y;+ const bot1 = rect1.y + rect1.height;+ const mid1 = rect1.y + rect1.height / 2;+ const top2 = rect2.y;+ const bot2 = rect2.y + rect2.height;+ const mid2 = rect2.y + rect2.height / 2;+ if (mid1 <= top2 && mid2 >= bot1) {+ return -1;+ }+ if (mid2 <= top1 && mid1 >= bot2) {+ return +1;+ }+ const centerX1 = rect1.x + rect1.width / 2;+ const centerX2 = rect2.x + rect2.width / 2;+ return centerX1 - centerX2;+ }+ enable() {+ if (this.#enabled) {+ throw new Error("TextAccessibilityManager is already enabled.");+ }+ if (!this.#textChildren) {+ throw new Error("Text divs and strings have not been set.");+ }+ this.#enabled = true;+ this.#textChildren = this.#textChildren.slice();+ this.#textChildren.sort(TextAccessibilityManager.#compareElementPositions);+ if (this.#textNodes.size > 0) {+ const textChildren = this.#textChildren;+ for (const [id, nodeIndex] of this.#textNodes) {+ const element = document.getElementById(id);+ if (!element) {+ this.#textNodes.delete(id);+ continue;+ }+ this.#addIdToAriaOwns(id, textChildren[nodeIndex]);+ }+ }+ for (const [element, isRemovable] of this.#waitingElements) {+ this.addPointerInTextLayer(element, isRemovable);+ }+ this.#waitingElements.clear();+ }+ disable() {+ if (!this.#enabled) {+ return;+ }+ this.#waitingElements.clear();+ this.#textChildren = null;+ this.#enabled = false;+ }+ removePointerInTextLayer(element) {+ if (!this.#enabled) {+ this.#waitingElements.delete(element);+ return;+ }+ const children = this.#textChildren;+ if (!children?.length) {+ return;+ }+ const {+ id+ } = element;+ const nodeIndex = this.#textNodes.get(id);+ if (nodeIndex === undefined) {+ return;+ }+ const node = children[nodeIndex];+ this.#textNodes.delete(id);+ let owns = node.getAttribute("aria-owns");+ if (owns?.includes(id)) {+ owns = owns.split(" ").filter(x => x !== id).join(" ");+ if (owns) {+ node.setAttribute("aria-owns", owns);+ } else {+ node.removeAttribute("aria-owns");+ node.setAttribute("role", "presentation");+ }+ }+ }+ #addIdToAriaOwns(id, node) {+ const owns = node.getAttribute("aria-owns");+ if (!owns?.includes(id)) {+ node.setAttribute("aria-owns", owns ? `${owns} ${id}` : id);+ }+ node.removeAttribute("role");+ }+ addPointerInTextLayer(element, isRemovable) {+ const {+ id+ } = element;+ if (!id) {+ return null;+ }+ if (!this.#enabled) {+ this.#waitingElements.set(element, isRemovable);+ return null;+ }+ if (isRemovable) {+ this.removePointerInTextLayer(element);+ }+ const children = this.#textChildren;+ if (!children?.length) {+ return null;+ }+ const index = binarySearchFirstItem(children, node => TextAccessibilityManager.#compareElementPositions(element, node) < 0);+ const nodeIndex = Math.max(0, index - 1);+ const child = children[nodeIndex];+ this.#addIdToAriaOwns(id, child);+ this.#textNodes.set(id, nodeIndex);+ const parent = child.parentNode;+ return parent?.classList.contains("markedContent") ? parent.id : null;+ }+ moveElementInDOM(container, element, contentElement, isRemovable) {+ const id = this.addPointerInTextLayer(contentElement, isRemovable);+ if (!container.hasChildNodes()) {+ container.append(element);+ return id;+ }+ const children = Array.from(container.childNodes).filter(node => node !== element);+ if (children.length === 0) {+ return id;+ }+ const index = binarySearchFirstItem(children, node => TextAccessibilityManager.#compareElementPositions(element, node) < 0);+ if (index === 0) {+ children[0].before(element);+ } else {+ children[index - 1].after(element);+ }+ return id;+ }+}++;// ./web/text_highlighter.js++++class TextHighlighter {+ #eventAC = null;+ constructor({+ findController,+ eventBus,+ pageIndex+ }) {+ this.findController = findController;+ this.matches = [];+ this.eventBus = eventBus;+ this.pageIdx = pageIndex;+ this.textDivs = null;+ this.textContentItemsStr = null;+ this.enabled = false;+ }+ setTextMapping(divs, texts) {+ this.textDivs = divs;+ this.textContentItemsStr = texts;+ }+ enable() {+ if (!this.textDivs || !this.textContentItemsStr) {+ throw new Error("Text divs and strings have not been set.");+ }+ if (this.enabled) {+ throw new Error("TextHighlighter is already enabled.");+ }+ this.enabled = true;+ if (!this.#eventAC) {+ this.#eventAC = new AbortController();+ this.eventBus.on("updatetextlayermatches", evt => {+ if (evt.pageIndex === this.pageIdx || evt.pageIndex === -1) {+ this._updateMatches();+ }+ }, {+ signal: this.#eventAC.signal,+ ...internalOpt+ });+ }+ this._updateMatches();+ }+ disable() {+ if (!this.enabled) {+ return;+ }+ this.enabled = false;+ this.#eventAC?.abort();+ this.#eventAC = null;+ this._updateMatches(true);+ }+ _convertMatches(matches, matchesLength) {+ if (!matches) {+ return [];+ }+ const {+ textContentItemsStr+ } = this;+ let i = 0,+ iIndex = 0;+ const end = textContentItemsStr.length - 1;+ const result = [];+ for (let m = 0, mm = matches.length; m < mm; m++) {+ let matchIdx = matches[m];+ while (i !== end && matchIdx >= iIndex + textContentItemsStr[i].length) {+ iIndex += textContentItemsStr[i].length;+ i++;+ }+ if (i === textContentItemsStr.length) {+ console.error("Could not find a matching mapping");+ }+ const match = {+ begin: {+ divIdx: i,+ offset: matchIdx - iIndex+ }+ };+ matchIdx += matchesLength[m];+ while (i !== end && matchIdx > iIndex + textContentItemsStr[i].length) {+ iIndex += textContentItemsStr[i].length;+ i++;+ }+ match.end = {+ divIdx: i,+ offset: matchIdx - iIndex+ };+ result.push(match);+ }+ return result;+ }+ _renderMatches(matches) {+ if (matches.length === 0) {+ return;+ }+ const {+ findController,+ pageIdx+ } = this;+ const {+ textContentItemsStr,+ textDivs+ } = this;+ const isSelectedPage = pageIdx === findController.selected.pageIdx;+ const selectedMatchIdx = findController.selected.matchIdx;+ const highlightAll = findController.state.highlightAll;+ let prevEnd = null;+ const infinity = {+ divIdx: -1,+ offset: undefined+ };+ function beginText(begin, className) {+ const divIdx = begin.divIdx;+ textDivs[divIdx].textContent = "";+ return appendTextToDiv(divIdx, 0, begin.offset, className);+ }+ function appendTextToDiv(divIdx, fromOffset, toOffset, className) {+ let div = textDivs[divIdx];+ if (div.nodeType === Node.TEXT_NODE) {+ const span = document.createElement("span");+ div.before(span);+ span.append(div);+ textDivs[divIdx] = span;+ div = span;+ }+ const content = textContentItemsStr[divIdx].substring(fromOffset, toOffset);+ const node = document.createTextNode(content);+ if (className) {+ const span = document.createElement("span");+ span.className = `${className} appended`;+ span.append(node);+ div.append(span);+ if (className.includes("selected")) {+ return span;+ }+ return null;+ }+ div.append(node);+ return 0;+ }+ let i0 = selectedMatchIdx,+ i1 = i0 + 1;+ if (highlightAll) {+ i0 = 0;+ i1 = matches.length;+ } else if (!isSelectedPage) {+ return;+ }+ let lastDivIdx = -1;+ let lastOffset = -1;+ for (let i = i0; i < i1; i++) {+ const match = matches[i];+ const begin = match.begin;+ if (begin.divIdx === lastDivIdx && begin.offset === lastOffset) {+ continue;+ }+ lastDivIdx = begin.divIdx;+ lastOffset = begin.offset;+ const end = match.end;+ const isSelected = isSelectedPage && i === selectedMatchIdx;+ const highlightSuffix = isSelected ? " selected" : "";+ let selectedSpan = null;+ if (!prevEnd || begin.divIdx !== prevEnd.divIdx) {+ if (prevEnd !== null) {+ appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset);+ }+ beginText(begin);+ } else {+ appendTextToDiv(prevEnd.divIdx, prevEnd.offset, begin.offset);+ }+ if (begin.divIdx === end.divIdx) {+ selectedSpan = appendTextToDiv(begin.divIdx, begin.offset, end.offset, "highlight" + highlightSuffix);+ } else {+ selectedSpan = appendTextToDiv(begin.divIdx, begin.offset, infinity.offset, "highlight begin" + highlightSuffix);+ for (let n0 = begin.divIdx + 1, n1 = end.divIdx; n0 < n1; n0++) {+ textDivs[n0].className = "highlight middle" + highlightSuffix;+ }+ beginText(end, "highlight end" + highlightSuffix);+ }+ prevEnd = end;+ if (isSelected) {+ findController.scrollMatchIntoView({+ element: selectedSpan,+ pageIndex: pageIdx,+ matchIndex: selectedMatchIdx+ });+ }+ }+ if (prevEnd) {+ appendTextToDiv(prevEnd.divIdx, prevEnd.offset, infinity.offset);+ }+ }+ _updateMatches(reset = false) {+ if (!this.enabled && !reset) {+ return;+ }+ const {+ findController,+ matches,+ pageIdx+ } = this;+ const {+ textContentItemsStr,+ textDivs+ } = this;+ let clearedUntilDivIdx = -1;+ for (const match of matches) {+ const begin = Math.max(clearedUntilDivIdx, match.begin.divIdx);+ for (let n = begin, end = match.end.divIdx; n <= end; n++) {+ const div = textDivs[n];+ div.textContent = textContentItemsStr[n];+ div.className = "";+ }+ clearedUntilDivIdx = match.end.divIdx + 1;+ }+ if (!findController?.highlightMatches || reset) {+ return;+ }+ const pageMatches = findController.pageMatches[pageIdx] || null;+ const pageMatchesLength = findController.pageMatchesLength[pageIdx] || null;+ this.matches = this._convertMatches(pageMatches, pageMatchesLength);+ this._renderMatches(this.matches);+ }+}++;// ./web/text_layer_builder.js+++++++++++++++class TextLayerBuilder {+ #abortSignal = null;+ #enablePermissions = false;+ #onAppend = null;+ #renderingDone = false;+ #textLayer = null;+ static #textLayers = new Map();+ static #selectionChangeAC = null;+ constructor({+ pdfPage,+ highlighter = null,+ accessibilityManager = null,+ enablePermissions = false,+ onAppend = null,+ abortSignal = null+ }) {+ this.pdfPage = pdfPage;+ this.highlighter = highlighter;+ this.accessibilityManager = accessibilityManager;+ this.#enablePermissions = enablePermissions === true;+ this.#onAppend = onAppend;+ this.#abortSignal = abortSignal;+ this.div = document.createElement("div");+ this.div.tabIndex = 0;+ this.div.className = "textLayer";+ }+ async render({+ viewport,+ images,+ textContentParams = null+ }) {+ if (this.#renderingDone && this.#textLayer) {+ this.#textLayer.update({+ viewport,+ onBefore: this.hide.bind(this)+ });+ this.show();+ return;+ }+ this.cancel();+ this.#textLayer = new TextLayer({+ textContentSource: this.pdfPage.streamTextContent(textContentParams || {+ includeMarkedContent: true,+ disableNormalization: true+ }),+ images,+ container: this.div,+ viewport+ });+ const {+ textDivs,+ textContentItemsStr+ } = this.#textLayer;+ this.highlighter?.setTextMapping(textDivs, textContentItemsStr);+ this.accessibilityManager?.setTextMapping(textDivs);+ await this.#textLayer.render();+ this.#renderingDone = true;+ const endOfContent = document.createElement("div");+ endOfContent.className = "endOfContent";+ this.div.append(endOfContent);+ this.#bindMouse(endOfContent);+ this.#onAppend?.(this.div);+ this.highlighter?.enable();+ this.accessibilityManager?.enable();+ }+ hide() {+ if (!this.div.hidden && this.#renderingDone) {+ this.highlighter?.disable();+ this.div.hidden = true;+ }+ }+ show() {+ if (this.div.hidden && this.#renderingDone) {+ this.div.hidden = false;+ this.highlighter?.enable();+ }+ }+ cancel() {+ this.#textLayer?.cancel();+ this.#textLayer = null;+ this.#renderingDone = false;+ this.div.replaceChildren();+ this.highlighter?.disable();+ this.accessibilityManager?.disable();+ TextLayerBuilder.#removeGlobalSelectionListener(this.div);+ }+ #bindMouse(end) {+ const {+ div+ } = this;+ const abortSignal = this.#abortSignal;+ const opts = abortSignal ? {+ signal: abortSignal+ } : null;+ div.addEventListener("mousedown", () => {+ div.classList.add("selecting");+ }, opts);+ div.addEventListener("copy", event => {+ if (!this.#enablePermissions) {+ const selection = document.getSelection();+ event.clipboardData.setData("text/plain", removeNullCharacters(normalizeUnicode(selection.toString())));+ }+ stopEvent(event);+ }, opts);+ TextLayerBuilder.#textLayers.set(div, end);+ TextLayerBuilder.#enableGlobalSelectionListener(abortSignal);+ }+ static #removeGlobalSelectionListener(textLayerDiv) {+ this.#textLayers.delete(textLayerDiv);+ if (this.#textLayers.size === 0) {+ this.#selectionChangeAC?.abort();+ this.#selectionChangeAC = null;+ }+ }+ static #enableGlobalSelectionListener(globalAbortSignal) {+ if (this.#selectionChangeAC) {+ return;+ }+ this.#selectionChangeAC = new AbortController();+ const signal = globalAbortSignal ? AbortSignal.any([this.#selectionChangeAC.signal, globalAbortSignal]) : this.#selectionChangeAC.signal;+ const reset = (end, textLayer) => {+ textLayer.append(end);+ end.style.width = "";+ end.style.height = "";+ textLayer.classList.remove("selecting");+ };+ let isPointerDown = false;+ document.addEventListener("pointerdown", () => {+ isPointerDown = true;+ }, {+ signal+ });+ document.addEventListener("pointerup", () => {+ isPointerDown = false;+ this.#textLayers.forEach(reset);+ }, {+ signal+ });+ window.addEventListener("blur", () => {+ isPointerDown = false;+ this.#textLayers.forEach(reset);+ }, {+ signal+ });+ document.addEventListener("keyup", () => {+ if (!isPointerDown) {+ this.#textLayers.forEach(reset);+ }+ }, {+ signal+ });+ var isFirefoxOrModernChromium, prevRange;+ document.addEventListener("selectionchange", () => {+ const selection = document.getSelection();+ if (selection.rangeCount === 0) {+ this.#textLayers.forEach(reset);+ return;+ }+ const activeTextLayers = new Set();+ for (let i = 0; i < selection.rangeCount; i++) {+ const range = selection.getRangeAt(i);+ for (const textLayerDiv of this.#textLayers.keys()) {+ if (!activeTextLayers.has(textLayerDiv) && range.intersectsNode(textLayerDiv)) {+ activeTextLayers.add(textLayerDiv);+ }+ }+ }+ for (const [textLayerDiv, endDiv] of this.#textLayers) {+ if (activeTextLayers.has(textLayerDiv)) {+ textLayerDiv.classList.add("selecting");+ } else {+ reset(endDiv, textLayerDiv);+ }+ }+ if (isFirefoxOrModernChromium === undefined) {+ isFirefoxOrModernChromium = getComputedStyle(this.#textLayers.values().next().value).getPropertyValue("-moz-user-select") === "none";+ if (!isFirefoxOrModernChromium) {+ const chromiumVersion = navigator.userAgentData ? navigator.userAgentData.brands.find(({+ brand+ }) => brand === "Chromium")?.version : /\bChrome\/(\d+)\b/.exec(navigator.userAgent)?.[1];+ isFirefoxOrModernChromium = !!chromiumVersion && parseInt(chromiumVersion, 10) >= 148;+ }+ }+ if (isFirefoxOrModernChromium) {+ return;+ }+ const range = selection.getRangeAt(0);+ const modifyStart = prevRange && (range.compareBoundaryPoints(Range.END_TO_END, prevRange) === 0 || range.compareBoundaryPoints(Range.START_TO_END, prevRange) === 0);+ let anchor = modifyStart ? range.startContainer : range.endContainer;+ if (anchor.nodeType === Node.TEXT_NODE) {+ anchor = anchor.parentNode;+ }+ if (anchor.classList?.contains("highlight")) {+ anchor = anchor.parentNode;+ }+ if (!modifyStart && range.endOffset === 0) {+ do {+ while (!anchor.previousSibling) {+ anchor = anchor.parentNode;+ }+ anchor = anchor.previousSibling;+ } while (!anchor.childNodes.length);+ }+ const parentTextLayer = anchor.parentElement?.closest(".textLayer");+ const endDiv = this.#textLayers.get(parentTextLayer);+ if (endDiv) {+ endDiv.style.width = parentTextLayer.style.width;+ endDiv.style.height = parentTextLayer.style.height;+ endDiv.style.userSelect = "text";+ anchor.parentElement.insertBefore(endDiv, modifyStart ? anchor : anchor.nextSibling);+ }+ prevRange = range.cloneRange();+ }, {+ signal+ });+ }+}++;// ./web/xfa_layer_builder.js++class XfaLayerBuilder {+ #cancelled = false;+ div = null;+ constructor({+ pdfPage,+ annotationStorage = null,+ linkService,+ xfaHtml = null+ }) {+ this.pdfPage = pdfPage;+ this.annotationStorage = annotationStorage;+ this.linkService = linkService;+ this.xfaHtml = xfaHtml;+ }+ async render({+ viewport,+ intent = "display"+ }) {+ let xfaHtml;+ if (intent === "print") {+ xfaHtml = this.xfaHtml;+ } else {+ xfaHtml = await this.pdfPage.getXfa();+ if (this.#cancelled || !xfaHtml) {+ return {+ textDivs: []+ };+ }+ }+ const hasDiv = !!this.div;+ const params = {+ viewport: viewport.clone({+ dontFlip: true+ }),+ div: this.div ??= document.createElement("div"),+ xfaHtml,+ annotationStorage: this.annotationStorage,+ linkService: this.linkService,+ intent+ };+ return hasDiv ? XfaLayer.update(params) : XfaLayer.render(params);+ }+ cancel() {+ this.#cancelled = true;+ }+ hide() {+ if (!this.div) {+ return;+ }+ this.div.hidden = true;+ }+}++;// ./web/pdf_page_view.js++++++++++++++++++++++const DEFAULT_LAYER_PROPERTIES = {+ annotationEditorUIManager: null,+ annotationStorage: null,+ downloadManager: null,+ enableScripting: false,+ fieldObjectsPromise: null,+ findController: null,+ hasJSActionsPromise: null,+ get linkService() {+ return new SimpleLinkService();+ }+};+const LAYERS_ORDER = new Map([["canvasWrapper", 0], ["textLayer", 1], ["annotationLayer", 2], ["annotationEditorLayer", 3], ["xfaLayer", 3]]);+class PDFPageView extends BasePDFPageView {+ #abortSignal = null;+ #annotationMode = AnnotationMode.ENABLE_FORMS;+ #canvasWrapper = null;+ #commentManager = null;+ #enableAutoLinking = true;+ #hasRestrictedScaling = false;+ #isEditing = false;+ #layerProperties = null;+ #needsRestrictedScaling = false;+ #originalViewport = null;+ #previousRotation = null;+ #scaleRoundX = 1;+ #scaleRoundY = 1;+ #textLayerMode = TextLayerMode.ENABLE;+ #userUnit = 1;+ #useThumbnailCanvas = {+ directDrawing: true,+ initialOptionalContent: true,+ regularAnnotations: true+ };+ #layers = [null, null, null, null];+ constructor(options) {+ super(options);+ const {+ container,+ defaultViewport+ } = options;+ this.renderingId = "page" + this.id;+ this.#layerProperties = options.layerProperties || DEFAULT_LAYER_PROPERTIES;+ this.#abortSignal = options.abortSignal || null;+ this.pdfPage = null;+ this.pageLabel = null;+ this.rotation = 0;+ this.scale = options.scale || (/* inlined export .DEFAULT_SCALE */1);+ this.viewport = defaultViewport;+ this.pdfPageRotate = defaultViewport.rotation;+ this._optionalContentConfigPromise = options.optionalContentConfigPromise || null;+ this.#textLayerMode = options.textLayerMode ?? TextLayerMode.ENABLE;+ this.#annotationMode = options.annotationMode ?? AnnotationMode.ENABLE_FORMS;+ this.imageResourcesPath = options.imageResourcesPath || "";+ this.enableDetailCanvas = options.enableDetailCanvas ?? true;+ this.maxCanvasPixels = options.maxCanvasPixels ?? AppOptions.get("maxCanvasPixels");+ this.maxCanvasDim = options.maxCanvasDim || AppOptions.get("maxCanvasDim");+ this.capCanvasAreaFactor = options.capCanvasAreaFactor ?? AppOptions.get("capCanvasAreaFactor");+ this.#enableAutoLinking = options.enableAutoLinking !== false;+ this.#commentManager = options.commentManager || null;+ this.l10n = options.l10n;+ this.l10n ||= new genericl10n_GenericL10n();+ this._isStandalone = !this.renderingQueue?.hasViewer();+ this._container = container;+ this._annotationCanvasMap = null;+ this.annotationLayer = null;+ this.annotationEditorLayer = null;+ this.textLayer = null;+ this.xfaLayer = null;+ this.structTreeLayer = null;+ this.drawLayer = null;+ this.detailView = null;+ const div = document.createElement("div");+ div.className = "page";+ div.setAttribute("data-page-number", this.id);+ div.setAttribute("role", "region");+ div.setAttribute("data-l10n-id", "pdfjs-page-landmark");+ div.setAttribute("data-l10n-args", JSON.stringify({+ page: this.id+ }));+ this.div = div;+ this.#setDimensions();+ container?.append(div);+ if (this._isStandalone) {+ container?.style.setProperty("--scale-factor", this.scale * PixelsPerInch.PDF_TO_CSS_UNITS);+ if (this.pageColors?.background) {+ container?.style.setProperty("--page-bg-color", this.pageColors.background);+ }+ const {+ optionalContentConfigPromise+ } = options;+ if (optionalContentConfigPromise) {+ optionalContentConfigPromise.then(optionalContentConfig => {+ if (optionalContentConfigPromise !== this._optionalContentConfigPromise) {+ return;+ }+ this.#useThumbnailCanvas.initialOptionalContent = optionalContentConfig.hasInitialVisibility;+ });+ }+ if (!options.l10n) {+ this.l10n.translate(this.div);+ }+ }+ }+ clone(id) {+ const clone = new PDFPageView({+ container: null,+ eventBus: this.eventBus,+ pagesColors: this.pageColors,+ renderingQueue: this.renderingQueue,+ enableOptimizedPartialRendering: this.enableOptimizedPartialRendering,+ minDurationToUpdateCanvas: this.minDurationToUpdateCanvas,+ defaultViewport: this.viewport,+ id,+ layerProperties: this.#layerProperties,+ abortSignal: this.#abortSignal,+ scale: this.scale,+ optionalContentConfigPromise: this._optionalContentConfigPromise,+ textLayerMode: this.#textLayerMode,+ annotationMode: this.#annotationMode,+ imageResourcesPath: this.imageResourcesPath,+ enableDetailCanvas: this.enableDetailCanvas,+ maxCanvasPixels: this.maxCanvasPixels,+ maxCanvasDim: this.maxCanvasDim,+ capCanvasAreaFactor: this.capCanvasAreaFactor,+ enableAutoLinking: this.#enableAutoLinking,+ commentManager: this.#commentManager,+ l10n: this.l10n+ });+ clone.setPdfPage(this.pdfPage.clone(id - 1));+ return clone;+ }+ #addLayer(div, name) {+ const pos = LAYERS_ORDER.get(name);+ const oldDiv = this.#layers[pos];+ this.#layers[pos] = div;+ if (oldDiv) {+ oldDiv.replaceWith(div);+ return;+ }+ for (let i = pos - 1; i >= 0; i--) {+ const layer = this.#layers[i];+ if (layer) {+ layer.after(div);+ return;+ }+ }+ this.div.prepend(div);+ }+ #setDimensions() {+ const {+ div,+ viewport+ } = this;+ if (viewport.userUnit !== this.#userUnit) {+ if (viewport.userUnit !== 1) {+ div.style.setProperty("--user-unit", viewport.userUnit);+ } else {+ div.style.removeProperty("--user-unit");+ }+ this.#userUnit = viewport.userUnit;+ }+ if (this.pdfPage) {+ if (this.#previousRotation === viewport.rotation) {+ return;+ }+ this.#previousRotation = viewport.rotation;+ }+ setLayerDimensions(div, viewport, true, false);+ }+ updatePageNumber(newPageNumber) {+ const oldPageNumber = this.id;+ if (oldPageNumber !== newPageNumber) {+ this.id = newPageNumber;+ this.renderingId = `page${newPageNumber}`;+ if (this.pdfPage) {+ this.pdfPage.pageNumber = newPageNumber;+ }+ this.setPageLabel(this.pageLabel);+ const {+ div+ } = this;+ div.setAttribute("data-page-number", newPageNumber);+ div.setAttribute("data-l10n-args", JSON.stringify({+ page: newPageNumber+ }));+ this._textHighlighter.pageIdx = newPageNumber - 1;+ }+ this.#layerProperties.annotationEditorUIManager?.updatePageIndex(oldPageNumber - 1, newPageNumber - 1);+ }+ setPdfPage(pdfPage) {+ if (this._isStandalone && (this.pageColors?.foreground === "CanvasText" || this.pageColors?.background === "Canvas")) {+ this._container?.style.setProperty("--hcm-highlight-filter", pdfPage.filterFactory.addHighlightHCMFilter("highlight", "CanvasText", "Canvas", "HighlightText", "Highlight"));+ this._container?.style.setProperty("--hcm-highlight-selected-filter", pdfPage.filterFactory.addHighlightHCMFilter("highlight_selected", "CanvasText", "Canvas", "HighlightText", "Highlight"));+ }+ this.pdfPage = pdfPage;+ this.pdfPageRotate = pdfPage.rotate;+ const totalRotation = (this.rotation + this.pdfPageRotate) % 360;+ this.viewport = pdfPage.getViewport({+ scale: this.scale * PixelsPerInch.PDF_TO_CSS_UNITS,+ rotation: totalRotation+ });+ this.#setDimensions();+ this.reset();+ }+ destroy() {+ this.reset();+ this.pdfPage?.cleanup();+ }+ deleteMe(isCut) {+ if (isCut) {+ this.div.remove();+ return;+ }+ this.destroy();+ this.#layerProperties.annotationEditorUIManager?.deletePage(this.id);+ }+ hasEditableAnnotations() {+ return !!this.annotationLayer?.hasEditableAnnotations();+ }+ get _textHighlighter() {+ return shadow(this, "_textHighlighter", new TextHighlighter({+ pageIndex: this.id - 1,+ eventBus: this.eventBus,+ findController: this.#layerProperties.findController+ }));+ }+ #dispatchLayerRendered(name, error) {+ this.eventBus.dispatch(name, {+ source: this,+ pageNumber: this.id,+ error+ });+ }+ async #renderAnnotationLayer(textLayerPromise = null) {+ const {+ annotationLayer,+ textLayer+ } = this;+ let error = null;+ try {+ await this.annotationLayer.render({+ viewport: this.viewport,+ intent: "display",+ structTreeLayer: this.structTreeLayer,+ optionalContentConfigPromise: this._optionalContentConfigPromise+ });+ } catch (ex) {+ console.error("#renderAnnotationLayer:", ex);+ error = ex;+ } finally {+ this.#dispatchLayerRendered("annotationlayerrendered", error);+ }+ if (this.#enableAutoLinking && textLayerPromise) {+ this.#injectLinkAnnotations(textLayerPromise, annotationLayer, textLayer);+ }+ }+ _refreshAnnotationLayer() {+ if (this._annotationCanvasMap?.size) {+ this.annotationLayer?.refreshCanvases();+ }+ }+ async #renderAnnotationEditorLayer() {+ let error = null;+ try {+ await this.annotationEditorLayer.render({+ viewport: this.viewport,+ intent: "display"+ });+ } catch (ex) {+ console.error("#renderAnnotationEditorLayer:", ex);+ error = ex;+ } finally {+ this.#dispatchLayerRendered("annotationeditorlayerrendered", error);+ }+ }+ async #renderDrawLayer() {+ try {+ await this.drawLayer.render({+ intent: "display"+ });+ } catch (ex) {+ console.error("#renderDrawLayer:", ex);+ }+ }+ async #renderXfaLayer() {+ let error = null;+ try {+ const result = await this.xfaLayer.render({+ viewport: this.viewport,+ intent: "display"+ });+ if (result?.textDivs && this._textHighlighter) {+ this.#buildXfaTextContentItems(result.textDivs);+ }+ } catch (ex) {+ console.error("#renderXfaLayer:", ex);+ error = ex;+ } finally {+ if (this.xfaLayer?.div) {+ this.l10n.pause();+ this.#addLayer(this.xfaLayer.div, "xfaLayer");+ this.l10n.resume();+ }+ this.#dispatchLayerRendered("xfalayerrendered", error);+ }+ }+ async #renderTextLayer() {+ let error = null;+ try {+ await this.textLayer.render({+ viewport: this.viewport,+ images: this.imageCoordinates ? new TextLayerImages(this.imagesRightClickMinSize, this.imageCoordinates, this.viewport, () => this.canvas) : null+ });+ } catch (ex) {+ if (ex instanceof AbortException) {+ return;+ }+ console.error("#renderTextLayer:", ex);+ error = ex;+ }+ this.#dispatchLayerRendered("textlayerrendered", error);+ this.#renderStructTreeLayer();+ }+ async #renderStructTreeLayer() {+ const treeDom = await this.structTreeLayer?.render();+ if (treeDom) {+ this.l10n.pause();+ this.structTreeLayer?.updateTextLayer();+ if (this.canvas && treeDom.parentNode !== this.canvas) {+ this.canvas.append(treeDom);+ }+ this.l10n.resume();+ }+ this.structTreeLayer?.show();+ }+ async #buildXfaTextContentItems(textDivs) {+ const text = await this.pdfPage.getTextContent();+ const items = [];+ for (const item of text.items) {+ items.push(item.str);+ }+ this._textHighlighter.setTextMapping(textDivs, items);+ this._textHighlighter.enable();+ }+ async #injectLinkAnnotations(textLayerPromise, annotationLayer, textLayer) {+ let error = null;+ try {+ await textLayerPromise;+ if (annotationLayer !== this.annotationLayer || textLayer !== this.textLayer) {+ return;+ }+ await annotationLayer.injectLinkAnnotations(Autolinker.processLinks(this));+ } catch (ex) {+ console.error("#injectLinkAnnotations:", ex);+ error = ex;+ }+ this.#dispatchLayerRendered("linkannotationsadded", error);+ }+ _resetCanvas() {+ super._resetCanvas();+ this.#originalViewport = null;+ }+ reset({+ keepAnnotationLayer = false,+ keepAnnotationEditorLayer = false,+ keepXfaLayer = false,+ keepTextLayer = false,+ keepCanvasWrapper = false,+ preserveDetailViewState = false+ } = {}) {+ const keepPdfBugGroups = this.pdfPage?._pdfBug ?? false;+ this.cancelRendering({+ keepAnnotationLayer,+ keepAnnotationEditorLayer,+ keepXfaLayer,+ keepTextLayer+ });+ this.renderingState = RenderingStates.INITIAL;+ const div = this.div;+ const childNodes = div.childNodes,+ annotationLayerNode = keepAnnotationLayer && this.annotationLayer?.div || null,+ annotationEditorLayerNode = keepAnnotationEditorLayer && this.annotationEditorLayer?.div || null,+ xfaLayerNode = keepXfaLayer && this.xfaLayer?.div || null,+ textLayerNode = keepTextLayer && this.textLayer?.div || null,+ canvasWrapperNode = keepCanvasWrapper && this.#canvasWrapper || null;+ for (let i = childNodes.length - 1; i >= 0; i--) {+ const node = childNodes[i];+ switch (node) {+ case annotationLayerNode:+ case annotationEditorLayerNode:+ case xfaLayerNode:+ case textLayerNode:+ case canvasWrapperNode:+ continue;+ }+ if (keepPdfBugGroups && node.classList.contains("pdfBugGroupsLayer")) {+ continue;+ }+ node.remove();+ const layerIndex = this.#layers.indexOf(node);+ if (layerIndex >= 0) {+ this.#layers[layerIndex] = null;+ }+ }+ div.removeAttribute("data-loaded");+ if (annotationLayerNode) {+ this.annotationLayer.hide();+ }+ if (annotationEditorLayerNode) {+ this.annotationEditorLayer.hide();+ }+ if (xfaLayerNode) {+ this.xfaLayer.hide();+ }+ if (textLayerNode) {+ this.textLayer.hide();+ }+ this.structTreeLayer?.hide();+ if (!keepCanvasWrapper && this.#canvasWrapper) {+ this.#canvasWrapper = null;+ this._resetCanvas();+ }+ if (!preserveDetailViewState) {+ this.detailView?.reset({+ keepCanvas: keepCanvasWrapper+ });+ if (!keepCanvasWrapper) {+ this.detailView = null;+ }+ }+ }+ toggleEditingMode(isEditing) {+ this.#isEditing = isEditing;+ if (!this.hasEditableAnnotations()) {+ return;+ }+ this.reset({+ keepAnnotationLayer: true,+ keepAnnotationEditorLayer: true,+ keepXfaLayer: true,+ keepTextLayer: true,+ keepCanvasWrapper: true+ });+ }+ updateVisibleArea(visibleArea) {+ if (this.enableDetailCanvas) {+ if (this.#needsRestrictedScaling && this.maxCanvasPixels > 0 && visibleArea) {+ this.detailView ??= new PDFPageDetailView({+ pageView: this,+ enableOptimizedPartialRendering: this.enableOptimizedPartialRendering,+ imagesRightClickMinSize: -1+ });+ this.detailView.update({+ visibleArea+ });+ } else if (this.detailView) {+ this.detailView.reset();+ this.detailView = null;+ }+ }+ }+ update({+ scale = 0,+ rotation = null,+ optionalContentConfigPromise = null,+ drawingDelay = -1+ }) {+ this.scale = scale || this.scale;+ if (typeof rotation === "number") {+ this.rotation = rotation;+ }+ if (optionalContentConfigPromise instanceof Promise) {+ this._optionalContentConfigPromise = optionalContentConfigPromise;+ optionalContentConfigPromise.then(optionalContentConfig => {+ if (optionalContentConfigPromise !== this._optionalContentConfigPromise) {+ return;+ }+ this.#useThumbnailCanvas.initialOptionalContent = optionalContentConfig.hasInitialVisibility;+ });+ }+ this.#useThumbnailCanvas.directDrawing = true;+ const totalRotation = (this.rotation + this.pdfPageRotate) % 360;+ this.viewport = this.viewport.clone({+ scale: this.scale * PixelsPerInch.PDF_TO_CSS_UNITS,+ rotation: totalRotation+ });+ this.#setDimensions();+ if (this._isStandalone) {+ this._container?.style.setProperty("--scale-factor", this.viewport.scale);+ }+ this.#computeScale();+ if (this.canvas) {+ const onlyCssZoom = this.#hasRestrictedScaling && this.#needsRestrictedScaling;+ const postponeDrawing = drawingDelay >= 0 && drawingDelay < 1000;+ if (postponeDrawing || onlyCssZoom) {+ if (postponeDrawing && !onlyCssZoom && this.renderingState !== RenderingStates.FINISHED) {+ this.cancelRendering({+ keepAnnotationLayer: true,+ keepAnnotationEditorLayer: true,+ keepXfaLayer: true,+ keepTextLayer: true,+ cancelExtraDelay: drawingDelay+ });+ this.renderingState = RenderingStates.FINISHED;+ this.#useThumbnailCanvas.directDrawing = false;+ }+ this.cssTransform({+ redrawAnnotationLayer: true,+ redrawAnnotationEditorLayer: true,+ redrawXfaLayer: true,+ redrawTextLayer: !postponeDrawing,+ hideTextLayer: postponeDrawing+ });+ if (!postponeDrawing) {+ this.detailView?.update({+ underlyingViewUpdated: true+ });+ this.dispatchPageRendered(true, false);+ }+ return;+ }+ }+ this.cssTransform({});+ this.annotationEditorLayer?.update(this.viewport);+ this.reset({+ keepAnnotationLayer: true,+ keepAnnotationEditorLayer: true,+ keepXfaLayer: true,+ keepTextLayer: true,+ keepCanvasWrapper: true,+ preserveDetailViewState: true+ });+ this.detailView?.update({+ underlyingViewUpdated: true+ });+ }+ #computeScale() {+ const {+ width,+ height+ } = this.viewport;+ const outputScale = this.outputScale = new OutputScale();+ if (this.maxCanvasPixels === 0) {+ const invScale = 1 / this.scale;+ outputScale.sx *= invScale;+ outputScale.sy *= invScale;+ this.#needsRestrictedScaling = true;+ } else {+ this.#needsRestrictedScaling = outputScale.limitCanvas(width, height, this.maxCanvasPixels, this.maxCanvasDim, this.capCanvasAreaFactor);+ if (this.#needsRestrictedScaling && this.enableDetailCanvas) {+ const factor = this.enableOptimizedPartialRendering ? 4 : 2;+ outputScale.sx /= factor;+ outputScale.sy /= factor;+ }+ }+ }+ cancelRendering({+ keepAnnotationLayer = false,+ keepAnnotationEditorLayer = false,+ keepXfaLayer = false,+ keepTextLayer = false,+ cancelExtraDelay = 0+ } = {}) {+ super.cancelRendering({+ cancelExtraDelay+ });+ if (this.textLayer && (!keepTextLayer || !this.textLayer.div)) {+ this.textLayer.cancel();+ this.textLayer = null;+ }+ if (this.annotationLayer && (!keepAnnotationLayer || !this.annotationLayer.div)) {+ this.annotationLayer.cancel();+ this.annotationLayer = null;+ this._annotationCanvasMap = null;+ }+ if (this.structTreeLayer && !this.textLayer) {+ this.structTreeLayer = null;+ }+ if (this.annotationEditorLayer && (!keepAnnotationEditorLayer || !this.annotationEditorLayer.div || !this.textLayer)) {+ if (this.drawLayer) {+ this.drawLayer.cancel();+ this.drawLayer = null;+ }+ this.annotationEditorLayer.cancel();+ this.annotationEditorLayer = null;+ }+ if (this.drawLayer && !this.textLayer) {+ this.drawLayer.cancel();+ this.drawLayer = null;+ }+ if (this.xfaLayer && (!keepXfaLayer || !this.xfaLayer.div)) {+ this.xfaLayer.cancel();+ this.xfaLayer = null;+ this._textHighlighter?.disable();+ }+ }+ cssTransform({+ redrawAnnotationLayer = false,+ redrawAnnotationEditorLayer = false,+ redrawXfaLayer = false,+ redrawTextLayer = false,+ hideTextLayer = false+ }) {+ const {+ canvas+ } = this;+ if (!canvas) {+ return;+ }+ const originalViewport = this.#originalViewport;+ if (this.viewport !== originalViewport) {+ const relativeRotation = (360 + this.viewport.rotation - originalViewport.rotation) % 360;+ if (relativeRotation === 90 || relativeRotation === 270) {+ const {+ width,+ height+ } = this.viewport;+ const scaleX = height / width;+ const scaleY = width / height;+ canvas.style.transform = `rotate(${relativeRotation}deg) scale(${scaleX},${scaleY})`;+ } else {+ canvas.style.transform = relativeRotation === 0 ? "" : `rotate(${relativeRotation}deg)`;+ }+ }+ if (redrawAnnotationLayer && this.annotationLayer) {+ this.#renderAnnotationLayer();+ }+ if (redrawAnnotationEditorLayer && this.annotationEditorLayer) {+ if (this.drawLayer) {+ this.#renderDrawLayer();+ }+ this.#renderAnnotationEditorLayer();+ }+ if (redrawXfaLayer && this.xfaLayer) {+ this.#renderXfaLayer();+ }+ if (this.textLayer) {+ if (hideTextLayer) {+ this.textLayer.hide();+ this.structTreeLayer?.hide();+ } else if (redrawTextLayer) {+ this.#renderTextLayer();+ }+ }+ }+ get width() {+ return this.viewport.width;+ }+ get height() {+ return this.viewport.height;+ }+ getPagePoint(x, y) {+ return this.viewport.convertToPdfPoint(x, y);+ }+ _ensureCanvasWrapper() {+ let canvasWrapper = this.#canvasWrapper;+ if (!canvasWrapper) {+ canvasWrapper = this.#canvasWrapper = document.createElement("div");+ canvasWrapper.classList.add("canvasWrapper");+ this.#addLayer(canvasWrapper, "canvasWrapper");+ }+ return canvasWrapper;+ }+ _getRenderingContext(canvas, transform, recordOperations, recordImages) {+ return {+ canvas,+ transform,+ viewport: this.viewport,+ annotationMode: this.#annotationMode,+ optionalContentConfigPromise: this._optionalContentConfigPromise,+ annotationCanvasMap: this._annotationCanvasMap,+ pageColors: this.pageColors,+ isEditing: this.#isEditing,+ recordOperations,+ recordImages+ };+ }+ async draw() {+ if (this.renderingState !== RenderingStates.INITIAL) {+ console.error("Must be in new state before drawing");+ this.reset();+ }+ const {+ div,+ l10n,+ pdfPage,+ viewport+ } = this;+ if (!pdfPage) {+ this.renderingState = RenderingStates.FINISHED;+ throw new Error("pdfPage is not loaded");+ }+ this.renderingState = RenderingStates.RUNNING;+ const canvasWrapper = this._ensureCanvasWrapper();+ if (!this.textLayer && this.#textLayerMode !== TextLayerMode.DISABLE && !pdfPage.isPureXfa) {+ this._accessibilityManager ||= new TextAccessibilityManager();+ this.textLayer = new TextLayerBuilder({+ pdfPage,+ highlighter: this._textHighlighter,+ accessibilityManager: this._accessibilityManager,+ enablePermissions: this.#textLayerMode === TextLayerMode.ENABLE_PERMISSIONS,+ onAppend: textLayerDiv => {+ this.l10n.pause();+ this.#addLayer(textLayerDiv, "textLayer");+ this.l10n.resume();+ },+ abortSignal: this.#abortSignal+ });+ if (this.enableSelectionRendering) {+ this.textLayer.div.classList.add("selectionRendering");+ }+ }+ if (!this.annotationLayer && this.#annotationMode !== AnnotationMode.DISABLE) {+ const {+ annotationStorage,+ annotationEditorUIManager,+ downloadManager,+ enableComment,+ enableScripting,+ fieldObjectsPromise,+ hasJSActionsPromise,+ linkService+ } = this.#layerProperties;+ this._annotationCanvasMap ||= new Map();+ this.annotationLayer = new AnnotationLayerBuilder({+ pdfPage,+ annotationStorage,+ imageResourcesPath: this.imageResourcesPath,+ renderForms: this.#annotationMode === AnnotationMode.ENABLE_FORMS,+ linkService,+ downloadManager,+ enableComment,+ enableScripting,+ hasJSActionsPromise,+ fieldObjectsPromise,+ annotationCanvasMap: this._annotationCanvasMap,+ accessibilityManager: this._accessibilityManager,+ annotationEditorUIManager,+ commentManager: this.#commentManager,+ onAppend: annotationLayerDiv => {+ this.#addLayer(annotationLayerDiv, "annotationLayer");+ }+ });+ }+ const {+ width,+ height+ } = viewport;+ this.#originalViewport = viewport;+ const {+ canvas,+ prevCanvas+ } = this._createCanvas(newCanvas => {+ canvasWrapper.prepend(newCanvas);+ });+ canvas.setAttribute("role", "presentation");+ if (!this.outputScale) {+ this.#computeScale();+ }+ const {+ outputScale+ } = this;+ this.#hasRestrictedScaling = this.#needsRestrictedScaling;+ const sfx = approximateFraction(outputScale.sx);+ const sfy = approximateFraction(outputScale.sy);+ const canvasWidth = canvas.width = floorToDivide(calcRound(width * outputScale.sx), sfx[0]);+ const canvasHeight = canvas.height = floorToDivide(calcRound(height * outputScale.sy), sfy[0]);+ const pageWidth = floorToDivide(calcRound(width), sfx[1]);+ const pageHeight = floorToDivide(calcRound(height), sfy[1]);+ outputScale.sx = canvasWidth / pageWidth;+ outputScale.sy = canvasHeight / pageHeight;+ if (this.#scaleRoundX !== sfx[1]) {+ div.style.setProperty("--scale-round-x", `${sfx[1]}px`);+ this.#scaleRoundX = sfx[1];+ }+ if (this.#scaleRoundY !== sfy[1]) {+ div.style.setProperty("--scale-round-y", `${sfy[1]}px`);+ this.#scaleRoundY = sfy[1];+ }+ const recordBBoxes = this.enableOptimizedPartialRendering && this.#hasRestrictedScaling && !this.recordedBBoxes;+ const recordImages = this.imagesRightClickMinSize !== -1 && !this.imageCoordinates;+ const transform = outputScale.scaled ? [outputScale.sx, 0, 0, outputScale.sy, 0, 0] : null;+ const resultPromise = this._drawCanvas(this._getRenderingContext(canvas, transform, recordBBoxes, recordImages), () => {+ prevCanvas?.remove();+ this._resetCanvas();+ }, renderTask => {+ this.#useThumbnailCanvas.regularAnnotations = !renderTask.separateAnnots;+ this.dispatchPageRendered(false, false);+ }).then(async () => {+ if (this.renderingState !== RenderingStates.FINISHED) {+ return;+ }+ this.structTreeLayer ||= new StructTreeLayerBuilder(pdfPage, viewport.rawDims);+ const textLayerPromise = this.textLayer ? this.#renderTextLayer() : null;+ if (this.annotationLayer) {+ await this.#renderAnnotationLayer(textLayerPromise);+ }+ this.drawLayer ||= new DrawLayerBuilder({+ pageIndex: this.id,+ textLayer: this.enableSelectionRendering ? this.textLayer?.div : null,+ filterFactory: this.pdfPage?.filterFactory,+ pageColors: this.pageColors+ });+ await this.#renderDrawLayer();+ this.drawLayer.setParent(canvasWrapper);+ const {+ annotationEditorUIManager+ } = this.#layerProperties;+ if (!annotationEditorUIManager) {+ return;+ }+ if (this.annotationLayer || this.#annotationMode === AnnotationMode.DISABLE) {+ this.annotationEditorLayer ||= new AnnotationEditorLayerBuilder({+ uiManager: annotationEditorUIManager,+ pageIndex: this.id - 1,+ l10n,+ structTreeLayer: this.structTreeLayer,+ accessibilityManager: this._accessibilityManager,+ annotationLayer: this.annotationLayer?.annotationLayer,+ textLayer: this.textLayer,+ drawLayer: this.drawLayer.getDrawLayer(),+ onAppend: annotationEditorLayerDiv => {+ this.#addLayer(annotationEditorLayerDiv, "annotationEditorLayer");+ }+ });+ this.#renderAnnotationEditorLayer();+ }+ });+ if (pdfPage.isPureXfa) {+ if (!this.xfaLayer) {+ const {+ annotationStorage,+ linkService+ } = this.#layerProperties;+ this.xfaLayer = new XfaLayerBuilder({+ pdfPage,+ annotationStorage,+ linkService+ });+ }+ this.#renderXfaLayer();+ }+ div.setAttribute("data-loaded", true);+ this.dispatchPageRender();+ return resultPromise;+ }+ setPageLabel(label) {+ this.pageLabel = typeof label === "string" ? label : null;+ this.div.setAttribute("data-l10n-args", JSON.stringify({+ page: this.pageLabel ?? this.id+ }));+ if (this.pageLabel !== null) {+ this.div.setAttribute("data-page-label", this.pageLabel);+ } else {+ this.div.removeAttribute("data-page-label");+ }+ }+ get thumbnailCanvas() {+ const {+ directDrawing,+ initialOptionalContent,+ regularAnnotations+ } = this.#useThumbnailCanvas;+ return directDrawing && initialOptionalContent && regularAnnotations ? this.canvas : null;+ }+}++;// ./web/generic_scripting.js++async function docProperties(pdfDocument) {+ const url = "",+ baseUrl = "";+ const {+ info,+ metadata,+ contentDispositionFilename,+ contentLength+ } = await pdfDocument.getMetadata();+ return {+ ...info,+ baseURL: baseUrl,+ filesize: contentLength || (await pdfDocument.getDownloadInfo()).length,+ filename: contentDispositionFilename || getPdfFilenameFromUrl(url),+ metadata: metadata?.getRaw(),+ authors: metadata?.get("dc:creator"),+ numPages: pdfDocument.numPages,+ URL: url+ };+}+class GenericScripting {+ constructor(sandboxBundleSrc, wasmUrl) {+ this._ready = new Promise((resolve, reject) => {+ const sandbox = import(+ /*webpackIgnore: true*/+ /*@vite-ignore*/+ sandboxBundleSrc);+ sandbox.then(pdfjsSandbox => {+ resolve(pdfjsSandbox.QuickJSSandbox(new URL(wasmUrl, location.href).href));+ }).catch(reject);+ });+ }+ async createSandbox(data) {+ const sandbox = await this._ready;+ sandbox.create(data);+ }+ async dispatchEventInSandbox(event) {+ const sandbox = await this._ready;+ setTimeout(() => sandbox.dispatchEvent(event), 0);+ }+ async destroySandbox() {+ const sandbox = await this._ready;+ sandbox.nukeSandbox();+ }+}++;// ./web/pdf_scripting_manager.js++++++++++++++class PDFScriptingManager {+ #closeCapability = null;+ #destroyCapability = null;+ #docProperties = null;+ #eventAC = null;+ #eventBus = null;+ #externalServices = null;+ #objectIds = null;+ #pdfDocument = null;+ #pdfViewer = null;+ #ready = false;+ #scripting = null;+ #willPrintCapability = null;+ constructor({+ eventBus,+ externalServices = null,+ docProperties = null+ }) {+ this.#eventBus = eventBus;+ this.#externalServices = externalServices;+ this.#docProperties = docProperties;+ }+ setViewer(pdfViewer) {+ this.#pdfViewer = pdfViewer;+ }+ async setDocument(pdfDocument) {+ if (this.#pdfDocument) {+ await this.#destroyScripting();+ }+ this.#pdfDocument = pdfDocument;+ if (!pdfDocument) {+ return;+ }+ const [objects, calculationOrder, docActions] = await Promise.all([pdfDocument.getFieldObjects(), pdfDocument.getCalculationOrderIds(), pdfDocument.getJSActions()]);+ if (!objects && !docActions) {+ await this.#destroyScripting();+ return;+ }+ if (pdfDocument !== this.#pdfDocument) {+ return;+ }+ if (objects) {+ this.#objectIds = new Set();+ for (const fields of objects.values()) {+ for (const {+ id+ } of fields) {+ this.#objectIds.add(id);+ }+ }+ }+ try {+ this.#scripting = this.#initScripting();+ } catch (error) {+ console.error("setDocument:", error);+ await this.#destroyScripting();+ return;+ }+ const eventBus = this.#eventBus;+ this.#eventAC = new AbortController();+ const evtOpts = {+ signal: this.#eventAC.signal,+ ...internalOpt+ };+ eventBus.on("updatefromsandbox", event => {+ if (event?.source === window) {+ this.#updateFromSandbox(event.detail);+ }+ }, evtOpts);+ eventBus.on("dispatcheventinsandbox", event => {+ this.#scripting?.dispatchEventInSandbox(event.detail);+ }, evtOpts);+ eventBus.on("pagechanging", ({+ pageNumber,+ previous+ }) => {+ if (pageNumber === previous) {+ return;+ }+ this.#dispatchPageClose(previous);+ this.#dispatchPageOpen(pageNumber);+ }, evtOpts);+ eventBus.on("pagerendered", ({+ pageNumber+ }) => {+ if (!this._pageOpenPending.has(pageNumber)) {+ return;+ }+ if (pageNumber !== this.#pdfViewer.currentPageNumber) {+ return;+ }+ this.#dispatchPageOpen(pageNumber);+ }, evtOpts);+ eventBus.on("pagesdestroy", async () => {+ await this.#dispatchPageClose(this.#pdfViewer.currentPageNumber);+ await this.#scripting?.dispatchEventInSandbox({+ id: "doc",+ name: "WillClose"+ });+ this.#closeCapability?.resolve();+ }, evtOpts);+ try {+ const docProperties = await this.#docProperties(pdfDocument);+ if (pdfDocument !== this.#pdfDocument) {+ return;+ }+ await this.#scripting.createSandbox({+ objects,+ calculationOrder,+ appInfo: {+ platform: navigator.platform,+ language: navigator.language+ },+ docInfo: {+ ...docProperties,+ actions: docActions+ }+ });+ eventBus.dispatch("sandboxcreated", {+ source: this+ });+ } catch (error) {+ console.error("setDocument:", error);+ await this.#destroyScripting();+ return;+ }+ await this.#scripting?.dispatchEventInSandbox({+ id: "doc",+ name: "Open"+ });+ await this.#dispatchPageOpen(this.#pdfViewer.currentPageNumber, true);+ Promise.resolve().then(() => {+ if (pdfDocument === this.#pdfDocument) {+ this.#ready = true;+ }+ });+ }+ async dispatchWillSave() {+ return this.#scripting?.dispatchEventInSandbox({+ id: "doc",+ name: "WillSave"+ });+ }+ async dispatchDidSave() {+ return this.#scripting?.dispatchEventInSandbox({+ id: "doc",+ name: "DidSave"+ });+ }+ async dispatchWillPrint() {+ if (!this.#scripting) {+ return;+ }+ await this.#willPrintCapability?.promise;+ this.#willPrintCapability = Promise.withResolvers();+ try {+ await this.#scripting.dispatchEventInSandbox({+ id: "doc",+ name: "WillPrint"+ });+ } catch (ex) {+ this.#willPrintCapability.resolve();+ this.#willPrintCapability = null;+ throw ex;+ }+ await this.#willPrintCapability.promise;+ }+ async dispatchDidPrint() {+ return this.#scripting?.dispatchEventInSandbox({+ id: "doc",+ name: "DidPrint"+ });+ }+ get destroyPromise() {+ return this.#destroyCapability?.promise || null;+ }+ get ready() {+ return this.#ready;+ }+ get _pageOpenPending() {+ return shadow(this, "_pageOpenPending", new Set());+ }+ get _visitedPages() {+ return shadow(this, "_visitedPages", new Map());+ }+ async #updateFromSandbox(detail) {+ const pdfViewer = this.#pdfViewer;+ const isInPresentationMode = pdfViewer.isInPresentationMode || pdfViewer.isChangingPresentationMode;+ const {+ id,+ siblings,+ command,+ value+ } = detail;+ if (!id) {+ switch (command) {+ case "clear":+ console.clear();+ break;+ case "error":+ console.error(value);+ break;+ case "layout":+ if (!isInPresentationMode) {+ const modes = apiPageLayoutToViewerModes(value);+ pdfViewer.spreadMode = modes.spreadMode;+ }+ break;+ case "page-num":+ pdfViewer.currentPageNumber = value + 1;+ break;+ case "print":+ await pdfViewer.pagesPromise;+ this.#eventBus.dispatch("print", {+ source: this+ });+ break;+ case "println":+ console.log(value);+ break;+ case "zoom":+ if (!isInPresentationMode) {+ pdfViewer.currentScaleValue = value;+ }+ break;+ case "SaveAs":+ this.#eventBus.dispatch("download", {+ source: this+ });+ break;+ case "FirstPage":+ pdfViewer.currentPageNumber = 1;+ break;+ case "LastPage":+ pdfViewer.currentPageNumber = pdfViewer.pagesCount;+ break;+ case "NextPage":+ pdfViewer.nextPage();+ break;+ case "PrevPage":+ pdfViewer.previousPage();+ break;+ case "ZoomViewIn":+ if (!isInPresentationMode) {+ pdfViewer.increaseScale();+ }+ break;+ case "ZoomViewOut":+ if (!isInPresentationMode) {+ pdfViewer.decreaseScale();+ }+ break;+ case "WillPrintFinished":+ this.#willPrintCapability?.resolve();+ this.#willPrintCapability = null;+ break;+ }+ return;+ }+ if (isInPresentationMode && detail.focus) {+ return;+ }+ delete detail.id;+ delete detail.siblings;+ const ids = siblings ? [id, ...siblings] : [id];+ for (const elementId of ids) {+ if (!this.#objectIds?.has(elementId)) {+ continue;+ }+ const element = document.querySelector(`[data-element-id="${elementId}"]`);+ if (element) {+ element.dispatchEvent(new CustomEvent("updatefromsandbox", {+ detail+ }));+ } else {+ this.#pdfDocument?.annotationStorage.setValue(elementId, detail);+ }+ }+ }+ async #dispatchPageOpen(pageNumber, initialize = false) {+ const pdfDocument = this.#pdfDocument,+ visitedPages = this._visitedPages;+ if (initialize) {+ this.#closeCapability = Promise.withResolvers();+ }+ if (!this.#closeCapability) {+ return;+ }+ const pageView = this.#pdfViewer.getPageView(pageNumber - 1);+ if (pageView?.renderingState !== RenderingStates.FINISHED) {+ this._pageOpenPending.add(pageNumber);+ return;+ }+ this._pageOpenPending.delete(pageNumber);+ const actionsPromise = (async () => {+ const actions = await (!visitedPages.has(pageNumber) ? pageView.pdfPage?.getJSActions() : null);+ if (pdfDocument !== this.#pdfDocument) {+ return;+ }+ await this.#scripting?.dispatchEventInSandbox({+ id: "page",+ name: "PageOpen",+ pageNumber,+ actions+ });+ })();+ visitedPages.set(pageNumber, actionsPromise);+ }+ async #dispatchPageClose(pageNumber) {+ const pdfDocument = this.#pdfDocument,+ visitedPages = this._visitedPages;+ if (!this.#closeCapability) {+ return;+ }+ if (this._pageOpenPending.has(pageNumber)) {+ return;+ }+ const actionsPromise = visitedPages.get(pageNumber);+ if (!actionsPromise) {+ return;+ }+ visitedPages.set(pageNumber, null);+ await actionsPromise;+ if (pdfDocument !== this.#pdfDocument) {+ return;+ }+ await this.#scripting?.dispatchEventInSandbox({+ id: "page",+ name: "PageClose",+ pageNumber+ });+ }+ #initScripting() {+ this.#destroyCapability = Promise.withResolvers();+ if (this.#scripting) {+ throw new Error("#initScripting: Scripting already exists.");+ }+ return this.#externalServices.createScripting();+ }+ async #destroyScripting() {+ this.#objectIds = null;+ if (!this.#scripting) {+ this.#pdfDocument = null;+ this.#destroyCapability?.resolve();+ return;+ }+ if (this.#closeCapability) {+ await Promise.race([this.#closeCapability.promise, new Promise(resolve => {+ setTimeout(resolve, 1000);+ })]).catch(() => {});+ this.#closeCapability = null;+ }+ this.#pdfDocument = null;+ try {+ await this.#scripting.destroySandbox();+ } catch {}+ this.#willPrintCapability?.reject(new Error("Scripting destroyed."));+ this.#willPrintCapability = null;+ this.#eventAC?.abort();+ this.#eventAC = null;+ this._pageOpenPending.clear();+ this._visitedPages.clear();+ this.#scripting = null;+ this.#ready = false;+ this.#destroyCapability?.resolve();+ }+}++;// ./web/pdf_scripting_manager.component.js+++class PDFScriptingManagerComponents extends PDFScriptingManager {+ constructor(options) {+ if (!options.externalServices) {+ window.addEventListener("updatefromsandbox", event => {+ options.eventBus.dispatch("updatefromsandbox", {+ source: window,+ detail: event.detail+ });+ });+ }+ options.externalServices ||= {+ createScripting: () => new GenericScripting(options.sandboxBundleSrc, options.wasmUrl)+ };+ options.docProperties ||= pdfDocument => docProperties(pdfDocument);+ super(options);+ }+}++// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.every.js+var es_iterator_every = __webpack_require__(1148);+// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js+var es_iterator_some = __webpack_require__(3579);+;// ./web/pdf_rendering_queue.js+++const CLEANUP_TIMEOUT = 30000;+class PDFRenderingQueue {+ #highestPriorityPage = null;+ #idleTimeout = null;+ #pdfThumbnailViewer = null;+ #pdfViewer = null;+ isThumbnailViewEnabled = false;+ onIdle = null;+ printing = false;+ constructor() {+ Object.defineProperty(this, "hasViewer", {+ value: () => !!this.#pdfViewer+ });+ }+ setViewer(pdfViewer) {+ this.#pdfViewer = pdfViewer;+ }+ setThumbnailViewer(pdfThumbnailViewer) {+ this.#pdfThumbnailViewer = pdfThumbnailViewer;+ }+ isHighestPriority(view) {+ return this.#highestPriorityPage === view.renderingId;+ }+ renderHighestPriority(currentlyVisiblePages) {+ if (this.#idleTimeout) {+ clearTimeout(this.#idleTimeout);+ this.#idleTimeout = null;+ }+ if (this.#pdfViewer.forceRendering(currentlyVisiblePages)) {+ return;+ }+ if (this.isThumbnailViewEnabled && this.#pdfThumbnailViewer?.forceRendering()) {+ return;+ }+ if (this.printing) {+ return;+ }+ if (this.onIdle) {+ this.#idleTimeout = setTimeout(this.onIdle.bind(this), CLEANUP_TIMEOUT);+ }+ }+ getHighestPriority(visible, views, scrolledDown, preRenderExtra = false, ignoreDetailViews = false) {+ const visibleViews = visible.views,+ numVisible = visibleViews.length;+ if (numVisible === 0) {+ return null;+ }+ for (let i = 0; i < numVisible; i++) {+ const view = visibleViews[i].view;+ if (!this.isViewFinished(view)) {+ return view;+ }+ }+ if (!ignoreDetailViews) {+ for (let i = 0; i < numVisible; i++) {+ const {+ detailView+ } = visibleViews[i].view;+ if (detailView && !this.isViewFinished(detailView)) {+ return detailView;+ }+ }+ }+ const firstId = visible.first.id,+ lastId = visible.last.id;+ if (lastId - firstId + 1 > numVisible) {+ const visibleIds = visible.ids;+ for (let i = 1, ii = lastId - firstId; i < ii; i++) {+ const holeId = scrolledDown ? firstId + i : lastId - i;+ if (visibleIds.has(holeId)) {+ continue;+ }+ const holeView = views[holeId - 1];+ if (!this.isViewFinished(holeView)) {+ return holeView;+ }+ }+ }+ let preRenderIndex = scrolledDown ? lastId : firstId - 2;+ let preRenderView = views[preRenderIndex];+ if (preRenderView && !this.isViewFinished(preRenderView)) {+ return preRenderView;+ }+ if (preRenderExtra) {+ preRenderIndex += scrolledDown ? 1 : -1;+ preRenderView = views[preRenderIndex];+ if (preRenderView && !this.isViewFinished(preRenderView)) {+ return preRenderView;+ }+ }+ return null;+ }+ isViewFinished(view) {+ return view.renderingState === RenderingStates.FINISHED;+ }+ renderView(view) {+ switch (view.renderingState) {+ case RenderingStates.FINISHED:+ return false;+ case RenderingStates.PAUSED:+ this.#highestPriorityPage = view.renderingId;+ view.resume();+ break;+ case RenderingStates.RUNNING:+ this.#highestPriorityPage = view.renderingId;+ break;+ case RenderingStates.INITIAL:+ this.#highestPriorityPage = view.renderingId;+ view.draw().finally(() => {+ this.renderHighestPriority();+ }).catch(reason => {+ if (reason instanceof RenderingCancelledException) {+ return;+ }+ console.error("renderView:", reason);+ });+ break;+ }+ return true;+ }+}++;// ./web/pdf_viewer.js++++++++++++++++++++++++const DEFAULT_CACHE_SIZE = 10;+const PagesCountLimit = {+ FORCE_SCROLL_MODE_PAGE: 10000,+ FORCE_LAZY_PAGE_INIT: 5000,+ PAUSE_EAGER_PAGE_INIT: 250+};+function isValidAnnotationEditorMode(mode) {+ return Object.values(AnnotationEditorType).includes(mode) && mode !== AnnotationEditorType.DISABLE;+}+class PDFPageViewBuffer {+ #buf = new Set();+ #size = 0;+ constructor(size) {+ this.#size = size;+ }+ push(view) {+ const buf = this.#buf;+ if (buf.has(view)) {+ buf.delete(view);+ }+ buf.add(view);+ if (buf.size > this.#size) {+ this.#destroyFirstView();+ }+ }+ resize(newSize, idsToKeep = null) {+ this.#size = newSize;+ const buf = this.#buf;+ if (idsToKeep) {+ const ii = buf.size;+ let i = 1;+ for (const view of buf) {+ if (idsToKeep.has(view.id)) {+ buf.delete(view);+ buf.add(view);+ }+ if (++i > ii) {+ break;+ }+ }+ }+ while (buf.size > this.#size) {+ this.#destroyFirstView();+ }+ }+ has(view) {+ return this.#buf.has(view);+ }+ [Symbol.iterator]() {+ return this.#buf.keys();+ }+ #destroyFirstView() {+ const firstView = this.#buf.keys().next().value;+ firstView?.destroy();+ this.#buf.delete(firstView);+ }+}+class PDFViewer {+ #buffer = null;+ #altTextManager = null;+ #annotationEditorHighlightColors = null;+ #annotationEditorMode = AnnotationEditorType.NONE;+ #annotationEditorUIManager = null;+ #annotationMode = AnnotationMode.ENABLE_FORMS;+ #commentManager = null;+ #containerTopLeft = null;+ #editorUndoBar = null;+ #enableHighlightFloatingButton = false;+ #enablePermissions = false;+ #enableUpdatedAddImage = false;+ #enableNewAltTextWhenAddingImage = false;+ #enableAutoLinking = true;+ #abortSignal = null;+ #eventAC = null;+ #minDurationToUpdateCanvas = 0;+ #mlManager = null;+ #panPosition = [NaN, NaN];+ #printingAllowed = true;+ #scrollTimeoutId = null;+ #staleLocation = false;+ #switchAnnotationEditorModeAC = null;+ #switchAnnotationEditorModeTimeoutId = null;+ #copyAllInProgress = false;+ #hiddenCopyElement = null;+ #previousContainerHeight = 0;+ #resizeObserver = new ResizeObserver(this.#resizeObserverCallback.bind(this));+ #scrollModePageState = null;+ #scaleTimeoutId = null;+ #signatureManager = null;+ #supportsPinchToZoom = true;+ #textLayerMode = TextLayerMode.ENABLE;+ #viewerAlert = null;+ #copiedPageViews = null;+ #savedPageViews = null;+ #deletedPageNumbers = null;+ constructor(options) {+ const viewerVersion = "6.3.289";+ if (version !== viewerVersion) {+ throw new Error(`The API version "${version}" does not match the Viewer version "${viewerVersion}".`);+ }+ this.container = options.container;+ this.viewer = options.viewer || options.container.firstElementChild;+ this.#viewerAlert = options.viewerAlert || null;+ if (this.container?.tagName !== "DIV" || this.viewer?.tagName !== "DIV") {+ throw new Error("Invalid `container` and/or `viewer` option.");+ }+ if (this.container.offsetParent && getComputedStyle(this.container).position !== "absolute") {+ throw new Error("The `container` must be absolutely positioned.");+ }+ this.#resizeObserver.observe(this.container);+ this.eventBus = options.eventBus;+ this.linkService = options.linkService || new SimpleLinkService();+ this.downloadManager = options.downloadManager || null;+ this.findController = options.findController || null;+ this.#altTextManager = options.altTextManager || null;+ this.#commentManager = options.commentManager || null;+ this.#signatureManager = options.signatureManager || null;+ this.#editorUndoBar = options.editorUndoBar || null;+ if (this.findController) {+ this.findController.onIsPageVisible = pageNumber => this._getVisiblePages().ids.has(pageNumber);+ }+ this._scriptingManager = options.scriptingManager || null;+ this.#textLayerMode = options.textLayerMode ?? TextLayerMode.ENABLE;+ this.#annotationMode = options.annotationMode ?? AnnotationMode.ENABLE_FORMS;+ this.#annotationEditorMode = options.annotationEditorMode ?? AnnotationEditorType.NONE;+ this.#annotationEditorHighlightColors = options.annotationEditorHighlightColors || null;+ this.#enableHighlightFloatingButton = options.enableHighlightFloatingButton === true;+ this.#enableUpdatedAddImage = options.enableUpdatedAddImage === true;+ this.#enableNewAltTextWhenAddingImage = options.enableNewAltTextWhenAddingImage === true;+ this.imageResourcesPath = options.imageResourcesPath || "";+ this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;+ this.removePageBorders = options.removePageBorders || false;+ this.maxCanvasPixels = options.maxCanvasPixels;+ this.maxCanvasDim = options.maxCanvasDim;+ this.capCanvasAreaFactor = options.capCanvasAreaFactor;+ this.enableDetailCanvas = options.enableDetailCanvas ?? true;+ this.enableOptimizedPartialRendering = options.enableOptimizedPartialRendering ?? false;+ this.enableSelectionRendering = options.enableSelectionRendering !== false;+ this.imagesRightClickMinSize = options.imagesRightClickMinSize ?? -1;+ this.l10n = options.l10n;+ this.l10n ||= new genericl10n_GenericL10n();+ this.#enablePermissions = options.enablePermissions || false;+ this.pageColors = options.pageColors || null;+ this.#mlManager = options.mlManager || null;+ this.#supportsPinchToZoom = options.supportsPinchToZoom !== false;+ this.#enableAutoLinking = options.enableAutoLinking !== false;+ this.#minDurationToUpdateCanvas = options.minDurationToUpdateCanvas ?? 500;+ this.defaultRenderingQueue = !options.renderingQueue;+ if (this.defaultRenderingQueue) {+ this.renderingQueue = new PDFRenderingQueue();+ this.renderingQueue.setViewer(this);+ } else {+ this.renderingQueue = options.renderingQueue;+ }+ const {+ abortSignal+ } = options;+ this.#abortSignal = abortSignal || null;+ abortSignal?.addEventListener("abort", () => {+ this.#resizeObserver.disconnect();+ this.#resizeObserver = null;+ }, {+ once: true+ });+ this.scroll = watchScroll(this.container, this._scrollUpdate.bind(this), abortSignal);+ this.presentationModeState = PresentationModeState.UNKNOWN;+ this._resetView();+ if (this.removePageBorders) {+ this.viewer.classList.add("removePageBorders");+ }+ this.#updateContainerHeightCss();+ this.eventBus.on("thumbnailrendered", ({+ pageNumber,+ pdfPage+ }) => {+ const pageView = this._pages[pageNumber - 1];+ if (!this.#buffer.has(pageView)) {+ pdfPage?.cleanup();+ }+ }, internalOpt);+ if (!options.l10n) {+ this.l10n.translate(this.container);+ }+ }+ get printingAllowed() {+ return this.#printingAllowed;+ }+ get pagesCount() {+ return this._pages.length;+ }+ getPageView(index) {+ return this._pages[index];+ }+ getCachedPageViews() {+ return new Set(this.#buffer);+ }+ get pageViewsReady() {+ return this._pages.every(pageView => pageView?.pdfPage);+ }+ clearSelection() {+ const selection = document.getSelection();+ if (!selection || selection.isCollapsed) {+ return;+ }+ for (let i = 0, ii = selection.rangeCount; i < ii; i++) {+ if (selection.getRangeAt(i).intersectsNode(this.viewer)) {+ selection.removeAllRanges?.();+ selection.empty?.();+ return;+ }+ }+ }+ get renderForms() {+ return this.#annotationMode === AnnotationMode.ENABLE_FORMS;+ }+ get enableScripting() {+ return !!this._scriptingManager;+ }+ get currentPageNumber() {+ return this._currentPageNumber;+ }+ set currentPageNumber(val) {+ if (!Number.isInteger(val)) {+ throw new Error("Invalid page number.");+ }+ if (!this.pdfDocument) {+ return;+ }+ if (this._currentPageNumber !== val) {+ this.clearSelection();+ }+ if (!this._setCurrentPageNumber(val, true)) {+ console.error(`currentPageNumber: "${val}" is not a valid page.`);+ }+ }+ _setCurrentPageNumber(val, resetCurrentPageView = false) {+ if (this._currentPageNumber === val) {+ if (resetCurrentPageView) {+ this.#resetCurrentPageView();+ }+ return true;+ }+ if (!(0 < val && val <= this.pagesCount)) {+ return false;+ }+ const previous = this._currentPageNumber;+ this._currentPageNumber = val;+ this.eventBus.dispatch("pagechanging", {+ source: this,+ pageNumber: val,+ pageLabel: this._pageLabels?.[val - 1] ?? null,+ previous+ });+ if (resetCurrentPageView) {+ this.#resetCurrentPageView();+ }+ return true;+ }+ get currentPageLabel() {+ return this._pageLabels?.[this._currentPageNumber - 1] ?? null;+ }+ set currentPageLabel(val) {+ if (!this.pdfDocument) {+ return;+ }+ let page = val | 0;+ if (this._pageLabels) {+ const i = this._pageLabels.indexOf(val);+ if (i >= 0) {+ page = i + 1;+ }+ }+ if (this._currentPageNumber !== page) {+ this.clearSelection();+ }+ if (!this._setCurrentPageNumber(page, true)) {+ console.error(`currentPageLabel: "${val}" is not a valid page.`);+ }+ }+ get currentScale() {+ return this._currentScale !== (/* inlined export .UNKNOWN_SCALE */0) ? this._currentScale : (/* inlined export .DEFAULT_SCALE */1);+ }+ set currentScale(val) {+ if (isNaN(val)) {+ throw new Error("Invalid numeric scale.");+ }+ if (!this.pdfDocument) {+ return;+ }+ this.#setScale(val, {+ noScroll: false+ });+ }+ get currentScaleValue() {+ return this._currentScaleValue;+ }+ set currentScaleValue(val) {+ if (!this.pdfDocument) {+ return;+ }+ this.#setScale(val, {+ noScroll: false+ });+ }+ get pagesRotation() {+ return this._pagesRotation;+ }+ set pagesRotation(rotation) {+ if (!isValidRotation(rotation)) {+ throw new Error("Invalid pages rotation angle.");+ }+ if (!this.pdfDocument) {+ return;+ }+ rotation %= 360;+ if (rotation < 0) {+ rotation += 360;+ }+ if (this._pagesRotation === rotation) {+ return;+ }+ this.clearSelection();+ this._pagesRotation = rotation;+ const pageNumber = this._currentPageNumber;+ this.refresh(true, {+ rotation+ });+ if (this._currentScaleValue) {+ this.#setScale(this._currentScaleValue, {+ noScroll: true+ });+ }+ this.eventBus.dispatch("rotationchanging", {+ source: this,+ pagesRotation: rotation,+ pageNumber+ });+ if (this.defaultRenderingQueue) {+ this.update();+ }+ }+ get firstPagePromise() {+ return this.pdfDocument ? this._firstPageCapability.promise : null;+ }+ get onePageRendered() {+ return this.pdfDocument ? this._onePageRenderedCapability.promise : null;+ }+ get pagesPromise() {+ return this.pdfDocument ? this._pagesCapability.promise : null;+ }+ get _layerProperties() {+ const self = this;+ return shadow(this, "_layerProperties", {+ get annotationEditorUIManager() {+ return self.#annotationEditorUIManager;+ },+ get annotationStorage() {+ return self.pdfDocument?.annotationStorage;+ },+ get downloadManager() {+ return self.downloadManager;+ },+ get enableComment() {+ return !!self.#commentManager;+ },+ get enableScripting() {+ return !!self._scriptingManager;+ },+ get fieldObjectsPromise() {+ return self.pdfDocument?.getFieldObjects();+ },+ get findController() {+ return self.findController;+ },+ get hasJSActionsPromise() {+ return self.pdfDocument?.hasJSActions();+ },+ get linkService() {+ return self.linkService;+ }+ });+ }+ #setPrintingAllowed(isAllowed) {+ this.#printingAllowed = isAllowed;+ this.eventBus.dispatch("printingallowed", {+ source: this,+ isAllowed+ });+ }+ #initializePermissions(permissions) {+ const params = {+ annotationEditorMode: this.#annotationEditorMode,+ annotationMode: this.#annotationMode,+ textLayerMode: this.#textLayerMode+ };+ if (!permissions) {+ this.#setPrintingAllowed(true);+ return params;+ }+ this.#setPrintingAllowed(permissions.has(PermissionFlag.PRINT_HIGH_QUALITY) || permissions.has(PermissionFlag.PRINT));+ if (!permissions.has(PermissionFlag.COPY) && this.#textLayerMode === TextLayerMode.ENABLE) {+ params.textLayerMode = TextLayerMode.ENABLE_PERMISSIONS;+ }+ if (!permissions.has(PermissionFlag.MODIFY_CONTENTS)) {+ params.annotationEditorMode = AnnotationEditorType.DISABLE;+ }+ if (!permissions.has(PermissionFlag.MODIFY_ANNOTATIONS) && !permissions.has(PermissionFlag.FILL_INTERACTIVE_FORMS) && this.#annotationMode === AnnotationMode.ENABLE_FORMS) {+ params.annotationMode = AnnotationMode.ENABLE;+ }+ return params;+ }+ async #onePageRenderedOrForceFetch(signal) {+ if (document.visibilityState === "hidden" || !this.container.offsetParent || this._getVisiblePages().views.length === 0) {+ return;+ }+ const hiddenCapability = Promise.withResolvers(),+ ac = new AbortController();+ document.addEventListener("visibilitychange", () => {+ if (document.visibilityState === "hidden") {+ hiddenCapability.resolve();+ }+ }, {+ signal: AbortSignal.any([signal, ac.signal])+ });+ await Promise.race([this._onePageRenderedCapability.promise, hiddenCapability.promise]);+ ac.abort();+ }+ async getAllText(interruptSignal = null) {+ const texts = [];+ const buffer = [];+ for (let pageNum = 1, pagesCount = this.pdfDocument.numPages; pageNum <= pagesCount; ++pageNum) {+ if (interruptSignal?.aborted) {+ return null;+ }+ buffer.length = 0;+ const page = await this.pdfDocument.getPage(pageNum);+ const {+ items+ } = await page.getTextContent();+ for (const item of items) {+ if (item.str) {+ buffer.push(item.str);+ }+ if (item.hasEOL) {+ buffer.push("\n");+ }+ }+ texts.push(removeNullCharacters(buffer.join("")));+ }+ return texts.join("\n");+ }+ #copyCallback(textLayerMode, event) {+ const selection = document.getSelection();+ const {+ focusNode,+ anchorNode+ } = selection;+ if (anchorNode && focusNode && selection.containsNode(this.#hiddenCopyElement)) {+ if (this.#copyAllInProgress || textLayerMode === TextLayerMode.ENABLE_PERMISSIONS) {+ stopEvent(event);+ return;+ }+ this.#copyAllInProgress = true;+ const {+ classList+ } = this.viewer;+ classList.add("copyAll");+ const keydownAC = new AbortController(),+ interruptAC = new AbortController();+ window.addEventListener("keydown", ev => {+ if (ev.key === "Escape") {+ interruptAC.abort();+ }+ }, {+ signal: keydownAC.signal+ });+ this.getAllText(interruptAC.signal).then(async text => {+ if (text !== null) {+ await navigator.clipboard.writeText(text);+ }+ }).catch(reason => {+ console.warn(`Something goes wrong when extracting the text: ${reason.message}`);+ }).finally(() => {+ this.#copyAllInProgress = false;+ keydownAC.abort();+ classList.remove("copyAll");+ });+ stopEvent(event);+ }+ }+ setDocument(pdfDocument) {+ if (this.pdfDocument) {+ this.eventBus.dispatch("pagesdestroy", {+ source: this+ });+ this._cancelRendering();+ this._resetView();+ this.findController?.setDocument(null);+ this._scriptingManager?.setDocument(null);+ this.#annotationEditorUIManager?.destroy();+ this.#annotationEditorUIManager = null;+ this.#annotationEditorMode = AnnotationEditorType.NONE;+ this.#printingAllowed = true;+ }+ this.pdfDocument = pdfDocument;+ if (!pdfDocument) {+ return;+ }+ const pagesCount = pdfDocument.numPages;+ const firstPagePromise = pdfDocument.getPage(1);+ const optionalContentConfigPromise = pdfDocument.getOptionalContentConfig({+ intent: "display"+ });+ const permissionsPromise = this.#enablePermissions ? pdfDocument.getPermissions() : Promise.resolve();+ const {+ eventBus,+ pageColors,+ viewer+ } = this;+ this.#eventAC = new AbortController();+ const {+ signal+ } = this.#eventAC;+ const evtOpts = {+ signal,+ ...internalOpt+ };+ if (pagesCount > PagesCountLimit.FORCE_SCROLL_MODE_PAGE) {+ console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");+ const mode = this._scrollMode = ScrollMode.PAGE;+ eventBus.dispatch("scrollmodechanged", {+ source: this,+ mode+ });+ }+ this._pagesCapability.promise.then(() => {+ eventBus.dispatch("pagesloaded", {+ source: this,+ pagesCount+ });+ }, () => {});+ const onBeforeDraw = evt => {+ const pageView = this._pages[evt.pageNumber - 1];+ if (!pageView) {+ return;+ }+ this.#buffer.push(pageView);+ };+ eventBus.on("pagerender", onBeforeDraw, evtOpts);+ const onAfterDraw = evt => {+ if (evt.cssTransform || evt.isDetailView) {+ return;+ }+ this._onePageRenderedCapability.resolve({+ timestamp: evt.timestamp+ });+ eventBus.off("pagerendered", onAfterDraw);+ };+ eventBus.on("pagerendered", onAfterDraw, evtOpts);+ Promise.all([firstPagePromise, permissionsPromise]).then(([firstPdfPage, permissions]) => {+ if (pdfDocument !== this.pdfDocument) {+ return;+ }+ this._firstPageCapability.resolve(firstPdfPage);+ this._optionalContentConfigPromise = optionalContentConfigPromise;+ const {+ annotationEditorMode,+ annotationMode,+ textLayerMode+ } = this.#initializePermissions(permissions);+ if (textLayerMode !== TextLayerMode.DISABLE) {+ const element = this.#hiddenCopyElement = document.createElement("div");+ element.id = "hiddenCopyElement";+ element.style.cssText = "position:absolute;top:0;left:0;width:0;height:0;display:none";+ viewer.before(element);+ }+ if (annotationEditorMode !== AnnotationEditorType.DISABLE) {+ const mode = annotationEditorMode;+ if (pdfDocument.isPureXfa) {+ console.warn("Warning: XFA-editing is not implemented.");+ } else if (isValidAnnotationEditorMode(mode)) {+ this.#annotationEditorUIManager = new AnnotationEditorUIManager(this.container, viewer, this.#viewerAlert, this.#altTextManager, this.#commentManager, this.#signatureManager, eventBus, pdfDocument, pageColors, this.#annotationEditorHighlightColors, this.#enableHighlightFloatingButton, this.#enableUpdatedAddImage, this.#enableNewAltTextWhenAddingImage, this.#mlManager, this.#editorUndoBar, this.#supportsPinchToZoom);+ eventBus.dispatch("annotationeditoruimanager", {+ source: this,+ uiManager: this.#annotationEditorUIManager+ });+ if (mode !== AnnotationEditorType.NONE) {+ this.#preloadEditingData(mode);+ this.#annotationEditorUIManager.updateMode(mode);+ }+ } else {+ console.error(`Invalid AnnotationEditor mode: ${mode}`);+ }+ }+ const viewerElement = this._scrollMode === ScrollMode.PAGE ? null : viewer;+ const scale = this.currentScale;+ const viewport = firstPdfPage.getViewport({+ scale: scale * PixelsPerInch.PDF_TO_CSS_UNITS+ });+ viewer.style.setProperty("--scale-factor", viewport.scale);+ if (pageColors?.background) {+ viewer.style.setProperty("--page-bg-color", pageColors.background);+ }+ if (pageColors?.foreground === "CanvasText" || pageColors?.background === "Canvas") {+ viewer.style.setProperty("--hcm-highlight-filter", pdfDocument.filterFactory.addHighlightHCMFilter("highlight", "CanvasText", "Canvas", "HighlightText", "Highlight"));+ viewer.style.setProperty("--hcm-highlight-selected-filter", pdfDocument.filterFactory.addHighlightHCMFilter("highlight_selected", "CanvasText", "Canvas", "HighlightText", "ButtonText"));+ }+ for (let pageNum = 1; pageNum <= pagesCount; ++pageNum) {+ const pageView = new PDFPageView({+ container: viewerElement,+ eventBus,+ id: pageNum,+ scale,+ defaultViewport: viewport.clone(),+ optionalContentConfigPromise,+ renderingQueue: this.renderingQueue,+ textLayerMode,+ annotationMode,+ imageResourcesPath: this.imageResourcesPath,+ maxCanvasPixels: this.maxCanvasPixels,+ maxCanvasDim: this.maxCanvasDim,+ capCanvasAreaFactor: this.capCanvasAreaFactor,+ enableDetailCanvas: this.enableDetailCanvas,+ enableOptimizedPartialRendering: this.enableOptimizedPartialRendering,+ enableSelectionRendering: this.enableSelectionRendering,+ imagesRightClickMinSize: this.imagesRightClickMinSize,+ pageColors,+ l10n: this.l10n,+ layerProperties: this._layerProperties,+ enableAutoLinking: this.#enableAutoLinking,+ minDurationToUpdateCanvas: this.#minDurationToUpdateCanvas,+ commentManager: this.#commentManager,+ abortSignal: this.#abortSignal+ });+ this._pages.push(pageView);+ }+ this._pages[0]?.setPdfPage(firstPdfPage);+ if (this._scrollMode === ScrollMode.PAGE) {+ this.#ensurePageViewVisible();+ } else if (this._spreadMode !== SpreadMode.NONE) {+ this._updateSpreadMode();+ }+ eventBus.on("annotationeditorlayerrendered", evt => {+ if (this.#annotationEditorUIManager) {+ eventBus.dispatch("annotationeditormodechanged", {+ source: this,+ mode: this.#annotationEditorMode+ });+ }+ }, {+ once: true,+ signal,+ ...internalOpt+ });+ this.#onePageRenderedOrForceFetch(signal).then(async () => {+ if (pdfDocument !== this.pdfDocument) {+ return;+ }+ this.findController?.setDocument(pdfDocument);+ this._scriptingManager?.setDocument(pdfDocument);+ if (this.#hiddenCopyElement) {+ document.addEventListener("copy", this.#copyCallback.bind(this, textLayerMode), {+ signal+ });+ }+ if (pdfDocument.loadingParams.disableAutoFetch || pagesCount > PagesCountLimit.FORCE_LAZY_PAGE_INIT) {+ this._pagesCapability.resolve();+ return;+ }+ let getPagesLeft = pagesCount - 1;+ if (getPagesLeft <= 0) {+ this._pagesCapability.resolve();+ return;+ }+ for (let pageNum = 2; pageNum <= pagesCount; ++pageNum) {+ const promise = pdfDocument.getPage(pageNum).then(pdfPage => {+ const pageView = this._pages[pageNum - 1];+ if (!pageView.pdfPage) {+ pageView.setPdfPage(pdfPage);+ }+ if (--getPagesLeft === 0) {+ this._pagesCapability.resolve();+ }+ }, reason => {+ console.error(`Unable to get page ${pageNum} to initialize viewer`, reason);+ if (--getPagesLeft === 0) {+ this._pagesCapability.resolve();+ }+ });+ if (pageNum % PagesCountLimit.PAUSE_EAGER_PAGE_INIT === 0) {+ await promise;+ }+ }+ });+ eventBus.dispatch("pagesinit", {+ source: this+ });+ pdfDocument.getMetadata().then(({+ info+ }) => {+ if (pdfDocument !== this.pdfDocument) {+ return;+ }+ if (info.Language) {+ viewer.lang = info.Language;+ }+ });+ if (this.defaultRenderingQueue) {+ this.update();+ }+ }).catch(reason => {+ console.error("Unable to initialize viewer", reason);+ this._pagesCapability.reject(reason);+ });+ }+ onPagesEdited({+ pagesMapper,+ type,+ hasBeenCut,+ pageNumbers+ }) {+ if (type === "copy") {+ this.#copiedPageViews = new Map();+ for (const pageNum of pageNumbers) {+ this.#copiedPageViews.set(pageNum, this._pages[pageNum - 1]);+ }+ return;+ }+ if (type === "cancelCopy") {+ this.#copiedPageViews = null;+ return;+ }+ const isCut = type === "cut";+ if (isCut || type === "delete") {+ this.#savedPageViews = this._pages;+ this.#deletedPageNumbers = pageNumbers;+ }+ if (type === "cancelDelete") {+ this.#deletedPageNumbers = null;+ if (!this.#savedPageViews) {+ return;+ }+ const viewerElement = this._scrollMode === ScrollMode.PAGE ? null : this.viewer;+ if (viewerElement) {+ this.#annotationEditorUIManager?.startUpdatePages();+ const fragment = document.createDocumentFragment();+ for (let i = 0, ii = this.#savedPageViews.length; i < ii; i++) {+ const page = this.#savedPageViews[i];+ page.updatePageNumber(i + 1);+ fragment.append(page.div);+ }+ viewerElement.replaceChildren(fragment);+ this.#annotationEditorUIManager?.endUpdatePages();+ }+ this._pages = this.#savedPageViews;+ this.#savedPageViews = null;+ return;+ }+ if (type === "cleanSavedData") {+ if (this.#deletedPageNumbers) {+ if (this.#savedPageViews) {+ for (const pageNum of this.#deletedPageNumbers) {+ this.#savedPageViews[pageNum - 1].deleteMe();+ }+ this.#savedPageViews = null;+ }+ this.#deletedPageNumbers = null;+ }+ return;+ }+ this._currentPageNumber = 0;+ const prevPages = this._pages;+ const newPages = this._pages = [];+ this.#annotationEditorUIManager?.startUpdatePages();+ for (let i = 1, ii = pagesMapper.pagesNumber; i <= ii; i++) {+ const prevPageNumber = pagesMapper.getPrevPageNumber(i);+ if (prevPageNumber < 0) {+ let page = this.#copiedPageViews.get(-prevPageNumber);+ if (hasBeenCut) {+ page.updatePageNumber(i);+ } else {+ this.#annotationEditorUIManager?.clonePage(-prevPageNumber - 1, i - 1);+ page = page.clone(i);+ }+ newPages.push(page);+ continue;+ }+ const page = prevPages[prevPageNumber - 1];+ newPages.push(page);+ page.updatePageNumber(i);+ }+ this.#annotationEditorUIManager?.endUpdatePages();+ if (type === "paste") {+ this.#copiedPageViews = null;+ }+ const viewerElement = this._scrollMode === ScrollMode.PAGE ? null : this.viewer;+ if (viewerElement) {+ const fragment = document.createDocumentFragment();+ for (const {+ div+ } of newPages) {+ fragment.append(div);+ }+ viewerElement.replaceChildren(fragment);+ }+ setTimeout(() => {+ this.forceRendering();+ });+ }+ setPageLabels(labels) {+ if (!this.pdfDocument) {+ return;+ }+ if (!labels) {+ this._pageLabels = null;+ } else if (!(Array.isArray(labels) && this.pdfDocument.numPages === labels.length)) {+ this._pageLabels = null;+ console.error(`setPageLabels: Invalid page labels.`);+ } else {+ this._pageLabels = labels;+ }+ for (let i = 0, ii = this._pages.length; i < ii; i++) {+ this._pages[i].setPageLabel(this._pageLabels?.[i] ?? null);+ }+ }+ _resetView() {+ this._pages = [];+ this._currentPageNumber = 1;+ this._currentScale = (/* inlined export .UNKNOWN_SCALE */0);+ this._currentScaleValue = null;+ this._pageLabels = null;+ this.#buffer = new PDFPageViewBuffer(DEFAULT_CACHE_SIZE);+ this._location = null;+ this._pagesRotation = 0;+ this._optionalContentConfigPromise = null;+ this._firstPageCapability = Promise.withResolvers();+ this._onePageRenderedCapability = Promise.withResolvers();+ this._pagesCapability = Promise.withResolvers();+ this._scrollMode = ScrollMode.VERTICAL;+ this._previousScrollMode = ScrollMode.UNKNOWN;+ this._spreadMode = SpreadMode.NONE;+ this.#scrollModePageState = {+ previousPageNumber: 1,+ scrollDown: true,+ pages: []+ };+ this.#eventAC?.abort();+ this.#eventAC = null;+ this.viewer.textContent = "";+ this._updateScrollMode();+ this.viewer.removeAttribute("lang");+ this.#hiddenCopyElement?.remove();+ this.#hiddenCopyElement = null;+ this.#cleanupTimeouts();+ this.#cleanupSwitchAnnotationEditorMode();+ }+ #ensurePageViewVisible() {+ if (this._scrollMode !== ScrollMode.PAGE) {+ throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");+ }+ const pageNumber = this._currentPageNumber,+ state = this.#scrollModePageState,+ viewer = this.viewer;+ viewer.textContent = "";+ state.pages.length = 0;+ if (this._spreadMode === SpreadMode.NONE && !this.isInPresentationMode) {+ const pageView = this._pages[pageNumber - 1];+ viewer.append(pageView.div);+ state.pages.push(pageView);+ } else {+ const pageIndexSet = new Set(),+ parity = this._spreadMode - 1;+ if (parity === -1) {+ pageIndexSet.add(pageNumber - 1);+ } else if (pageNumber % 2 !== parity) {+ pageIndexSet.add(pageNumber - 1);+ pageIndexSet.add(pageNumber);+ } else {+ pageIndexSet.add(pageNumber - 2);+ pageIndexSet.add(pageNumber - 1);+ }+ const spread = document.createElement("div");+ spread.className = "spread";+ if (this.isInPresentationMode) {+ const dummyPage = document.createElement("div");+ dummyPage.className = "dummyPage";+ spread.append(dummyPage);+ }+ for (const i of pageIndexSet) {+ const pageView = this._pages[i];+ if (!pageView) {+ continue;+ }+ spread.append(pageView.div);+ state.pages.push(pageView);+ }+ viewer.append(spread);+ }+ state.scrollDown = pageNumber >= state.previousPageNumber;+ state.previousPageNumber = pageNumber;+ }+ _scrollUpdate() {+ if (this.pagesCount === 0) {+ return;+ }+ if (this.#scrollTimeoutId) {+ clearTimeout(this.#scrollTimeoutId);+ }+ this.#scrollTimeoutId = setTimeout(() => {+ this.#scrollTimeoutId = null;+ this.update();+ }, 100);+ this.update();+ }+ #scrollIntoView(pageView, pageSpot = null) {+ const {+ div,+ id+ } = pageView;+ if (this._currentPageNumber !== id) {+ this._setCurrentPageNumber(id);+ }+ if (this._scrollMode === ScrollMode.PAGE) {+ this.#ensurePageViewVisible();+ this.update();+ }+ if (!pageSpot && !this.isInPresentationMode) {+ const left = div.offsetLeft + div.clientLeft,+ right = left + div.clientWidth;+ const {+ scrollLeft,+ clientWidth+ } = this.container;+ if (this._scrollMode === ScrollMode.HORIZONTAL || left < scrollLeft || right > scrollLeft + clientWidth) {+ pageSpot = {+ left: 0,+ top: 0+ };+ }+ }+ scrollIntoView(div, pageSpot);+ if (!this._currentScaleValue && this._location) {+ this._location = null;+ }+ }+ #isSameScale(newScale) {+ return newScale === this._currentScale || Math.abs(newScale - this._currentScale) < 1e-15;+ }+ panBy(dx, dy) {+ const {+ container+ } = this;+ const position = this.#panPosition;+ const {+ scrollLeft,+ scrollTop+ } = container;+ const left = (Math.abs(scrollLeft - position[0]) < 1 ? position[0] : scrollLeft) - dx;+ const top = (Math.abs(scrollTop - position[1]) < 1 ? position[1] : scrollTop) - dy;+ position[0] = left;+ position[1] = top;+ container.scrollLeft = left;+ container.scrollTop = top;+ this.#staleLocation = true;+ }+ #refreshLocation() {+ if (!this.#staleLocation) {+ return;+ }+ const {+ first+ } = this._getVisiblePages();+ if (first) {+ this._updateLocation(first);+ }+ }+ #setScaleUpdatePages(newScale, newValue, {+ noScroll = false,+ preset = false,+ drawingDelay = -1,+ origin = null,+ pan = null+ }) {+ this._currentScaleValue = newValue.toString();+ if (this.#isSameScale(newScale)) {+ if (pan && !noScroll) {+ this.panBy(pan[0], pan[1]);+ }+ if (preset) {+ this.eventBus.dispatch("scalechanging", {+ source: this,+ scale: newScale,+ presetValue: newValue+ });+ }+ return;+ }+ this.clearSelection();+ this.viewer.style.setProperty("--scale-factor", newScale * PixelsPerInch.PDF_TO_CSS_UNITS);+ const postponeDrawing = drawingDelay >= 0 && drawingDelay < 1000;+ this.refresh(true, {+ scale: newScale,+ drawingDelay: postponeDrawing ? drawingDelay : -1+ });+ if (postponeDrawing) {+ this.#scaleTimeoutId = setTimeout(() => {+ this.#scaleTimeoutId = null;+ this.refresh();+ }, drawingDelay);+ }+ const previousScale = this._currentScale;+ this._currentScale = newScale;+ if (!noScroll) {+ this.#refreshLocation();+ let page = this._currentPageNumber,+ dest;+ if (this._location && !(this.isInPresentationMode || this.isChangingPresentationMode)) {+ page = this._location.pageNumber;+ dest = [null, {+ name: "XYZ"+ }, this._location.left, this._location.top, null];+ }+ this.scrollPageIntoView({+ pageNumber: page,+ destArray: dest,+ allowNegativeOffset: true+ });+ let dx = pan?.[0] ?? 0,+ dy = pan?.[1] ?? 0;+ if (Array.isArray(origin)) {+ const scaleDiff = newScale / previousScale - 1;+ const [top, left] = this.containerTopLeft;+ dx -= (origin[0] - left) * scaleDiff;+ dy -= (origin[1] - top) * scaleDiff;+ }+ if (dx || dy) {+ this.panBy(dx, dy);+ }+ }+ this.eventBus.dispatch("scalechanging", {+ source: this,+ scale: newScale,+ presetValue: preset ? newValue : undefined+ });+ if (this.defaultRenderingQueue) {+ this.update();+ }+ }+ get #pageWidthScaleFactor() {+ return this._spreadMode !== SpreadMode.NONE && this._scrollMode !== ScrollMode.HORIZONTAL ? 2 : 1;+ }+ #setScale(value, options) {+ let scale = parseFloat(value);+ if (scale > 0) {+ options.preset = false;+ this.#setScaleUpdatePages(scale, value, options);+ } else {+ const currentPage = this._pages[this._currentPageNumber - 1];+ if (!currentPage) {+ return;+ }+ let hPadding = (/* inlined export .SCROLLBAR_PADDING */40),+ vPadding = (/* inlined export .VERTICAL_PADDING */5);+ if (this.isInPresentationMode) {+ hPadding = vPadding = 4;+ if (this._spreadMode !== SpreadMode.NONE) {+ hPadding *= 2;+ }+ } else if (this.removePageBorders) {+ hPadding = vPadding = 0;+ } else if (this._scrollMode === ScrollMode.HORIZONTAL) {+ [hPadding, vPadding] = [vPadding, hPadding];+ }+ const pageWidthScale = (this.container.clientWidth - hPadding) / currentPage.width * currentPage.scale / this.#pageWidthScaleFactor;+ const pageHeightScale = (this.container.clientHeight - vPadding) / currentPage.height * currentPage.scale;+ switch (value) {+ case "page-actual":+ scale = 1;+ break;+ case "page-width":+ scale = pageWidthScale;+ break;+ case "page-height":+ scale = pageHeightScale;+ break;+ case "page-fit":+ scale = Math.min(pageWidthScale, pageHeightScale);+ break;+ case "auto":+ const horizontalScale = isPortraitOrientation(currentPage) ? pageWidthScale : Math.min(pageHeightScale, pageWidthScale);+ scale = Math.min((/* inlined export .MAX_AUTO_SCALE */1.25), horizontalScale);+ break;+ default:+ console.error(`#setScale: "${value}" is an unknown zoom value.`);+ return;+ }+ options.preset = true;+ this.#setScaleUpdatePages(scale, value, options);+ }+ }+ #resetCurrentPageView() {+ const pageView = this._pages[this._currentPageNumber - 1];+ if (this.isInPresentationMode) {+ this.#setScale(this._currentScaleValue, {+ noScroll: true+ });+ }+ this.#scrollIntoView(pageView);+ }+ pageLabelToPageNumber(label) {+ if (!this._pageLabels) {+ return null;+ }+ const i = this._pageLabels.indexOf(label);+ if (i < 0) {+ return null;+ }+ return i + 1;+ }+ scrollPageIntoView({+ pageNumber,+ destArray = null,+ allowNegativeOffset = false,+ ignoreDestinationZoom = false,+ center = null+ }) {+ if (!this.pdfDocument) {+ return;+ }+ const pageView = Number.isInteger(pageNumber) && this._pages[pageNumber - 1];+ if (!pageView) {+ console.error(`scrollPageIntoView: "${pageNumber}" is not a valid pageNumber parameter.`);+ return;+ }+ if (this.isInPresentationMode || !destArray) {+ this._setCurrentPageNumber(pageNumber, true);+ return;+ }+ let x = 0,+ y = 0;+ let width = 0,+ height = 0,+ widthScale,+ heightScale;+ const changeOrientation = pageView.rotation % 180 !== 0;+ const pageWidth = (changeOrientation ? pageView.height : pageView.width) / pageView.scale / PixelsPerInch.PDF_TO_CSS_UNITS;+ const pageHeight = (changeOrientation ? pageView.width : pageView.height) / pageView.scale / PixelsPerInch.PDF_TO_CSS_UNITS;+ let scale = 0;+ switch (destArray[1].name) {+ case "XYZ":+ x = destArray[2];+ y = destArray[3];+ scale = destArray[4];+ x = x !== null ? x : 0;+ y = y !== null ? y : pageHeight;+ break;+ case "Fit":+ case "FitB":+ scale = "page-fit";+ break;+ case "FitH":+ case "FitBH":+ y = destArray[2];+ scale = "page-width";+ if (y === null && this._location) {+ x = this._location.left;+ y = this._location.top;+ } else if (typeof y !== "number" || y < 0) {+ y = pageHeight;+ }+ break;+ case "FitV":+ case "FitBV":+ x = destArray[2];+ width = pageWidth;+ height = pageHeight;+ scale = "page-height";+ break;+ case "FitR":+ x = destArray[2];+ y = destArray[3];+ width = destArray[4] - x;+ height = destArray[5] - y;+ let hPadding = (/* inlined export .SCROLLBAR_PADDING */40),+ vPadding = (/* inlined export .VERTICAL_PADDING */5);+ if (this.removePageBorders) {+ hPadding = vPadding = 0;+ }+ widthScale = (this.container.clientWidth - hPadding) / width / PixelsPerInch.PDF_TO_CSS_UNITS;+ heightScale = (this.container.clientHeight - vPadding) / height / PixelsPerInch.PDF_TO_CSS_UNITS;+ scale = Math.min(Math.abs(widthScale), Math.abs(heightScale));+ break;+ default:+ console.error(`scrollPageIntoView: "${destArray[1].name}" is not a valid destination type.`);+ return;+ }+ if (!ignoreDestinationZoom) {+ if (scale && scale !== this._currentScale) {+ this.currentScaleValue = scale;+ } else if (this._currentScale === (/* inlined export .UNKNOWN_SCALE */0)) {+ this.currentScaleValue = (/* inlined export .DEFAULT_SCALE_VALUE */"auto");+ }+ }+ if (scale === "page-fit" && !destArray[4]) {+ this.#scrollIntoView(pageView);+ return;+ }+ const boundingRect = [pageView.viewport.convertToViewportPoint(x, y), pageView.viewport.convertToViewportPoint(x + width, y + height)];+ let left = Math.min(boundingRect[0][0], boundingRect[1][0]);+ let top = Math.min(boundingRect[0][1], boundingRect[1][1]);+ if (center) {+ if (center === "both" || center === "vertical") {+ top -= (this.container.clientHeight - Math.abs(boundingRect[1][1] - boundingRect[0][1])) / 2;+ }+ if (center === "both" || center === "horizontal") {+ left -= (this.container.clientWidth - Math.abs(boundingRect[1][0] - boundingRect[0][0])) / 2;+ }+ } else if (!allowNegativeOffset) {+ left = Math.max(left, 0);+ top = Math.max(top, 0);+ }+ this.#scrollIntoView(pageView, {+ left,+ top+ });+ }+ _updateLocation(firstPage) {+ this.#staleLocation = false;+ const currentScale = this._currentScale;+ const currentScaleValue = this._currentScaleValue;+ const normalizedScaleValue = parseFloat(currentScaleValue) === currentScale ? Math.round(currentScale * 10000) / 100 : currentScaleValue;+ const pageNumber = firstPage.id;+ const currentPageView = this._pages[pageNumber - 1];+ const container = this.container;+ const topLeft = currentPageView.getPagePoint(container.scrollLeft - firstPage.x, container.scrollTop - firstPage.y);+ const [left, top] = topLeft;+ let pdfOpenParams = `#page=${pageNumber}`;+ if (!this.isInPresentationMode) {+ pdfOpenParams += `&zoom=${normalizedScaleValue},` + `${Math.round(left)},${Math.round(top)}`;+ }+ this._location = {+ pageNumber,+ scale: normalizedScaleValue,+ top,+ left,+ rotation: this._pagesRotation,+ pdfOpenParams+ };+ }+ update() {+ const visible = this._getVisiblePages();+ const visiblePages = visible.views,+ numVisiblePages = visiblePages.length;+ if (numVisiblePages === 0) {+ return;+ }+ const newCacheSize = Math.max(DEFAULT_CACHE_SIZE, 2 * numVisiblePages + 1);+ this.#buffer.resize(newCacheSize, visible.ids);+ for (const {+ view,+ visibleArea+ } of visiblePages) {+ view.updateVisibleArea(visibleArea);+ }+ for (const view of this.#buffer) {+ if (!visible.ids.has(view.id)) {+ view.updateVisibleArea(null);+ }+ }+ this.renderingQueue.renderHighestPriority(visible);+ const isSimpleLayout = this._spreadMode === SpreadMode.NONE && (this._scrollMode === ScrollMode.PAGE || this._scrollMode === ScrollMode.VERTICAL);+ const currentPageNumber = this._currentPageNumber;+ let stillFullyVisible = false;+ for (const page of visiblePages) {+ if (page.percent < 100) {+ break;+ }+ if (page.id === currentPageNumber && isSimpleLayout) {+ stillFullyVisible = true;+ break;+ }+ }+ this._setCurrentPageNumber(stillFullyVisible ? this._currentPageNumber : visiblePages[0].id);+ this._updateLocation(visible.first);+ this.eventBus.dispatch("updateviewarea", {+ source: this,+ location: this._location+ });+ }+ #switchToEditAnnotationMode() {+ const visible = this._getVisiblePages();+ const pagesToRefresh = [];+ const {+ ids,+ views+ } = visible;+ for (const page of views) {+ const {+ view+ } = page;+ if (!view.hasEditableAnnotations()) {+ ids.delete(view.id);+ continue;+ }+ pagesToRefresh.push(page);+ }+ if (pagesToRefresh.length === 0) {+ return null;+ }+ this.renderingQueue.renderHighestPriority({+ first: pagesToRefresh[0],+ last: pagesToRefresh.at(-1),+ views: pagesToRefresh,+ ids+ });+ return ids;+ }+ containsElement(element) {+ return this.container.contains(element);+ }+ focus() {+ this.container.focus();+ }+ get _isContainerRtl() {+ return getComputedStyle(this.container).direction === "rtl";+ }+ get isInPresentationMode() {+ return this.presentationModeState === PresentationModeState.FULLSCREEN;+ }+ get isChangingPresentationMode() {+ return this.presentationModeState === PresentationModeState.CHANGING;+ }+ get isHorizontalScrollbarEnabled() {+ return this.isInPresentationMode ? false : this.container.scrollWidth > this.container.clientWidth;+ }+ get isVerticalScrollbarEnabled() {+ return this.isInPresentationMode ? false : this.container.scrollHeight > this.container.clientHeight;+ }+ _getVisiblePages() {+ const views = this._scrollMode === ScrollMode.PAGE ? this.#scrollModePageState.pages : this._pages,+ horizontal = this._scrollMode === ScrollMode.HORIZONTAL,+ rtl = horizontal && this._isContainerRtl;+ return getVisibleElements({+ scrollEl: this.container,+ views,+ sortByVisibility: true,+ horizontal,+ rtl+ });+ }+ cleanup() {+ for (const pageView of this._pages) {+ if (pageView.renderingState !== RenderingStates.FINISHED) {+ pageView.reset();+ }+ }+ }+ _cancelRendering() {+ for (const pageView of this._pages) {+ pageView.cancelRendering();+ }+ }+ async #ensurePdfPageLoaded(pageView) {+ if (pageView.pdfPage) {+ return pageView.pdfPage;+ }+ try {+ const pdfPage = await this.pdfDocument.getPage(pageView.id);+ if (!pageView.pdfPage) {+ pageView.setPdfPage(pdfPage);+ }+ return pdfPage;+ } catch (reason) {+ console.error("Unable to get page for page view", reason);+ return null;+ }+ }+ #getScrollAhead(visible) {+ if (visible.first?.id === 1) {+ return true;+ } else if (visible.last?.id === this.pagesCount) {+ return false;+ }+ switch (this._scrollMode) {+ case ScrollMode.PAGE:+ return this.#scrollModePageState.scrollDown;+ case ScrollMode.HORIZONTAL:+ return this.scroll.right;+ }+ return this.scroll.down;+ }+ forceRendering(currentlyVisiblePages) {+ const visiblePages = currentlyVisiblePages || this._getVisiblePages();+ const scrollAhead = this.#getScrollAhead(visiblePages);+ const preRenderExtra = this._spreadMode !== SpreadMode.NONE && this._scrollMode !== ScrollMode.HORIZONTAL;+ const ignoreDetailViews = this.#scaleTimeoutId !== null || this.#scrollTimeoutId !== null && visiblePages.views.some(page => page.detailView?.renderingCancelled);+ const pageView = this.renderingQueue.getHighestPriority(visiblePages, this._pages, scrollAhead, preRenderExtra, ignoreDetailViews);+ if (pageView) {+ this.#ensurePdfPageLoaded(pageView).then(() => {+ this.renderingQueue.renderView(pageView);+ });+ return true;+ }+ return false;+ }+ get hasEqualPageSizes() {+ const firstPageView = this._pages[0];+ for (let i = 1, ii = this._pages.length; i < ii; ++i) {+ const pageView = this._pages[i];+ if (pageView.width !== firstPageView.width || pageView.height !== firstPageView.height) {+ return false;+ }+ }+ return true;+ }+ getPagesOverview() {+ let initialOrientation;+ return this._pages.map(pageView => {+ const viewport = pageView.pdfPage.getViewport({+ scale: 1+ });+ const orientation = isPortraitOrientation(viewport);+ if (initialOrientation === undefined) {+ initialOrientation = orientation;+ } else if (this.enablePrintAutoRotate && orientation !== initialOrientation) {+ return {+ width: viewport.height,+ height: viewport.width,+ rotation: (viewport.rotation - 90) % 360+ };+ }+ return {+ width: viewport.width,+ height: viewport.height,+ rotation: viewport.rotation+ };+ });+ }+ get optionalContentConfigPromise() {+ if (!this.pdfDocument) {+ return Promise.resolve(null);+ }+ if (!this._optionalContentConfigPromise) {+ console.error("optionalContentConfigPromise: Not initialized yet.");+ return this.pdfDocument.getOptionalContentConfig({+ intent: "display"+ });+ }+ return this._optionalContentConfigPromise;+ }+ set optionalContentConfigPromise(promise) {+ if (!(promise instanceof Promise)) {+ throw new Error(`Invalid optionalContentConfigPromise: ${promise}`);+ }+ if (!this.pdfDocument) {+ return;+ }+ if (!this._optionalContentConfigPromise) {+ return;+ }+ this._optionalContentConfigPromise = promise;+ this.refresh(false, {+ optionalContentConfigPromise: promise+ });+ this.eventBus.dispatch("optionalcontentconfigchanged", {+ source: this,+ promise+ });+ }+ get scrollMode() {+ return this._scrollMode;+ }+ set scrollMode(mode) {+ if (this._scrollMode === mode) {+ return;+ }+ if (!isValidScrollMode(mode)) {+ throw new Error(`Invalid scroll mode: ${mode}`);+ }+ if (this.pagesCount > PagesCountLimit.FORCE_SCROLL_MODE_PAGE) {+ return;+ }+ this._previousScrollMode = this._scrollMode;+ this.clearSelection();+ this._scrollMode = mode;+ this.eventBus.dispatch("scrollmodechanged", {+ source: this,+ mode+ });+ this._updateScrollMode(this._currentPageNumber);+ }+ _updateScrollMode(pageNumber = null) {+ const scrollMode = this._scrollMode,+ viewer = this.viewer;+ viewer.classList.toggle("scrollHorizontal", scrollMode === ScrollMode.HORIZONTAL);+ viewer.classList.toggle("scrollWrapped", scrollMode === ScrollMode.WRAPPED);+ if (!this.pdfDocument || !pageNumber) {+ return;+ }+ if (scrollMode === ScrollMode.PAGE) {+ this.#ensurePageViewVisible();+ } else if (this._previousScrollMode === ScrollMode.PAGE) {+ this._updateSpreadMode();+ }+ if (this._currentScaleValue && isNaN(this._currentScaleValue)) {+ this.#setScale(this._currentScaleValue, {+ noScroll: true+ });+ }+ this._setCurrentPageNumber(pageNumber, true);+ this.update();+ }+ get spreadMode() {+ return this._spreadMode;+ }+ set spreadMode(mode) {+ if (this._spreadMode === mode) {+ return;+ }+ if (!isValidSpreadMode(mode)) {+ throw new Error(`Invalid spread mode: ${mode}`);+ }+ this.clearSelection();+ this._spreadMode = mode;+ this.eventBus.dispatch("spreadmodechanged", {+ source: this,+ mode+ });+ this._updateSpreadMode(this._currentPageNumber);+ }+ _updateSpreadMode(pageNumber = null) {+ if (!this.pdfDocument) {+ return;+ }+ const viewer = this.viewer,+ pages = this._pages;+ if (this._scrollMode === ScrollMode.PAGE) {+ this.#ensurePageViewVisible();+ } else {+ viewer.textContent = "";+ if (this._spreadMode === SpreadMode.NONE) {+ for (const pageView of this._pages) {+ viewer.append(pageView.div);+ }+ } else {+ const parity = this._spreadMode - 1;+ let spread = null;+ for (let i = 0, ii = pages.length; i < ii; ++i) {+ if (spread === null) {+ spread = document.createElement("div");+ spread.className = "spread";+ viewer.append(spread);+ } else if (i % 2 === parity) {+ spread = spread.cloneNode(false);+ viewer.append(spread);+ }+ spread.append(pages[i].div);+ }+ }+ }+ if (!pageNumber) {+ return;+ }+ if (this._currentScaleValue && isNaN(this._currentScaleValue)) {+ this.#setScale(this._currentScaleValue, {+ noScroll: true+ });+ }+ this._setCurrentPageNumber(pageNumber, true);+ this.update();+ }+ #getPageAdvance(currentPageNumber, previous = false) {+ switch (this._scrollMode) {+ case ScrollMode.WRAPPED:+ {+ const {+ views+ } = this._getVisiblePages(),+ pageLayout = new Map();+ for (const {+ id,+ y,+ percent,+ widthPercent+ } of views) {+ if (percent === 0 || widthPercent < 100) {+ continue;+ }+ pageLayout.getOrInsertComputed(y, makeArr).push(id);+ }+ for (const yArray of pageLayout.values()) {+ const currentIndex = yArray.indexOf(currentPageNumber);+ if (currentIndex === -1) {+ continue;+ }+ const numPages = yArray.length;+ if (numPages === 1) {+ break;+ }+ if (previous) {+ for (let i = currentIndex - 1, ii = 0; i >= ii; i--) {+ const currentId = yArray[i],+ expectedId = yArray[i + 1] - 1;+ if (currentId < expectedId) {+ return currentPageNumber - expectedId;+ }+ }+ } else {+ for (let i = currentIndex + 1, ii = numPages; i < ii; i++) {+ const currentId = yArray[i],+ expectedId = yArray[i - 1] + 1;+ if (currentId > expectedId) {+ return expectedId - currentPageNumber;+ }+ }+ }+ if (previous) {+ const firstId = yArray[0];+ if (firstId < currentPageNumber) {+ return currentPageNumber - firstId + 1;+ }+ } else {+ const lastId = yArray[numPages - 1];+ if (lastId > currentPageNumber) {+ return lastId - currentPageNumber + 1;+ }+ }+ break;+ }+ break;+ }+ case ScrollMode.HORIZONTAL:+ {+ break;+ }+ case ScrollMode.PAGE:+ case ScrollMode.VERTICAL:+ {+ if (this._spreadMode === SpreadMode.NONE) {+ break;+ }+ const parity = this._spreadMode - 1;+ if (previous && currentPageNumber % 2 !== parity) {+ break;+ } else if (!previous && currentPageNumber % 2 === parity) {+ break;+ }+ const {+ views+ } = this._getVisiblePages(),+ expectedId = previous ? currentPageNumber - 1 : currentPageNumber + 1;+ for (const {+ id,+ percent,+ widthPercent+ } of views) {+ if (id !== expectedId) {+ continue;+ }+ if (percent > 0 && widthPercent === 100) {+ return 2;+ }+ break;+ }+ break;+ }+ }+ return 1;+ }+ nextPage() {+ const currentPageNumber = this._currentPageNumber,+ pagesCount = this.pagesCount;+ if (currentPageNumber >= pagesCount) {+ return false;+ }+ const advance = this.#getPageAdvance(currentPageNumber, false) || 1;+ this.currentPageNumber = Math.min(currentPageNumber + advance, pagesCount);+ return true;+ }+ previousPage() {+ const currentPageNumber = this._currentPageNumber;+ if (currentPageNumber <= 1) {+ return false;+ }+ const advance = this.#getPageAdvance(currentPageNumber, true) || 1;+ this.currentPageNumber = Math.max(currentPageNumber - advance, 1);+ return true;+ }+ updateScale({+ drawingDelay,+ scaleFactor = null,+ steps = null,+ origin,+ pan = null+ }) {+ if (steps === null && scaleFactor === null) {+ throw new Error("Invalid updateScale options: either `steps` or `scaleFactor` must be provided.");+ }+ if (!this.pdfDocument) {+ return;+ }+ let newScale = this._currentScale;+ if (scaleFactor > 0 && scaleFactor !== 1) {+ newScale = Math.round(newScale * scaleFactor * 100) / 100;+ } else if (steps) {+ const delta = steps > 0 ? (/* inlined export .DEFAULT_SCALE_DELTA */1.1) : 1 / (/* inlined export .DEFAULT_SCALE_DELTA */1.1);+ const round = steps > 0 ? Math.ceil : Math.floor;+ steps = Math.abs(steps);+ do {+ newScale = round((newScale * delta).toFixed(2) * 10) / 10;+ } while (--steps > 0);+ }+ newScale = MathClamp(newScale, (/* inlined export .MIN_SCALE */0.1), (/* inlined export .MAX_SCALE */25));+ this.#setScale(newScale, {+ noScroll: false,+ drawingDelay,+ origin,+ pan+ });+ }+ increaseScale(options = {}) {+ this.updateScale({+ ...options,+ steps: options.steps ?? 1+ });+ }+ decreaseScale(options = {}) {+ this.updateScale({+ ...options,+ steps: -(options.steps ?? 1)+ });+ }+ #updateContainerHeightCss(height = this.container.clientHeight) {+ if (height !== this.#previousContainerHeight) {+ this.#previousContainerHeight = height;+ docStyle.setProperty("--viewer-container-height", `${height}px`);+ }+ }+ #resizeObserverCallback(entries) {+ for (const entry of entries) {+ if (entry.target === this.container) {+ this.#updateContainerHeightCss(Math.floor(entry.borderBoxSize[0].blockSize));+ this.#containerTopLeft = null;+ break;+ }+ }+ }+ get containerTopLeft() {+ return this.#containerTopLeft ||= [this.container.offsetTop, this.container.offsetLeft];+ }+ #cleanupTimeouts() {+ if (this.#scaleTimeoutId !== null) {+ clearTimeout(this.#scaleTimeoutId);+ this.#scaleTimeoutId = null;+ }+ if (this.#scrollTimeoutId !== null) {+ clearTimeout(this.#scrollTimeoutId);+ this.#scrollTimeoutId = null;+ }+ }+ #cleanupSwitchAnnotationEditorMode() {+ this.#switchAnnotationEditorModeAC?.abort();+ this.#switchAnnotationEditorModeAC = null;+ if (this.#switchAnnotationEditorModeTimeoutId !== null) {+ clearTimeout(this.#switchAnnotationEditorModeTimeoutId);+ this.#switchAnnotationEditorModeTimeoutId = null;+ }+ }+ #preloadEditingData(mode) {+ switch (mode) {+ case AnnotationEditorType.STAMP:+ this.#mlManager?.loadModel("altText");+ break;+ case AnnotationEditorType.SIGNATURE:+ this.#signatureManager?.loadSignatures();+ break;+ }+ }+ get annotationEditorMode() {+ return this.#annotationEditorUIManager ? this.#annotationEditorMode : AnnotationEditorType.DISABLE;+ }+ set annotationEditorMode({+ mode,+ editId = null,+ isFromKeyboard = false,+ mustEnterInEditMode = false,+ editComment = false+ }) {+ if (!this.#annotationEditorUIManager) {+ throw new Error(`The AnnotationEditor is not enabled.`);+ }+ if (this.#annotationEditorMode === mode) {+ return;+ }+ if (!isValidAnnotationEditorMode(mode)) {+ throw new Error(`Invalid AnnotationEditor mode: ${mode}`);+ }+ if (!this.pdfDocument) {+ return;+ }+ this.#preloadEditingData(mode);+ const {+ eventBus,+ pdfDocument+ } = this;+ const updater = async () => {+ this.#cleanupSwitchAnnotationEditorMode();+ this.#annotationEditorMode = mode;+ await this.#annotationEditorUIManager.updateMode(mode, editId, true, isFromKeyboard, mustEnterInEditMode, editComment);+ if (mode !== this.#annotationEditorMode || pdfDocument !== this.pdfDocument) {+ return;+ }+ eventBus.dispatch("annotationeditormodechanged", {+ source: this,+ mode+ });+ };+ if (mode === AnnotationEditorType.NONE || this.#annotationEditorMode === AnnotationEditorType.NONE) {+ const isEditing = mode !== AnnotationEditorType.NONE;+ if (!isEditing) {+ this.pdfDocument.annotationStorage.resetModifiedIds();+ }+ this.cleanup();+ for (const pageView of this._pages) {+ pageView.toggleEditingMode(isEditing);+ }+ const idsToRefresh = this.#switchToEditAnnotationMode();+ if (isEditing && idsToRefresh) {+ this.#cleanupSwitchAnnotationEditorMode();+ this.#switchAnnotationEditorModeAC = new AbortController();+ const signal = AbortSignal.any([this.#eventAC.signal, this.#switchAnnotationEditorModeAC.signal]);+ eventBus.on("pagerendered", ({+ pageNumber+ }) => {+ idsToRefresh.delete(pageNumber);+ if (idsToRefresh.size === 0) {+ this.#switchAnnotationEditorModeTimeoutId = setTimeout(updater, 0);+ }+ }, {+ signal,+ ...internalOpt+ });+ return;+ }+ }+ updater();+ }+ refresh(noUpdate = false, updateArgs = Object.create(null)) {+ if (!this.pdfDocument) {+ return;+ }+ for (const pageView of this._pages) {+ pageView.update(updateArgs);+ }+ this.#cleanupTimeouts();+ if (!noUpdate) {+ this.update();+ }+ }+}++;// ./web/pdf_single_page_viewer.js+++class PDFSinglePageViewer extends PDFViewer {+ _resetView() {+ super._resetView();+ this._scrollMode = ScrollMode.PAGE;+ this._spreadMode = SpreadMode.NONE;+ }+ set scrollMode(mode) {}+ _updateScrollMode() {}+ set spreadMode(mode) {}+ _updateSpreadMode() {}+}++;// ./web/pdf_viewer.component.js+++++++++++++++++globalThis.pdfjsViewer = {+ AnnotationLayerBuilder: AnnotationLayerBuilder,+ DownloadManager: DownloadManager,+ EventBus: EventBus,+ FindState: FindState,+ GenericL10n: genericl10n_GenericL10n,+ LinkTarget: LinkTarget,+ parseQueryString: parseQueryString,+ PDFFindController: PDFFindController,+ PDFHistory: PDFHistory,+ PDFLinkService: PDFLinkService,+ PDFPageView: PDFPageView,+ PDFScriptingManager: PDFScriptingManagerComponents,+ PDFSinglePageViewer: PDFSinglePageViewer,+ PDFViewer: PDFViewer,+ ProgressBar: ProgressBar,+ RenderingStates: RenderingStates,+ ScrollMode: ScrollMode,+ SimpleLinkService: SimpleLinkService,+ SpreadMode: SpreadMode,+ StructTreeLayerBuilder: StructTreeLayerBuilder,+ TextLayerBuilder: TextLayerBuilder,+ XfaLayerBuilder: XfaLayerBuilder+};++export { AnnotationLayerBuilder, DownloadManager, EventBus, FindState, genericl10n_GenericL10n as GenericL10n, LinkTarget, PDFFindController, PDFHistory, PDFLinkService, PDFPageView, PDFScriptingManagerComponents as PDFScriptingManager, PDFSinglePageViewer, PDFViewer, ProgressBar, RenderingStates, ScrollMode, SimpleLinkService, SpreadMode, StructTreeLayerBuilder, TextLayerBuilder, XfaLayerBuilder, parseQueryString };++//# sourceMappingURL=pdf_viewer.mjs.map\ No newline at end of filediff --git a/mineru/resources/pdf_preview/vendor/pdfjs/manifest.json b/mineru/resources/pdf_preview/vendor/pdfjs/manifest.jsonnew file mode 100644index 00000000..d7a29f10--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/manifest.json@@ -0,0 +1,292 @@+{+ "package": "pdfjs-dist",+ "version": "6.3.289",+ "source": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-6.3.289.tgz",+ "integrity": "sha512-ZHjSVpDa3D6izMq8/04lvkhkATUmL9px6ChPaXc1k6nU2Mrhlg1/7F0bdUqCwUjw3NsPTfPZsMDUU6ZIcRaeQw==",+ "license": "Apache-2.0; bundled fonts and WASM retain their accompanying licenses",+ "sha256": {+ "LICENSE": "0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594",+ "cmaps/78-EUC-H.bcmap": "d92a261336dc18b8c03a46eb4d462382d33f4338fa195d303256b2031434c874",+ "cmaps/78-EUC-V.bcmap": "61670bebc4e4827b67230c054fd0d820d6e30c3584d02e386804e62bbedc032a",+ "cmaps/78-H.bcmap": "ece6415b853d61e1b2560165151407d35cf16e6556932b85a13ea75276b77402",+ "cmaps/78-RKSJ-H.bcmap": "696b1f973c97623496703809eaaa5f9b40696c77540057413f4b826a08edfa7b",+ "cmaps/78-RKSJ-V.bcmap": "53cb6d560ab377da48cf65d6dcacb0bdb31f13fab7066c580de38c12a73a7ff9",+ "cmaps/78-V.bcmap": "289000f02fd34872b6975503217f33abae6bee676e7d28f640473a67c8db1712",+ "cmaps/78ms-RKSJ-H.bcmap": "a2442595218f5f8bd8e1b42188e368587d876cfe0cc4cd87196f077c878f72e2",+ "cmaps/78ms-RKSJ-V.bcmap": "f8ddceba96bfd9d3740bd1789ee30d1f47c78371520a8084f71f7df58f19be0b",+ "cmaps/83pv-RKSJ-H.bcmap": "44040051ec818fe09b9703472bea72efd2759d5eeb5ff0d77c718d6bb5e6d1df",+ "cmaps/90ms-RKSJ-H.bcmap": "c13e043e85ff715b75bb03801e8fd0fb8f3a75e4a48496faa6baaf92b5b48ba1",+ "cmaps/90ms-RKSJ-V.bcmap": "499bb916ce1adbe4289b6e5811f4dc20eb238cdc2ffad20cf26ae56716885bab",+ "cmaps/90msp-RKSJ-H.bcmap": "7b8b3b8bbf821702e9a4df9f3596ce292380c8c1b0925dedadbb4e4b2d80498b",+ "cmaps/90msp-RKSJ-V.bcmap": "6296c2b5c07dca8128e96d5296d621a3268803d4fa0e5812a21e52fe2802aacb",+ "cmaps/90pv-RKSJ-H.bcmap": "fb5103f03d3a34547e18d316e52b6d9b26e485c662999222f84d2ba54c2e4fa8",+ "cmaps/90pv-RKSJ-V.bcmap": "7bcb5ad2ba55b9662ce379e16c2d9cc2b82d621a579807353741172e4af615c2",+ "cmaps/Add-H.bcmap": "a2ffab28b990998181bcca9b0e914bb2207820f100ae31d5c469444892e5ad8e",+ "cmaps/Add-RKSJ-H.bcmap": "b29f4b52e2465d0485856d5e69f1ba69927deb2848d8fd328c8035583b35bb7e",+ "cmaps/Add-RKSJ-V.bcmap": "2aa2232c283a3f5d0997c2834a36cead0b79ce2657944cfeed08140c293460ff",+ "cmaps/Add-V.bcmap": "25125d3b1be64e86b2df5b3344170b45a42bcaa0b46e43a34314ef73c166e542",+ "cmaps/Adobe-CNS1-0.bcmap": "8c65be9d51a9f269a547dc12460707aaf4031ab67ebe8a2900f4b4cc6b3e450e",+ "cmaps/Adobe-CNS1-1.bcmap": "73152bc1a59cc594b414ac6068be48e5512b96ae85920c40e32a99269fdb0c04",+ "cmaps/Adobe-CNS1-2.bcmap": "a1b8d353bdef9584c820464e8f1c9e2013d64ebf433cba0aa831dddf515818c2",+ "cmaps/Adobe-CNS1-3.bcmap": "2ffc0c75c79fafde506163d3c08c390d183251009f3fbf6ae50d1167d14b9570",+ "cmaps/Adobe-CNS1-4.bcmap": "98a1f470c878c6b9691a4d7aef776af8ac9b55f5587c9fafa00547f3bf655716",+ "cmaps/Adobe-CNS1-5.bcmap": "ddd6e29955eb8cb545f2ebd09c628c3bbda5023256eda1b728f743c75fb77829",+ "cmaps/Adobe-CNS1-6.bcmap": "317bb2db71e0e5b7b0c47b75de1da915c2e22f65f0c0861507f9ca7ba238f8a2",+ "cmaps/Adobe-CNS1-UCS2.bcmap": "e665837f2197c6bd08cd8955ad4d6932cee2398e2e328b25b00e6bfb3bd72af9",+ "cmaps/Adobe-GB1-0.bcmap": "8b81cce8a11d510e505704953cfa4e4ab080c1a0cab991145a3512ee433946b9",+ "cmaps/Adobe-GB1-1.bcmap": "0426983081788ec7202703e71f1efa4b860f75b936994236010b39d89251a81e",+ "cmaps/Adobe-GB1-2.bcmap": "e67b37a83b160ab3831306a71a605893b24454ee81ac9b6123bf2d3984d268d5",+ "cmaps/Adobe-GB1-3.bcmap": "aa299afc3e12a28726147305f191be28c7498078c8b182ece7886ac79cd99078",+ "cmaps/Adobe-GB1-4.bcmap": "8fbd7d74c2ddb1350c1cecce54a73fde3f5453093d4bed445283ec0033d2097f",+ "cmaps/Adobe-GB1-5.bcmap": "c22cb2fcff24112fa31dab2111bdc51957006576d31aad5a25e67793ac01428c",+ "cmaps/Adobe-GB1-UCS2.bcmap": "20507620260c0c935c35afc1e70e5888aa7125d5ec7ffc03cef1959feb2c1641",+ "cmaps/Adobe-Japan1-0.bcmap": "464f08905236f5703b1f5cf8358767c8b18e6bcc808840d081f1de2c7ab38134",+ "cmaps/Adobe-Japan1-1.bcmap": "4c823848722187d1ffe75ae3f5f9126ccd2d7895a05fad14c919fb119e037008",+ "cmaps/Adobe-Japan1-2.bcmap": "7810fb808e367e70429e90a9478fe6a3fdc3e214f25c7582ce9c2da6a242315c",+ "cmaps/Adobe-Japan1-3.bcmap": "84deb1828711ad3d390c9899c38abce1bf619d65ff7bf1a326ec95acc45f08f8",+ "cmaps/Adobe-Japan1-4.bcmap": "3f8a4f974919c2b8bae5d10175ffa2673be140481e00840542c85d48ef184067",+ "cmaps/Adobe-Japan1-5.bcmap": "1d3ce4ff28d977f8cf37a912ae4ec811f4175c3167b1ec0b2567feec3e79e1db",+ "cmaps/Adobe-Japan1-6.bcmap": "5609797b9401b30be72ef9645da62a87829f058c3be4b5c623383119f584b1d9",+ "cmaps/Adobe-Japan1-UCS2.bcmap": "66c5d0dc4964f4093e77b194023f3a0f689324028ec8330e1e1d0570bcba7c2f",+ "cmaps/Adobe-Korea1-0.bcmap": "dfb8c3874f0e5a8c3acf597d2c12d2b63e90bc5e4f0fce990ec4c56077d80b32",+ "cmaps/Adobe-Korea1-1.bcmap": "62f277b7b1c441c007797ae707d5c37258d029ce4661a2b911e2e1ee35e6adc1",+ "cmaps/Adobe-Korea1-2.bcmap": "1d77068af462f96d7ad28ad7e7d43eef6423c685b479d7dc25ff5df38db0380d",+ "cmaps/Adobe-Korea1-UCS2.bcmap": "857b723088be97255053562bfa41bd1075a7f7910d3bab59a0645c8bbc7060ff",+ "cmaps/B5-H.bcmap": "718ad0ffbef4c34f8f3f31292c462e519cd567a5511fc8b346c60010d64f4ef9",+ "cmaps/B5-V.bcmap": "b5c37383517477620ced927b6b4ffd4f4cc6230d8051b5b46a21d6768e07f7d8",+ "cmaps/B5pc-H.bcmap": "bab6028aead1d6149400e904ab10cfd319082d826473ed4c582c8eeed920f17e",+ "cmaps/B5pc-V.bcmap": "41543142b9767f3b76133899fc8453282b01ad3c653acaeea42d78c5a7d08c63",+ "cmaps/CNS-EUC-H.bcmap": "e8f89cd61e6486b948205da46499d659ed0aed949b7095fd3c8e95ffe2b0e7a9",+ "cmaps/CNS-EUC-V.bcmap": "cae422bec2ac6dbe86bf921cec942bacd2d0b733ffcca5f91b3ba14e917025a0",+ "cmaps/CNS1-H.bcmap": "e8487971ab20cd16f3de3e8ac56ec994b72b658ad113f2818239dfd5108f501a",+ "cmaps/CNS1-V.bcmap": "42df8076aaa7574505e7304af83a3323ec032c4177d64b1309db8c043d594a8a",+ "cmaps/CNS2-H.bcmap": "bc6024d274d440f0625c69e25f37036ef6cb6689432ceaa160d3432a2a716ca7",+ "cmaps/CNS2-V.bcmap": "2e4f70a8afd23a121030fc2e5b5f3816e903b11e7ba8b8c09654b31c80399c38",+ "cmaps/ETHK-B5-H.bcmap": "d2f10fa519336bc4efcc7b6deb9604b75429946b40d82e311cb3a97a1994c89a",+ "cmaps/ETHK-B5-V.bcmap": "1fea3fd0d9f0f679f80505800851ef2e4131d81127e18c006938ffa2f4c8b247",+ "cmaps/ETen-B5-H.bcmap": "87ee6b3f5bfda5fe26fa35431264c7d73070d10dbbf398a75185d63ae322c18d",+ "cmaps/ETen-B5-V.bcmap": "47dc0d2c21e3bde317947aec1675ceabc1d5460a60bf9c24334b8c407a17172c",+ "cmaps/ETenms-B5-H.bcmap": "d5f5a73da4173b7da9a3a20e16f26f9cd5d12deb1553409919e0cec6fd37fdee",+ "cmaps/ETenms-B5-V.bcmap": "18252fca90f472f479af1bddd60d6ab51c8e1b55dcf6845951426504934543e0",+ "cmaps/EUC-H.bcmap": "f9939cd57fccdc65c5d9f4c205fd497ebdbd283643308da5663801a8c1d9c595",+ "cmaps/EUC-V.bcmap": "1283a50a706507c4436da83ede9ad7a4440be25378f2e96f6c81a430081426a3",+ "cmaps/Ext-H.bcmap": "4000ed4e61a1c668ef453bbd0603cfa383defa793abd46a57ed870d7f527350b",+ "cmaps/Ext-RKSJ-H.bcmap": "e0d2f0df337660e73813238dd4a725f11f0621b90f3273857db253d0e7694caa",+ "cmaps/Ext-RKSJ-V.bcmap": "f617a22b6d67febb187990952006c91a9f5a4db21155d268c656252d0c21985d",+ "cmaps/Ext-V.bcmap": "c2087fb845a9e3acea0c2922cd40e6af67e11957bec74dcd597f1285edd490ce",+ "cmaps/GB-EUC-H.bcmap": "928bad06fd84a48f5ba7150d7716609119fb660f2aaa73eccad81ddab9b9d203",+ "cmaps/GB-EUC-V.bcmap": "a9ad88ac2479da529b16dc48abc5952332e27bc355335f91df5729a587533324",+ "cmaps/GB-H.bcmap": "1018c777a8910b5bb46d7d54a4aee9d51ca5cff8addb2b41c969d9101cb3fd1c",+ "cmaps/GB-V.bcmap": "0b96789143c0bbf9f1641ae7165b3456dccd14dabffcbb0bd654d5bf6f94f863",+ "cmaps/GBK-EUC-H.bcmap": "2103fed28650ede096a2281104a1a8a4304dae0db414342c636867522307123b",+ "cmaps/GBK-EUC-V.bcmap": "a7fd35dd14d9dbdb955f34e6c0630618b6620dfd09d4283b2f65a65ce77fcaea",+ "cmaps/GBK2K-H.bcmap": "3d919ae72af16c5cc6846ec87a4326a9f125e493c59d3628429d35c2c95fe8c4",+ "cmaps/GBK2K-V.bcmap": "b927fdfd595c07ce9158bf2ec13f4641b2e83b01c70989dadfabd6ed7c6ac2dc",+ "cmaps/GBKp-EUC-H.bcmap": "d15ebd8e81fb4fe8a244f1b1e877922e03500ac69eddf5001093e502430451d2",+ "cmaps/GBKp-EUC-V.bcmap": "fdc736d46e642625dccc8ad8c59f2c69fc7db7a13f2e799c6c6b779e707bb97a",+ "cmaps/GBT-EUC-H.bcmap": "dc5f44e48a39f3367ae28665027d8ab1d8cedb5a9dcc5068a900acd6709f60f9",+ "cmaps/GBT-EUC-V.bcmap": "a1ad24e63653b8aa388c18fa5e498f007564e43dde699a9f91ccb4645c999be8",+ "cmaps/GBT-H.bcmap": "8afda745a505763f3ff54c8126eeb48ef376ea9ed07d9f42ff9a22c5c547ec57",+ "cmaps/GBT-V.bcmap": "cdc2ec5c3c7c7033290c9a8894878202f08674eb9b1ae7d36218430326768771",+ "cmaps/GBTpc-EUC-H.bcmap": "7b23e2f7bfdb6c918f567b7324bf858f398bd8cd5f268d74ece19a3c91bf4f32",+ "cmaps/GBTpc-EUC-V.bcmap": "d7a1b13ead9ab511cf2cd01de6ce8b02aa8e8767e84895337d7a3b67f039f93b",+ "cmaps/GBpc-EUC-H.bcmap": "3c4a4eb82f05abe51f6650985c630e180438bfdd491318f5d20d2ec29236e1c3",+ "cmaps/GBpc-EUC-V.bcmap": "215bdfa2842705624b4cf4cd29b8e3c720f1e192365e0305c11030a424c84d7c",+ "cmaps/H.bcmap": "a0233e21047ec00b852125b243cbcf30abee511155b6d8159c24f944384bc9ee",+ "cmaps/HKdla-B5-H.bcmap": "5242bce18fb13ab4cc59b146a03eba36e4ce42667eeff09e10981a9d2aa4996b",+ "cmaps/HKdla-B5-V.bcmap": "2e0537f786c0791d41a925f72bad2d4e7268aa6cbf15a1400a722672cec38e2c",+ "cmaps/HKdlb-B5-H.bcmap": "fdc8159984bf5dbe475c0d5dfcb621ecee4dea07c38c668bd77f4c679e23b9b3",+ "cmaps/HKdlb-B5-V.bcmap": "b249eb9dcb915ab45057c5d4d7aa55ef88d0efbb092af6bae0b2d4705d139abf",+ "cmaps/HKgccs-B5-H.bcmap": "ab64c7fc5e9b2e97750cc4f269b0da14fd8649e49151b7598c8df86599bac591",+ "cmaps/HKgccs-B5-V.bcmap": "02ebdf7cdffb5395fb21091cd58a013a18ae5388922822f9dc6292ef16b98956",+ "cmaps/HKm314-B5-H.bcmap": "bfd8bbde6b36a9da4c1c902c74121a30d9807a7079a00eeea218be6adc223cef",+ "cmaps/HKm314-B5-V.bcmap": "2a64a815cfb6fdd480674a868762e3d161fda17543b20c9209978559f0667164",+ "cmaps/HKm471-B5-H.bcmap": "49d7c037758826b5b6c0fa329c35bbf25d3943197754e72ecd30c6fb04d745e6",+ "cmaps/HKm471-B5-V.bcmap": "be24c109e78aa4fe3c1f27d30aab3ed0741e783fa1b6b6c2719741072b54b132",+ "cmaps/HKscs-B5-H.bcmap": "08599378f41d96b40537adef6e6edcc4a787bc63f5accf47c026df4905a13914",+ "cmaps/HKscs-B5-V.bcmap": "d073542b7dad1c4cbf01c1af5f0cd13218d1281a491956e310c55702fc8705c4",+ "cmaps/Hankaku.bcmap": "b454701f7aecd7856769016dfd04ca64280a060f2c67a2466d50b4395d24974e",+ "cmaps/Hiragana.bcmap": "2ed669394756dd9458651cd9995ab29ab691ecb7686659003306cdf22767a414",+ "cmaps/KSC-EUC-H.bcmap": "6784e16dbc5861c036c23d3e55f0d4ba0975a3e464da0ee8e49bcfff0be070c4",+ "cmaps/KSC-EUC-V.bcmap": "fdb36bad85e9924823d49db374067988e024cf80fc894711f2c9178951cbbe95",+ "cmaps/KSC-H.bcmap": "c1f6d61f1d3304fd539a65ae72624fa567ecc3853bf52e283958a7a2515b3eee",+ "cmaps/KSC-Johab-H.bcmap": "939993d213f68db763bf156217c217ae23af082b91a0eacecf3d11eb4ff8ef8c",+ "cmaps/KSC-Johab-V.bcmap": "5d61967aac0e666def721e8b8d0fed8f95a879a14f2e76ce516c3d11c621e519",+ "cmaps/KSC-V.bcmap": "d7da5afd9f1fe74816d79c9325f0139a4efb6438664ebfdf9a7aa92f3034360f",+ "cmaps/KSCms-UHC-H.bcmap": "5b70d8f6a4fa9e2283dc649f0ff95d906d56efbee50a20e8d2faec3a8fed078e",+ "cmaps/KSCms-UHC-HW-H.bcmap": "a5e6ba22aceb02fdedee11bfb9ed138463d89e85b87810b9f075b469d936f8ec",+ "cmaps/KSCms-UHC-HW-V.bcmap": "890332a6a26880d463a12f2a6ff048bf9cf7e45077cfb1ca8815b89baa7bf411",+ "cmaps/KSCms-UHC-V.bcmap": "1631b531c9a40c8cbe24c2317dba107362e49fa6e18af620414d627c111d570c",+ "cmaps/KSCpc-EUC-H.bcmap": "709480682c55cedbb0124b9960d78e28febeee0df2e34607d61aac6601647ec7",+ "cmaps/KSCpc-EUC-V.bcmap": "031707887d6fc2378a36cdb6775334fd7a236c3f95048d8436abf43fe26fc49d",+ "cmaps/Katakana.bcmap": "3b6ca6642fbf8822da00d5e58a8aa275216d5c32dbf2bd73e934197fc9fc5c53",+ "cmaps/LICENSE": "aa92ab5a472974865a96fd4a4e9c13bb41bf6fe1b309cb6b8da48bc9e19839a2",+ "cmaps/NWP-H.bcmap": "286c6c9e335da330928a01edc3c97a3a623f1f7f3c42762b0a7dc2f651b1a78f",+ "cmaps/NWP-V.bcmap": "3a75fb7b59adfb172710758c425d8ac6c93fd5360a64dd4afd5dd04e60ab4b4d",+ "cmaps/RKSJ-H.bcmap": "a70de61a22a898f693f02cc011c3e3cff2e10aaa7cddb4661e456a21ae859f78",+ "cmaps/RKSJ-V.bcmap": "68c1a64506471a524ea5cfc3b3a9f8f70031989a6bd95427b1351f33ccf50b06",+ "cmaps/Roman.bcmap": "1c6b3ef9d9e5cb1aa329142ce9414b90f9b6d7f9182a2a9e927378dab8f0d43f",+ "cmaps/UniCNS-UCS2-H.bcmap": "779428116752f34e2490a1941d24e4634c71e3c22d053b811d2090ae2fb3c704",+ "cmaps/UniCNS-UCS2-V.bcmap": "1e5cc184b850ea44abc2df8ae5674279df668e8edf5e2a1a2ea2bd77adbd280f",+ "cmaps/UniCNS-UTF16-H.bcmap": "32ff139b3c7b91d6ad25f994701f3ce7b242906022c418fd73e6493fc228bfe5",+ "cmaps/UniCNS-UTF16-V.bcmap": "278eb1e68d1a236c60ef59472cf0176ee0d45f364285e76ca12419a08d46fb9a",+ "cmaps/UniCNS-UTF32-H.bcmap": "bf26eb67fe19ee5ba915799e80ca72408400aa8342fdf6a244a4f44de8f97336",+ "cmaps/UniCNS-UTF32-V.bcmap": "f7da3caf83ceb1cb37936fa10700d9ba6e9c3f72c5bc9724e3ac79bff0c0179e",+ "cmaps/UniCNS-UTF8-H.bcmap": "2f2a742bcd1a84a148a4a518b9eed51a8f9c6ca5ed3bc5e2e41fff97de5dc2d8",+ "cmaps/UniCNS-UTF8-V.bcmap": "b7c3f10780a8c62dd1c8ff6c30dc1e4e23b6cdc87c3a96fcd514cc98ffd3af9d",+ "cmaps/UniGB-UCS2-H.bcmap": "9201569b402e81ad8860650bd86350c4fa28e5dd5971f05fcacaf40f51de18ed",+ "cmaps/UniGB-UCS2-V.bcmap": "f10282335e4d64203bc2a653a3a47d745ec76c8ae04549f4d50180c1899be216",+ "cmaps/UniGB-UTF16-H.bcmap": "386fd39581245c034da016a92d23f3df1117d169f996100050b264fc09a84e35",+ "cmaps/UniGB-UTF16-V.bcmap": "0473cfbba612b92dd9918f0ff8aee9112897c48e0ffdc0eb82da3144ed8ea84a",+ "cmaps/UniGB-UTF32-H.bcmap": "f48a145dc4e3ed1dca1dde7111716a72306a2a4191ab05c6bae3a5c3a961cd2f",+ "cmaps/UniGB-UTF32-V.bcmap": "106acc49b7118bdef944e32107b4f348238f3929a0a15d3b7aab7b9101535993",+ "cmaps/UniGB-UTF8-H.bcmap": "f217b439c80ee5fa1bc2cf6d1defcc319f8d84483d166a00ee199e05a68588df",+ "cmaps/UniGB-UTF8-V.bcmap": "a64df947632878eacc532fa193c735c92a383b7d66e6f8374ac193af7c64fc63",+ "cmaps/UniJIS-UCS2-H.bcmap": "ad2352f40870880fbf7f8ee5abadff743fbd025fbf9830b8ada472d1c5e4da0b",+ "cmaps/UniJIS-UCS2-HW-H.bcmap": "16e87edca954177c0881c874859d6783220925d821b5cdfb8755b61ebd93f9ce",+ "cmaps/UniJIS-UCS2-HW-V.bcmap": "1973457e2c0192819947e56068625b34fb9a72ecc8a476ce6d7eaae5f73e2e5c",+ "cmaps/UniJIS-UCS2-V.bcmap": "42a133d8e2ce9dd6d2288018e01592d2bf2435b326d39b94ea0b6e6a44ac33d3",+ "cmaps/UniJIS-UTF16-H.bcmap": "f6a89c5688978548c83fcee990e205bc63c74274d5c69b49032a3bd4c49a05ee",+ "cmaps/UniJIS-UTF16-V.bcmap": "c67126fc7c73850855186bb0d6482ac0a365057e0b58778c4ab9f234683fef53",+ "cmaps/UniJIS-UTF32-H.bcmap": "96195950ce0fe24443d8eb426fa6b88534ec421d7bef9046f0b2362809cfba73",+ "cmaps/UniJIS-UTF32-V.bcmap": "ed4dafda402bdd19c4d5d8bf2ab41473c0f86f384552b4c7b963d6627daedeb1",+ "cmaps/UniJIS-UTF8-H.bcmap": "798fb0bf06ab0788d1f6a91c2db7de581612eef03c628f10e8f7ecd8f70ab448",+ "cmaps/UniJIS-UTF8-V.bcmap": "1021611424f913b2df0bfdbe94bd327c04e224ec89d8e821c6501ea3d21f4265",+ "cmaps/UniJIS2004-UTF16-H.bcmap": "710a32d7cb43fd6bd9dbf30da5971f8c941590f74441e208d852c2be0e74cc97",+ "cmaps/UniJIS2004-UTF16-V.bcmap": "3b149aff5c5707b57fb3215d1775852c8b1f413ec0f679ea628f25cf87fe098d",+ "cmaps/UniJIS2004-UTF32-H.bcmap": "8d2658e18741af7937d586a57c89729a6fec0d86121197c1f8518aa58b29cdfb",+ "cmaps/UniJIS2004-UTF32-V.bcmap": "6dd475782f2897648a683c48b2fa015a15b8f06856760bddc8a17a63f418bacb",+ "cmaps/UniJIS2004-UTF8-H.bcmap": "691c614ce432b3e62486efb54e5c84c6da5afe9b51b21253bde4758feb484183",+ "cmaps/UniJIS2004-UTF8-V.bcmap": "40a8c7ea2d46711c5f78fc9a878a7db68b1543ba5cd60ecf14f519a2deb829b7",+ "cmaps/UniJISPro-UCS2-HW-V.bcmap": "6826f94d789d7bf1960668c1c5819c34c9585c1b23152fbc19ee81c7df08524b",+ "cmaps/UniJISPro-UCS2-V.bcmap": "493de9fd1a08f7946065d8ab58f0c3c9fe489f5a0f109f2d05a3169b4bd5789f",+ "cmaps/UniJISPro-UTF8-V.bcmap": "6181d382cf736c5e09492e8be9f26f31fa25b7462253f23ab16646af432cad81",+ "cmaps/UniJISX0213-UTF32-H.bcmap": "692044e1fb33445668632bc9fe7386805c624864be1ddeb29d65bb0c99fc630c",+ "cmaps/UniJISX0213-UTF32-V.bcmap": "dd54e16ca7bffb3a886242549b2bf7d78a277087f7c60d2636f118c21a5b0646",+ "cmaps/UniJISX02132004-UTF32-H.bcmap": "f80ea5a989be30ccda5a8804baef6d3b4b044d2b339bf8b31c671b2466171cf6",+ "cmaps/UniJISX02132004-UTF32-V.bcmap": "94c22bd99e771c5fbe0dd8dc39850570d4db0075074aca13e272813edd7cc57f",+ "cmaps/UniKS-UCS2-H.bcmap": "a1081396ab4adb6f4a5b6c15f896963c244c1c9bcb65ce5616d06096a1b9811c",+ "cmaps/UniKS-UCS2-V.bcmap": "6cab547431958fbdc1d401d06ebd4dd61a73f5509a10f974df32bcbca11a2e43",+ "cmaps/UniKS-UTF16-H.bcmap": "42d35b396286499dfae1737a07adb3a64500df37b426580bfb1d3ea872938519",+ "cmaps/UniKS-UTF16-V.bcmap": "5bdb7390c80dcc136cb47d41dc7460082560969c17322ee739fe3020fb642410",+ "cmaps/UniKS-UTF32-H.bcmap": "3a01ec51ed1b828101351e337ffb8250abe11880032e5210f881170fed2588de",+ "cmaps/UniKS-UTF32-V.bcmap": "dfda895eceaed081af030dbbb962b49629eea817fc3c02bae15db93d0c68acd7",+ "cmaps/UniKS-UTF8-H.bcmap": "3fac9c65145f72d7d42157a3b9c5ed6904632184e6a0888f2b828699afd2002f",+ "cmaps/UniKS-UTF8-V.bcmap": "9ecc6cf30dd354b9778ddba163b6cc7302b087ce9f39d1ba73472d2b75ed13ca",+ "cmaps/V.bcmap": "b9ad1c0c09ff14bca52f9a28a9767eb857ad0e8946e64ba14c7387a7eb69866a",+ "cmaps/WP-Symbol.bcmap": "543923bead225732aba30976690ee89095a19628277b5863efecc2c728d5d7bf",+ "legacy/build/pdf.min.mjs": "f401927e692efc7735e0cd528c490d0dd31b7f0972c122b7040df805be45cce4",+ "legacy/build/pdf.worker.min.mjs": "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e",+ "legacy/web/images/altText_add.svg": "1a9591a23999e1924438b948a9f9671147f04e01e5be724391a3a8a2b58289d9",+ "legacy/web/images/altText_disclaimer.svg": "5d19067a6b51e5bcc2d61325033a8450d301535505a97c50f4141f4cd9e2cf05",+ "legacy/web/images/altText_done.svg": "5b40360d098d1a93227a0a5cdb110f6e5ff3a3eb4af97b61e856c49e17141621",+ "legacy/web/images/altText_spinner.svg": "4089182e21627182ed1d4020978b597d984fb8de4cf547e9f4ac2aec9af13179",+ "legacy/web/images/altText_warning.svg": "07264f4de78a45a4177ddefb48837217aa69b51462ef5b35d3fb9f90000c9ead",+ "legacy/web/images/annotation-check.svg": "9a680f1212888ede7dcae6bfc8cafc447babf4ce531271c8d07277b0aedade96",+ "legacy/web/images/annotation-comment.svg": "c58b385b4a0be6de822a3262b8191073d1730f6420368bd9c6d80db7312327ff",+ "legacy/web/images/annotation-help.svg": "74d9bba0814d12f5ae2715189e1747b7edf5ff6d82c4ca75bae86d717319b6eb",+ "legacy/web/images/annotation-insert.svg": "b2153e2c88c62179029ea9876d463216529ecf581b77d52c971a2cdf3d3166c6",+ "legacy/web/images/annotation-key.svg": "5772b8dd158b0f02bb2be689bb680f4903d84e202cb29a3dc0560af53134c6ba",+ "legacy/web/images/annotation-newparagraph.svg": "a583cca122263d94c3eebfefe83c965a1b305b9c84e5aa3c5ba10527941db7db",+ "legacy/web/images/annotation-noicon.svg": "76399e70d311834d11ab2d6239118b36847d79a78d7655b1f839d51c811304cf",+ "legacy/web/images/annotation-note.svg": "11a75c9f233dd3e5e3500edcdd733358394f28395337616e8b0430694bf0dba1",+ "legacy/web/images/annotation-paperclip.svg": "0213c8baed4f8c497881ffed0e49abb309291d51725aaf1a0a757174b4999368",+ "legacy/web/images/annotation-paragraph.svg": "efbcd2a6cfb4581dad74a1c09ad43cf2b8245611e5b19c966317da948f2bcb7c",+ "legacy/web/images/annotation-pushpin.svg": "22197186d18445959e5fe5577d8e34440b31d87c811daf47318078310c0c5530",+ "legacy/web/images/checkmark.svg": "424df6b8515df22424c9505a9e87d35d87d3fd59962d56692fcc4d17613f2165",+ "legacy/web/images/comment-actionsButton.svg": "281b2348ed747ea3ee74763a01d56441d8c570b3e68f11556dc4084a14484d1f",+ "legacy/web/images/comment-closeButton.svg": "fdb819984e10758952bc35b5be3220538b21a787656794b1071fecd3d2648930",+ "legacy/web/images/comment-editButton.svg": "e79c41bf53a89ced9a3ad364a49943813189d06fd96174952e5fb2636938b70f",+ "legacy/web/images/comment-popup-editButton.svg": "857c0198bc536885f2b486353d5719d0c1bb91d69325474f7d787ce5b43cfe1e",+ "legacy/web/images/cursor-editorFreeHighlight.svg": "90b04428328a67e184fe1b1a1f28cb0d62bf6e298614ca241b6564fb24cb9e7e",+ "legacy/web/images/cursor-editorFreeText.svg": "fedb05ee0dd510514ed9edb24b3b4da2707931279a0bf48e2a1deb3a1f4cf581",+ "legacy/web/images/cursor-editorInk.svg": "0ae889debe01269b49b89d8845995281223b8ae289405758631076b763da3efe",+ "legacy/web/images/cursor-editorTextHighlight.svg": "c6252b0edcb68dac87557a027180fcbdbd93466841aa34792530f7cce54cec5d",+ "legacy/web/images/editor-toolbar-delete.svg": "f1f47a2cb479a87807f9bd61bd5813c1fe857dbbcb4fb35ae7a77ca39114f920",+ "legacy/web/images/editor-toolbar-edit.svg": "c6eacc709e4dd30a57120b6531856c003a4c931c46656c3625e2fd5886cf4ce6",+ "legacy/web/images/findbarButton-next.svg": "3029879b7e1060d54c4edcfe0c93c8c3b8c1756fb794e5d4add64028b5f99fab",+ "legacy/web/images/findbarButton-previous.svg": "766d12bb08b9f13c753d289f3c029f5ca202eda3a8be52afc9e31697335f4a80",+ "legacy/web/images/gv-toolbarButton-download.svg": "010d9d77a425e80eb666a196f500cdd8b15758af69a19ad7f11279b78c29e3f5",+ "legacy/web/images/loading-icon.gif": "483c4a0396691993a641ec409c44b8b7e1daab0ae7e2b2944c4bc59520bb7655",+ "legacy/web/images/loading.svg": "7d6e14cf6226c74c26e2141180eadc944ef4ce8565e9b6dd2670ec202417a764",+ "legacy/web/images/messageBar_closingButton.svg": "7393c7791916243eca6bbdda8bf137d36600fffc76d7a55d33a77bd4e7778193",+ "legacy/web/images/messageBar_info.svg": "050e838b982b1b3e993e06bd666f8693ea98e89fb568c39c4af32e128477aeef",+ "legacy/web/images/messageBar_warning.svg": "888a4bf2ad5150028663dde01fe71599336c87ca12697180e51bd8a13b88084f",+ "legacy/web/images/pages_closeButton.svg": "03577a1fc1fc16be0331c65d45accc4d57c269381999e00b2bec9005225a7643",+ "legacy/web/images/pages_selected.svg": "a66ae84122fc40cc1282c68205909387e05a80061b9a7268a54b4bd0c9e7e2fc",+ "legacy/web/images/pages_viewArrow.svg": "409d9a306df6e86bc433365f961be50c9b4256b7a89b741f2f858af5b456b2ce",+ "legacy/web/images/pages_viewButton.svg": "f49c2ddd994c602dcaceb3c6b1445ef37bfd6ca8e2cb468d894741368c3344af",+ "legacy/web/images/secondaryToolbarButton-documentProperties.svg": "735a4bc556610bc6dedaa40a36ccf444c31032be02ad20df5ac4c66ebaa5bbc3",+ "legacy/web/images/secondaryToolbarButton-firstPage.svg": "d46a7b0760fbc043a98f9b328f6b4ee56df8de140a2a290f0e2a915ff772e287",+ "legacy/web/images/secondaryToolbarButton-handTool.svg": "e968339ba921e68d4d83e6ec7a4321f1791c86f4eff552f28cf4c81c6f88155b",+ "legacy/web/images/secondaryToolbarButton-lastPage.svg": "4cc4b92888b776ea3a09d5e86b17d7bb50a8f3e6d09854d4c2e3f050c34dc9f8",+ "legacy/web/images/secondaryToolbarButton-rotateCcw.svg": "7eb24492df9f42c8ab053cbead5d985b0daaccced649392d1fbfde4931459451",+ "legacy/web/images/secondaryToolbarButton-rotateCw.svg": "03d2e7bad2fc95895334e43edf34309a64223f32504304034eb1f6b163954898",+ "legacy/web/images/secondaryToolbarButton-scrollHorizontal.svg": "c61fb184d5311255b627a9943c156bb1f00f835282d832241e01a7d82a22b678",+ "legacy/web/images/secondaryToolbarButton-scrollPage.svg": "e60ae21987a2e6e5352ac3171363352cac9d2cae36bf828d1729cbfa286e085d",+ "legacy/web/images/secondaryToolbarButton-scrollVertical.svg": "79871e2329cbb4dc2b6df94aae5f3074b3fdebffba46fe7d3ade9aff5726bfb0",+ "legacy/web/images/secondaryToolbarButton-scrollWrapped.svg": "8734aa2747f6fff9e8fd09f6e9509db43ec1b63935c8f6b8291e9347bc7e2706",+ "legacy/web/images/secondaryToolbarButton-selectTool.svg": "332e08979379ff2f8a7bfd336e8ca6348546c78ce2a6bf464cd31dc2c64004ac",+ "legacy/web/images/secondaryToolbarButton-spreadEven.svg": "ac385199d448c0d5ae5d4c06d2c76db0a31bb5db54d0fbd727f3dc889e73271b",+ "legacy/web/images/secondaryToolbarButton-spreadNone.svg": "649934c2f447d7a239d6ffce8f8e0804b50dfe1d9421a1d16e9543c0aee9b03e",+ "legacy/web/images/secondaryToolbarButton-spreadOdd.svg": "43b6862d35f86dbe5fec6b16e2cb59ca22c490bdf0787e4590c1ceb494d05244",+ "legacy/web/images/signature-properties-row-check.svg": "3fe9e7e5869e80c04e560ec79e8960ed0f3e918195b6de2b039bd33fb23ecf0f",+ "legacy/web/images/toolbarButton-bookmark.svg": "f2a335bc963e95344d26d61157b1511f5f78d705b38579004971d51a3c62401c",+ "legacy/web/images/toolbarButton-currentOutlineItem.svg": "5f6505f05dbc728301942b37de22d490f09276e6c9a6561b1894afa91f34439c",+ "legacy/web/images/toolbarButton-download.svg": "afa286c8ea1941eaec589ed6a2103c5a845f3ff76a7423ba985f449465005163",+ "legacy/web/images/toolbarButton-editorFreeText.svg": "9ec2202e18ba668ee1753179afead4e1786eac82da2cc82afc5a09584c242c43",+ "legacy/web/images/toolbarButton-editorHighlight.svg": "df0aac50621777fb63da60b38c71c5bbbde746c4dd55c30dd141621cb30b7cc4",+ "legacy/web/images/toolbarButton-editorInk.svg": "081bf99d3c2390036a2d9c7e9485316bcd049f90a74e982f1eebcfd4d9b178e3",+ "legacy/web/images/toolbarButton-editorSignature.svg": "32e07998fd55a7ed40ec2b542fe324ec097d9023fc4c59d6debe33becdf215c2",+ "legacy/web/images/toolbarButton-editorStamp.svg": "18294793f2399a8a44ee246d63b20cd46cb3cd38a1bb72f00b826e7f756c5f52",+ "legacy/web/images/toolbarButton-menuArrow.svg": "2db41f97615a8c912f676a62c88b12e2b8715f4ed188df325737423501aa4a8a",+ "legacy/web/images/toolbarButton-menuArrowNova.svg": "8677b09af730ba49dde7be6f16d08a0b4eb594ed3402f9693e298223d3e9efff",+ "legacy/web/images/toolbarButton-openFile.svg": "7acb9e9964dd618bfcb657d8d18db2c55ef8f168c37f3873c06d72c63e1b11ec",+ "legacy/web/images/toolbarButton-pageDown.svg": "09a14cbd902aad9fe40f2351db2ac5593ad897aed8810b9c6aeb0e56389ff100",+ "legacy/web/images/toolbarButton-pageUp.svg": "bac79138cb730c6bfa63bef02d7e5906aee727bb54df15878823426822badaaa",+ "legacy/web/images/toolbarButton-presentationMode.svg": "2a08e4277e39a9faef69520570744650bb017c2e90fe7c15224144d6b4abfbe7",+ "legacy/web/images/toolbarButton-print.svg": "267745d6c176afe038630c3f7c0fcda78141fc7634f73898ffc6cbb1262c77ab",+ "legacy/web/images/toolbarButton-search.svg": "32889acafd84edeec513db6131252fa97ffff00fee6272d05e35e2d95216e30f",+ "legacy/web/images/toolbarButton-secondaryToolbarToggle.svg": "ff717321d89309f51bcccc28f347e6a888e73570527845d6560a84f5d70cb3a0",+ "legacy/web/images/toolbarButton-signaturePropertiesError.svg": "957d6ce5e6c4a62f88ad0e79c50b6ccd94358524a7450d3b04eb318146a46351",+ "legacy/web/images/toolbarButton-signaturePropertiesVerified.svg": "ae9f3a3e7e8e16900e6b2dbaa7acea0111763b72125246e55b572f4e9e66bc16",+ "legacy/web/images/toolbarButton-viewAttachments.svg": "e07fbf17b3c7ca2cda9c4e54cdd66cb0aa63d368232cbb2c9aed5559720bf96c",+ "legacy/web/images/toolbarButton-viewLayers.svg": "e0b8a59c272dc9a1d9a07d461363f96c3b3bd3df2db778f8f99743dfffd51d78",+ "legacy/web/images/toolbarButton-viewOutline.svg": "eeb6cd0ce94dcfea6bd2aca222da7b1583d74800ea9c94640ff8fa06c13fb044",+ "legacy/web/images/toolbarButton-viewThumbnail.svg": "5fa35769db66b33d6408f378e8aa68fa060331f0cc9dd6ad41fb7366082aad34",+ "legacy/web/images/toolbarButton-viewsManagerToggle.svg": "88098d3e47fd921122c5263dce50ee67c662c9cb65908be0481891dfe521a6c5",+ "legacy/web/images/toolbarButton-zoomIn.svg": "722dfe315686a5841d0a0d00f34df8f706d2c6e24551d46a5ebe971fe4af62d2",+ "legacy/web/images/toolbarButton-zoomOut.svg": "366a40c3627e67f97164976d5ff38b5484716e834d08fefe252a6ea37feda895",+ "legacy/web/images/treeitem-collapsed.svg": "37c96d0dc2f626c541303a76067184ac09614f2390a8430e973a84e5184e2646",+ "legacy/web/images/treeitem-expanded.svg": "df4a149c4eaed4573620621087f7bab816f049e3e341574654fab598435db086",+ "legacy/web/pdf_viewer.css": "d26aee4b5a7eab8f1a9ad16f271c674474d69d9a1e99ae8923776252052e0f98",+ "legacy/web/pdf_viewer.mjs": "44bb8ce82f624d546ff35eb679a8d5234c795d8a63954d678cdb3fecc5dada48",+ "standard_fonts/FoxitDingbats.pfb": "845c752392b6c914fb989c75a08b7792b88f542d2499042ef2889f8c814a16ed",+ "standard_fonts/FoxitFixed.pfb": "b6c8fe53f134b8b6d4578cd2d544df4cee9624c4efa8d51a560fb40ea296101b",+ "standard_fonts/FoxitFixedBold.pfb": "f1b7159702973f54fc86254ea38bcf3712b2a736eb3a0995751e9f4bb45ad603",+ "standard_fonts/FoxitFixedBoldItalic.pfb": "8a000945843bd31add06aee63bf9fd41b7578b4f3242a4b7cd46349ad9d24d4d",+ "standard_fonts/FoxitFixedItalic.pfb": "5007faf8320fa1fcc08b8894b356ad976f60b992ba29ee5272578bbdebaf3876",+ "standard_fonts/FoxitSerif.pfb": "4f57d2b9d884af8f907bf22df6019b52d86cbf6214fdbd02b1ae05472a543f35",+ "standard_fonts/FoxitSerifBold.pfb": "0bdf4b04e964139818d51eda03d566ba999fc3ba2421b1c6c51f9dc969022e80",+ "standard_fonts/FoxitSerifBoldItalic.pfb": "a406cac82583bf98175cb62c87ed5e95c45fbb34eece63a10b0a13e793cb2e10",+ "standard_fonts/FoxitSerifItalic.pfb": "610ae0687198045c4db5d1a6650fd5e92536631706382eb8b72e38df578d0ae9",+ "standard_fonts/FoxitSymbol.pfb": "47967d055530e7357088a08403115425643ec2cdfd6201ba8af0fbd7116c1539",+ "standard_fonts/LICENSE_FOXIT": "b578cdd2345840ada550bd12519533812320d5f1d21cf4c1c7e1b1b0a31c98b7",+ "standard_fonts/LICENSE_LIBERATION": "d2c4d5b3e115a519cb58eb691aa64538397e2611f9ebe801392cf9667997e7dc",+ "standard_fonts/LiberationSans-Bold.ttf": "361c61b82d575c5c35fd9157fda8b0194bcfcd0d88ea8521a4fb5dd53d33dddc",+ "standard_fonts/LiberationSans-BoldItalic.ttf": "a224075ac17495ad0a3af3bc0a419ac0704a8b3fd1095456201fb9b095fc281d",+ "standard_fonts/LiberationSans-Italic.ttf": "832b4406dbef23628800d3aaad21048534ac84d7e3ad955be83b8172ed8ef512",+ "standard_fonts/LiberationSans-Regular.ttf": "f8ace1f892b2bd9dc1792ba7f097fa7588f84fed48321480e04de5390828221f",+ "wasm/LICENSE_JBIG2": "9e66b7f1b934a28b37f3bc4dac97915de1674271e79a0a88182a18ed9731b4d1",+ "wasm/LICENSE_OPENJPEG": "a6af136f3e15038a666b61f376612a07d9a4e48cb7c01adbf3e33b3f14ab49b6",+ "wasm/LICENSE_PDFJS_JBIG2": "aad3cce09842e00e9e11ad5e8fef8cc02fbc3a3768fe2f007443b9cee37aaee5",+ "wasm/LICENSE_PDFJS_OPENJPEG": "717fc62da03292dbb4dd0c8280bd4ce7bb8550dcf31d772bc93455fb50313425",+ "wasm/LICENSE_PDFJS_QCMS": "508a77d2e7b51d98adeed32648ad124b7b30241a8e70b2e72c99f92d8e5874d1",+ "wasm/LICENSE_QCMS": "36d847ae882f6574ebc72f56a4f354e4f104fde4a584373496482e97d52d31bc",+ "wasm/jbig2.wasm": "e6bee67724a7b5436fe8162638e3708cfc8d52b6342db69a49715e30ff27cfdc",+ "wasm/jbig2_nowasm_fallback.js": "04c795a6657a4553a64b781ea3e85256203d913c3b71b72b85fa3ce00622f458",+ "wasm/openjpeg.wasm": "004a0e62db930ba9ff2a22212f4554d0bb57a0635a8287caf70f98117cee14ba",+ "wasm/openjpeg_nowasm_fallback.js": "0f998419819da4491d8302222aa9e2ff2494685641aa2a6c21c3760c29f3e319",+ "wasm/qcms_bg.wasm": "663d86126d5f5fcb1c61490f94353e2a8375660b8c5498ab3ebab5a34b08800e"+ }+}diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitDingbats.pfbnew file mode 100644index 00000000..30d52963Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitDingbats.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixed.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixed.pfbnew file mode 100644index 00000000..f12dcbceBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixed.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfbnew file mode 100644index 00000000..cf8e24aeBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedBold.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfbnew file mode 100644index 00000000..d2880017Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfbnew file mode 100644index 00000000..d71697d4Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitFixedItalic.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerif.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerif.pfbnew file mode 100644index 00000000..3fa682efBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerif.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfbnew file mode 100644index 00000000..ff7c6ddeBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifBold.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfbnew file mode 100644index 00000000..460231fbBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfbnew file mode 100644index 00000000..d03a7c78Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSerifItalic.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSymbol.pfbnew file mode 100644index 00000000..c8f9bca7Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/FoxitSymbol.pfb differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LICENSE_FOXIT b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LICENSE_FOXITnew file mode 100644index 00000000..8b4ed6dd--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LICENSE_FOXIT@@ -0,0 +1,27 @@+// Copyright 2014 PDFium Authors. All rights reserved.+//+// Redistribution and use in source and binary forms, with or without+// modification, are permitted provided that the following conditions are+// met:+//+// * Redistributions of source code must retain the above copyright+// notice, this list of conditions and the following disclaimer.+// * Redistributions in binary form must reproduce the above+// copyright notice, this list of conditions and the following disclaimer+// in the documentation and/or other materials provided with the+// distribution.+// * Neither the name of Google Inc. nor the names of its+// contributors may be used to endorse or promote products derived from+// this software without specific prior written permission.+//+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LICENSE_LIBERATIONnew file mode 100644index 00000000..213c1826--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LICENSE_LIBERATION@@ -0,0 +1,363 @@+LICENSE AGREEMENT AND LIMITED PRODUCT WARRANTY+LIBERATION FONT SOFTWARE++This agreement governs the use of the Software and any updates to the Software, regardless of the delivery mechanism. Subject to the following terms, Red Hat, Inc. ("Red Hat") grants to the user ("Client") a license to this work pursuant to the GNU General Public License v.2 with the exceptions set forth below and such other terms as are set forth in this End User License Agreement.++ 1. The Software and License Exception. LIBERATION font software (the "Software") consists of TrueType-OpenType formatted font software for rendering LIBERATION typefaces in sans-serif, serif, and monospaced character styles. You are licensed to use, modify, copy, and distribute the Software pursuant to the GNU General Public License v.2 with the following exceptions:++ (a) As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.++ (b) As a further exception, any distribution of the object code of the Software in a physical product must provide you the right to access and modify the source code for the Software and to reinstall that modified version of the Software in object code form on the same physical product on which you received it.++ 2. Intellectual Property Rights. The Software and each of its components, including the source code, documentation, appearance, structure and organization are owned by Red Hat and others and are protected under copyright and other laws. Title to the Software and any component, or to any copy, modification, or merged portion shall remain with the aforementioned, subject to the applicable license. The "LIBERATION" trademark is a trademark of Red Hat, Inc. in the U.S. and other countries. This agreement does not permit Client to distribute modified versions of the Software using Red Hat's trademarks. If Client makes a redistribution of a modified version of the Software, then Client must modify the files names to remove any reference to the Red Hat trademarks and must not use the Red Hat trademarks in any way to reference or promote the modified Software.++ 3. Limited Warranty. To the maximum extent permitted under applicable law, the Software is provided and licensed "as is" without warranty of any kind, expressed or implied, including the implied warranties of merchantability, non-infringement or fitness for a particular purpose. Red Hat does not warrant that the functions contained in the Software will meet Client's requirements or that the operation of the Software will be entirely error free or appear precisely as described in the accompanying documentation.++ 4. Limitation of Remedies and Liability. To the maximum extent permitted by applicable law, Red Hat or any Red Hat authorized dealer will not be liable to Client for any incidental or consequential damages, including lost profits or lost savings arising out of the use or inability to use the Software, even if Red Hat or such dealer has been advised of the possibility of such damages.++ 5. General. If any provision of this agreement is held to be unenforceable, that shall not affect the enforceability of the remaining provisions. This agreement shall be governed by the laws of the State of North Carolina and of the United States, without regard to any conflict of laws provisions, except that the United Nations Convention on the International Sale of Goods shall not apply.+Copyright © 2007-2011 Red Hat, Inc. All rights reserved. LIBERATION is a trademark of Red Hat, Inc.++------------------------------------------------------------------------------++The text of the GNU General Public License, version 2, referenced above:++ GNU GENERAL PUBLIC LICENSE+ Version 2, June 1991++ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA+ Everyone is permitted to copy and distribute verbatim copies+ of this license document, but changing it is not allowed.++ Preamble++ The licenses for most software are designed to take away your+freedom to share and change it. By contrast, the GNU General Public+License is intended to guarantee your freedom to share and change free+software--to make sure the software is free for all its users. This+General Public License applies to most of the Free Software+Foundation's software and to any other program whose authors commit to+using it. (Some other Free Software Foundation software is covered by+the GNU Lesser General Public License instead.) You can apply it to+your programs, too.++ When we speak of free software, we are referring to freedom, not+price. Our General Public Licenses are designed to make sure that you+have the freedom to distribute copies of free software (and charge for+this service if you wish), that you receive source code or can get it+if you want it, that you can change the software or use pieces of it+in new free programs; and that you know you can do these things.++ To protect your rights, we need to make restrictions that forbid+anyone to deny you these rights or to ask you to surrender the rights.+These restrictions translate to certain responsibilities for you if you+distribute copies of the software, or if you modify it.++ For example, if you distribute copies of such a program, whether+gratis or for a fee, you must give the recipients all the rights that+you have. You must make sure that they, too, receive or can get the+source code. And you must show them these terms so they know their+rights.++ We protect your rights with two steps: (1) copyright the software, and+(2) offer you this license which gives you legal permission to copy,+distribute and/or modify the software.++ Also, for each author's protection and ours, we want to make certain+that everyone understands that there is no warranty for this free+software. If the software is modified by someone else and passed on, we+want its recipients to know that what they have is not the original, so+that any problems introduced by others will not reflect on the original+authors' reputations.++ Finally, any free program is threatened constantly by software+patents. We wish to avoid the danger that redistributors of a free+program will individually obtain patent licenses, in effect making the+program proprietary. To prevent this, we have made it clear that any+patent must be licensed for everyone's free use or not licensed at all.++ The precise terms and conditions for copying, distribution and+modification follow.++ GNU GENERAL PUBLIC LICENSE+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION++ 0. This License applies to any program or other work which contains+a notice placed by the copyright holder saying it may be distributed+under the terms of this General Public License. The "Program", below,+refers to any such program or work, and a "work based on the Program"+means either the Program or any derivative work under copyright law:+that is to say, a work containing the Program or a portion of it,+either verbatim or with modifications and/or translated into another+language. (Hereinafter, translation is included without limitation in+the term "modification".) Each licensee is addressed as "you".++Activities other than copying, distribution and modification are not+covered by this License; they are outside its scope. The act of+running the Program is not restricted, and the output from the Program+is covered only if its contents constitute a work based on the+Program (independent of having been made by running the Program).+Whether that is true depends on what the Program does.++ 1. You may copy and distribute verbatim copies of the Program's+source code as you receive it, in any medium, provided that you+conspicuously and appropriately publish on each copy an appropriate+copyright notice and disclaimer of warranty; keep intact all the+notices that refer to this License and to the absence of any warranty;+and give any other recipients of the Program a copy of this License+along with the Program.++You may charge a fee for the physical act of transferring a copy, and+you may at your option offer warranty protection in exchange for a fee.++ 2. You may modify your copy or copies of the Program or any portion+of it, thus forming a work based on the Program, and copy and+distribute such modifications or work under the terms of Section 1+above, provided that you also meet all of these conditions:++ a) You must cause the modified files to carry prominent notices+ stating that you changed the files and the date of any change.++ b) You must cause any work that you distribute or publish, that in+ whole or in part contains or is derived from the Program or any+ part thereof, to be licensed as a whole at no charge to all third+ parties under the terms of this License.++ c) If the modified program normally reads commands interactively+ when run, you must cause it, when started running for such+ interactive use in the most ordinary way, to print or display an+ announcement including an appropriate copyright notice and a+ notice that there is no warranty (or else, saying that you provide+ a warranty) and that users may redistribute the program under+ these conditions, and telling the user how to view a copy of this+ License. (Exception: if the Program itself is interactive but+ does not normally print such an announcement, your work based on+ the Program is not required to print an announcement.)++These requirements apply to the modified work as a whole. If+identifiable sections of that work are not derived from the Program,+and can be reasonably considered independent and separate works in+themselves, then this License, and its terms, do not apply to those+sections when you distribute them as separate works. But when you+distribute the same sections as part of a whole which is a work based+on the Program, the distribution of the whole must be on the terms of+this License, whose permissions for other licensees extend to the+entire whole, and thus to each and every part regardless of who wrote it.++Thus, it is not the intent of this section to claim rights or contest+your rights to work written entirely by you; rather, the intent is to+exercise the right to control the distribution of derivative or+collective works based on the Program.++In addition, mere aggregation of another work not based on the Program+with the Program (or with a work based on the Program) on a volume of+a storage or distribution medium does not bring the other work under+the scope of this License.++ 3. You may copy and distribute the Program (or a work based on it,+under Section 2) in object code or executable form under the terms of+Sections 1 and 2 above provided that you also do one of the following:++ a) Accompany it with the complete corresponding machine-readable+ source code, which must be distributed under the terms of Sections+ 1 and 2 above on a medium customarily used for software interchange; or,++ b) Accompany it with a written offer, valid for at least three+ years, to give any third party, for a charge no more than your+ cost of physically performing source distribution, a complete+ machine-readable copy of the corresponding source code, to be+ distributed under the terms of Sections 1 and 2 above on a medium+ customarily used for software interchange; or,++ c) Accompany it with the information you received as to the offer+ to distribute corresponding source code. (This alternative is+ allowed only for noncommercial distribution and only if you+ received the program in object code or executable form with such+ an offer, in accord with Subsection b above.)++The source code for a work means the preferred form of the work for+making modifications to it. For an executable work, complete source+code means all the source code for all modules it contains, plus any+associated interface definition files, plus the scripts used to+control compilation and installation of the executable. However, as a+special exception, the source code distributed need not include+anything that is normally distributed (in either source or binary+form) with the major components (compiler, kernel, and so on) of the+operating system on which the executable runs, unless that component+itself accompanies the executable.++If distribution of executable or object code is made by offering+access to copy from a designated place, then offering equivalent+access to copy the source code from the same place counts as+distribution of the source code, even though third parties are not+compelled to copy the source along with the object code.++ 4. You may not copy, modify, sublicense, or distribute the Program+except as expressly provided under this License. Any attempt+otherwise to copy, modify, sublicense or distribute the Program is+void, and will automatically terminate your rights under this License.+However, parties who have received copies, or rights, from you under+this License will not have their licenses terminated so long as such+parties remain in full compliance.++ 5. You are not required to accept this License, since you have not+signed it. However, nothing else grants you permission to modify or+distribute the Program or its derivative works. These actions are+prohibited by law if you do not accept this License. Therefore, by+modifying or distributing the Program (or any work based on the+Program), you indicate your acceptance of this License to do so, and+all its terms and conditions for copying, distributing or modifying+the Program or works based on it.++ 6. Each time you redistribute the Program (or any work based on the+Program), the recipient automatically receives a license from the+original licensor to copy, distribute or modify the Program subject to+these terms and conditions. You may not impose any further+restrictions on the recipients' exercise of the rights granted herein.+You are not responsible for enforcing compliance by third parties to+this License.++ 7. If, as a consequence of a court judgment or allegation of patent+infringement or for any other reason (not limited to patent issues),+conditions are imposed on you (whether by court order, agreement or+otherwise) that contradict the conditions of this License, they do not+excuse you from the conditions of this License. If you cannot+distribute so as to satisfy simultaneously your obligations under this+License and any other pertinent obligations, then as a consequence you+may not distribute the Program at all. For example, if a patent+license would not permit royalty-free redistribution of the Program by+all those who receive copies directly or indirectly through you, then+the only way you could satisfy both it and this License would be to+refrain entirely from distribution of the Program.++If any portion of this section is held invalid or unenforceable under+any particular circumstance, the balance of the section is intended to+apply and the section as a whole is intended to apply in other+circumstances.++It is not the purpose of this section to induce you to infringe any+patents or other property right claims or to contest validity of any+such claims; this section has the sole purpose of protecting the+integrity of the free software distribution system, which is+implemented by public license practices. Many people have made+generous contributions to the wide range of software distributed+through that system in reliance on consistent application of that+system; it is up to the author/donor to decide if he or she is willing+to distribute software through any other system and a licensee cannot+impose that choice.++This section is intended to make thoroughly clear what is believed to+be a consequence of the rest of this License.++ 8. If the distribution and/or use of the Program is restricted in+certain countries either by patents or by copyrighted interfaces, the+original copyright holder who places the Program under this License+may add an explicit geographical distribution limitation excluding+those countries, so that distribution is permitted only in or among+countries not thus excluded. In such case, this License incorporates+the limitation as if written in the body of this License.++ 9. The Free Software Foundation may publish revised and/or new versions+of the General Public License from time to time. Such new versions will+be similar in spirit to the present version, but may differ in detail to+address new problems or concerns.++Each version is given a distinguishing version number. If the Program+specifies a version number of this License which applies to it and "any+later version", you have the option of following the terms and conditions+either of that version or of any later version published by the Free+Software Foundation. If the Program does not specify a version number of+this License, you may choose any version ever published by the Free Software+Foundation.++ 10. If you wish to incorporate parts of the Program into other free+programs whose distribution conditions are different, write to the author+to ask for permission. For software which is copyrighted by the Free+Software Foundation, write to the Free Software Foundation; we sometimes+make exceptions for this. Our decision will be guided by the two goals+of preserving the free status of all derivatives of our free software and+of promoting the sharing and reuse of software generally.++ NO WARRANTY++ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,+REPAIR OR CORRECTION.++ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE+POSSIBILITY OF SUCH DAMAGES.++ END OF TERMS AND CONDITIONS++ How to Apply These Terms to Your New Programs++ If you develop a new program, and you want it to be of the greatest+possible use to the public, the best way to achieve this is to make it+free software which everyone can redistribute and change under these terms.++ To do so, attach the following notices to the program. It is safest+to attach them to the start of each source file to most effectively+convey the exclusion of warranty; and each file should have at least+the "copyright" line and a pointer to where the full notice is found.++ <one line to give the program's name and a brief idea of what it does.>+ Copyright (C) <year> <name of author>++ 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; either version 2 of the License, or+ (at your option) any later version.++ 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, write to the Free Software Foundation, Inc.,+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.++Also add information on how to contact you by electronic and paper mail.++If the program is interactive, make it output a short notice like this+when it starts in an interactive mode:++ Gnomovision version 69, Copyright (C) year name of author+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.+ This is free software, and you are welcome to redistribute it+ under certain conditions; type `show c' for details.++The hypothetical commands `show w' and `show c' should show the appropriate+parts of the General Public License. Of course, the commands you use may+be called something other than `show w' and `show c'; they could even be+mouse-clicks or menu items--whatever suits your program.++You should also get your employer (if you work as a programmer) or your+school, if any, to sign a "copyright disclaimer" for the program, if+necessary. Here is a sample; alter the names:++ Yoyodyne, Inc., hereby disclaims all copyright interest in the program+ `Gnomovision' (which makes passes at compilers) written by James Hacker.++ <signature of Ty Coon>, 1 April 1989+ Ty Coon, President of Vice++This General Public License does not permit incorporating your program into+proprietary programs. If your program is a subroutine library, you may+consider it more useful to permit linking proprietary applications with the+library. If this is what you want to do, use the GNU Lesser General+Public License instead of this License.diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttfnew file mode 100644index 00000000..ee237154Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Bold.ttf differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttfnew file mode 100644index 00000000..42b5717dBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttfnew file mode 100644index 00000000..0cf61263Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Italic.ttf differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttfnew file mode 100644index 00000000..366d1489Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/standard_fonts/LiberationSans-Regular.ttf differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_JBIG2 b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_JBIG2new file mode 100644index 00000000..37a329c6--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_JBIG2@@ -0,0 +1,196 @@+// Copyright 2014 The PDFium Authors+//+// Redistribution and use in source and binary forms, with or without+// modification, are permitted provided that the following conditions are+// met:+//+// * Redistributions of source code must retain the above copyright+// notice, this list of conditions and the following disclaimer.+// * Redistributions in binary form must reproduce the above+// copyright notice, this list of conditions and the following disclaimer+// in the documentation and/or other materials provided with the+// distribution.+// * Neither the name of Google Inc. nor the names of its+// contributors may be used to endorse or promote products derived from+// this software without specific prior written permission.+//+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+ Apache License+ Version 2.0, January 2004+ https://www.apache.org/licenses/+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION+ 1. Definitions.+ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.+ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.+ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.+ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.+ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.+ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.+ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).+ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.+ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."+ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.+ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.+ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.+ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:+ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and+ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and+ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and+ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.+ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.+ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.+ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.+ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.+ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.+ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.+ END OF TERMS AND CONDITIONS+ APPENDIX: How to apply the Apache License to your work.+ To apply the Apache License to your work, attach the following+ boilerplate notice, with the fields enclosed by brackets "[]"+ replaced with your own identifying information. (Don't include+ the brackets!) The text should be enclosed in the appropriate+ comment syntax for the file format. We also recommend that a+ file or class name and description of purpose be included on the+ same "printed page" as the copyright notice for easier+ identification within third-party archives.+ Copyright [yyyy] [name of copyright owner]+ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at+ https://www.apache.org/licenses/LICENSE-2.0+ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_OPENJPEG b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_OPENJPEGnew file mode 100644index 00000000..e8fa4104--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_OPENJPEG@@ -0,0 +1,39 @@+/*+ * The copyright in this software is being made available under the 2-clauses+ * BSD License, included below. This software may be subject to other third+ * party and contributor rights, including patent rights, and no such rights+ * are granted under this license.+ *+ * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium+ * Copyright (c) 2002-2014, Professor Benoit Macq+ * Copyright (c) 2003-2014, Antonin Descampe+ * Copyright (c) 2003-2009, Francois-Olivier Devaux+ * Copyright (c) 2005, Herve Drolon, FreeImage Team+ * Copyright (c) 2002-2003, Yannick Verschueren+ * Copyright (c) 2001-2003, David Janssens+ * Copyright (c) 2011-2012, Centre National d'Etudes Spatiales (CNES), France+ * Copyright (c) 2012, CS Systemes d'Information, France+ *+ * All rights reserved.+ *+ * Redistribution and use in source and binary forms, with or without+ * modification, are permitted provided that the following conditions+ * are met:+ * 1. Redistributions of source code must retain the above copyright+ * notice, this list of conditions and the following disclaimer.+ * 2. Redistributions in binary form must reproduce the above copyright+ * notice, this list of conditions and the following disclaimer in the+ * documentation and/or other materials provided with the distribution.+ *+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE+ * POSSIBILITY OF SUCH DAMAGE.+ */diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_JBIG2 b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_JBIG2new file mode 100644index 00000000..f1845baf--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_JBIG2@@ -0,0 +1,13 @@+Copyright 2026 Mozilla Foundation++Licensed under the Apache License, Version 2.0 (the "License");+you may not use this file except in compliance with the License.+You may obtain a copy of the License at++http://www.apache.org/licenses/LICENSE-2.0++Unless required by applicable law or agreed to in writing, software+distributed under the License is distributed on an "AS IS" BASIS,+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+See the License for the specific language governing permissions and+limitations under the License.diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_OPENJPEGnew file mode 100644index 00000000..623929b8--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG@@ -0,0 +1,22 @@+Copyright (c) 2024, Mozilla Foundation++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++1. Redistributions of source code must retain the above copyright notice, this+ list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright notice,+ this list of conditions and the following disclaimer in the documentation+ and/or other materials provided with the distribution.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_QCMS b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_QCMSnew file mode 100644index 00000000..9cf10627--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_PDFJS_QCMS@@ -0,0 +1,19 @@+MIT License++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_QCMS b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_QCMSnew file mode 100644index 00000000..eec8246d--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/LICENSE_QCMS@@ -0,0 +1,21 @@+qcms+Copyright (C) 2009-2024 Mozilla Corporation+Copyright (C) 1998-2007 Marti Maria++Permission is hereby granted, free of charge, to any person obtaining+a copy of this software and associated documentation files (the "Software"),+to deal in the Software without restriction, including without limitation+the rights to use, copy, modify, merge, publish, distribute, sublicense,+and/or sell copies of the Software, and to permit persons to whom the Software+is furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in+all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO+THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/jbig2.wasm b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/jbig2.wasmnew file mode 100644index 00000000..254e1e48Binary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/jbig2.wasm differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/jbig2_nowasm_fallback.js b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/jbig2_nowasm_fallback.jsnew file mode 100644index 00000000..c86528f0--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/jbig2_nowasm_fallback.js@@ -0,0 +1,15 @@+/* THIS FILE IS GENERATED - DO NOT EDIT */+async function JBig2(moduleArg={}){var moduleRtn;var Module=moduleArg;var ENVIRONMENT_IS_WEB=true;var ENVIRONMENT_IS_WORKER=false;var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var _scriptName=import.meta.url;var scriptDirectory="";var readAsync;if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}{readAsync=async url=>{var response=await fetch(url,{credentials:"same-origin"});if(response.ok){return response.arrayBuffer()}throw new Error(response.status+" : "+response.url)}}}else{}var out=console.log.bind(console);var err=console.error.bind(console);var wasmBinary;var WebAssembly={Memory:function(opts){this.buffer=new ArrayBuffer(opts["initial"]*65536)},Module:function(binary){},Instance:function(module,info){this.exports=(+// EMSCRIPTEN_START_ASM+function instantiate(ha){var a;var b=new Uint8Array(123);for(var c=25;c>=0;--c){b[48+c]=52+c;b[65+c]=c;b[97+c]=26+c}b[43]=62;b[47]=63;function i(j,k,l){var d,e,c=0,f=k,g=l.length,h=k+(g*3>>2)-(l[g-2]=="=")-(l[g-1]=="=");for(;c<g;c+=4){d=b[l.charCodeAt(c+1)];e=b[l.charCodeAt(c+2)];j[f++]=b[l.charCodeAt(c)]<<2|d>>4;if(f<h)j[f++]=d<<4|e>>2;if(f<h)j[f++]=e<<6|b[l.charCodeAt(c+3)]}return j}function m(n){i(a,1024,"TjdmeGNvZGVjMTVTY2FubGluZURlY29kZXJFAAAAAAAAAAAGBwIACAMACwQADAUADgYADwcABgcKAAgLABKAABMIABQJABtAAAkDDQAHAQAIDAAXwAAYgAYqEAArEQA0DgA1DwAMAxYABBcACBQADBMAExoAFxUAGBwAJBsAJxIAKBgAKxkANwABKgIdAAMeAAQtAAUuAAovAAswABIhABMiABQjABUkABYlABcmABofABsgACQ1ACU2ACgnACkoACopACsqACwrAC0sADI9ADM+ADQ/ADUAADZAATeAAUo7AEs8AFIxAFMyAFQzAFU0AFg3AFk4AFo5AFs6AGTAAWUAAmeAAmhAAhCYwAWZAAaaQAabwAbMwALNAAPSQAPTgAPUwAPVAATWQATXgATYwATZAAXaQAXbgAUAAwgABwxABw2ABwoSwAcTAAgUQAgVgAgWwAgXAAkcQAkdgAkewAkfAAr/");i(a,1393,"AgIDAAMCAAICAQADBAACAgYAAwUAAQMHAAIECQAFCAADBAoABQsABwwAAgQNAAcOAAEYDwAFCBIAD0AAFxAAGBEANwAACggABwxABw2ABxcYABgZACgXADcWAGcTAGgUAGwVADYSwAcTAAgUQAgVgAgWwAgXAAkcQAkdgAkewAkfAAokNAAnNwAoOAArOwAsPAAzQAE0gAE1wAE3NQA4NgBSMgBTMwBULABVLQBWLgBXLwBYOQBZOgBaPQBbAAFkMABlMQBmPgBnPwBoHgBpHwBqIABrIQBsKABtKQDIgADJwADKGgDLGwDMHADNHQDSIgDTIwDUJADVJQDWJgDXJwDaKgDbKwAUSoACS8ACTAADTUADUgAFU0AFVIAFVcAFWgAGW0AGZIAGZcAGbAACbUACcoADc8ADdAAEdUAEdoAEd8AE/wAAAAAAAAAA//////////8IBwYGBQUFBQQEBAQEBAQEAwMDAwMDAwMDAwMDAwMDAwICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ==");i(a,1996,"5AcAAAwAAAANAAAADgAAAA8AAAAQAAAAaBcAAPAHAAAYCAAATjdmeGNvZGVjMTJfR0xPQkFMX19OXzExMEZheERlY29kZXJFAAAAADAXAAAABAAAAVYBAQEAATQCBgAAARgDCQAAwQoEDAAAIQUFHQAAIQImIQAAAVYHBgEAAVQIDgAAAUgJDgAAATgKDgAAATALEQAAASQMEgAAARwNFAAAARYdFQAAAVYPDgEAAVQQDgAAAVERDwAAAUgSEAAAATgTEQAAATQUEgAAATAVEwAAASgWEwAAASQXFAAAASIYFQAAARwZFgAAARgaFwAAARYbGAAAARQcGQAAARIdGgAAAREeGwAAwQofHAAAwQkgHQAAoQghHgAAIQUiHwAAQQQjIAAAoQIkIQAAIQIlIgAAQQEmIwAAEQEnJAAAhQAoJQAASQApJgAAJQAqJwAAFQArKAAACQAsKQAABQAtKgAAAQAtKwAAAVYuLgAAAAACAAAAAAAAAAQAAAAEAAAABgAAABQAAAAIAAAAVAAAAAwAAABUAQAAIAAAAFQRAAAAAAAAEQAAABIAAAAlm5UH5QAAAAEAAwDwB/gBfAD3e/sOvQEQAAgABAAGAAQAAQAA+AAegAMACAACgAAMAAkABwAHAA8ABwAfAB8ADwAPAAcAAwAlmwAA93sAAAAAAADwBwAAEAAAAAYAAAAA+AAAAAgAAJUHAAD7DgAAAQAAAPgBAAAIAAAABAAAAAAeAAAAAgAA5QAAAL0BAAADAAAAfAAAAAQAAAABAAAAgAMAAIAAAAAAAAAATAoAABMAAAAUAAAAFQAAABYAAAAXAAAAGAAAABkAAAAaAAAAGwAAAGgXAABYCgAAyAoAAE5TdDNfXzIxMF9fZnVuY3Rpb242X19mdW5jSU0xNENKQmlnMl9HUkRQcm9jRjE0RlhDT0RFQ19TVEFUVVNQTlMyXzI3UHJvZ3Jlc3NpdmVBcml0aERlY29kZVN0YXRlRUVGUzNfUlMyX1M1X0VFRQAwFwAA0AoAAE5TdDNfXzIxMF9fZnVuY3Rpb242X19iYXNlSUYxNEZYQ09ERUNfU1RBVFVTUjE0Q0pCaWcyX0dSRFByb2NQTlMzXzI3UHJvZ3Jlc3NpdmVBcml0aERlY29kZVN0YXRlRUVFRQBAFgAASAsAAAAAAACQCwAA3AsAAE0xNENKQmlnMl9HUkRQcm9jRjE0RlhDT0RFQ19TVEFUVVNQTlNfMjdQcm9ncmVzc2l2ZUFyaXRoRGVjb2RlU3RhdGVFRQAAAPAVAACYCwAARjE0RlhDT0RFQ19TVEFUVVNQTjE0Q0pCaWcyX0dSRFByb2MyN1Byb2dyZXNzaXZlQXJpdGhEZWNvZGVTdGF0ZUVFAAAwFwAA5AsAADE0Q0pCaWcyX0dSRFByb2M=");i(a,3080,"wAwAAAUAAAABAAAA8AwAAAgAAAABAAAAMA0AAAkAAAAAAAAAgA0AAAcAAAAAAAAAwA0AAAgAAAAAAAAAAA4AAA4AAAAAAAAAcA4AAA8AAAABAAAA8A4AABUAAAABAAAAoA8AABYAAAABAAAAUBAAABUAAAAAAAAAABEAAA4AAAAAAAAAcBEAAA4AAAAAAAAA4BEAAA4AAAAAAAAAUBIAAAcAAAAAAAAAkBIAAA0=");i(a,3264,"AQQAAAAAAAACCAAAEAAAAAMQAAAQAQAAACAAAP////8DIAAAEAEB");i(a,3312,"AQAAAAAAAAACAAAAAQAAAAMAAAACAAAABAMAAAMAAAAFBgAACwAAAAAgAAD/////BiAAAEsAAAAGAAAAAAAAAAgIAAAA////AQAAAAAAAAACAAAAAQAAAAMAAAACAAAABAMAAAMAAAAFBgAACwAAAAggAAD//v//ByAAAEsAAAAG");i(a,3456,"AQAAAAEAAAACAAAAAgAAAAMAAAADAAAABAMAAAQAAAAFBgAADAAAAAAgAAD/////BSAAAEw=");i(a,3520,"BwgAAAH///8BAAAAAQAAAAIAAAACAAAAAwAAAAMAAAAEAwAABAAAAAUGAAAMAAAAByAAAAD///8GIAAATAAAAAUKAAAA+P//BAkAAAD8//8ECAAAAP7//wQHAAAA////BQYAAID///8FBQAAwP///wQFAADg////AgcAAAAAAAADBwAAgAAAAAMIAAAAAQAABAkAAAACAAAECgAAAAQAAAYgAAD/9///BiAAAAAIAAAECQAAAPz//wMIAAAA/v//BAcAAAD///8FBgAAgP///wUFAADA////BAUAAOD///8EBQAAAAAAAAUFAAAgAAAABQYAAEAAAAAEBwAAgAAAAAMIAAAAAQAAAwkAAAACAAADCgAAAAQAAAUgAAD/+///BSAAAAAI");i(a,3824,"CAMAAPH///8JAQAA+f///wgBAAD7////CQAAAP3///8HAAAA/v///wQAAAD/////AgEAAAAAAAAFAAAAAgAAAAYAAAADAAAAAwQAAAQAAAAGAQAAFAAAAAQEAAAWAAAABAUAACYAAAAFBgAARgAAAAUHAACGAAAABgcAAAYBAAAHCAAAhgEAAAYKAACGAgAACSAAAPD///8JIAAAhgYAAAI=");i(a,4e3,"CAQAAOH///8JAgAA8f///wgCAAD1////CQEAAPn///8HAQAA+////wQBAAD9////AwEAAP////8DAQAAAQAAAAUBAAADAAAABgEAAAUAAAADBQAABwAAAAYCAAAnAAAABAUAACsAAAAEBgAASwAAAAUHAACLAAAABQgAAAsBAAAGCAAACwIAAAcJAAALAwAABgsAAAsFAAAJIAAA4P///wkgAAALDQAAAgAAAAAAAAAHBAAA6////wgAAAD7////BwAAAPz///8FAAAA/f///wICAAD+////BQAAAAIAAAAGAAAAAwAAAAcAAAAEAAAACAAAAAUAAAACBgAABgAAAAUFAABGAAAABgUAAGYAAAAGBgAAhgAAAAYHAADGAAAABggAAEYBAAAGCQAARgIAAAYKAABGBAAABwsAAEYIAAAIIAAA6v///wggAABGEAAAAg==");i(a,4352,"AQAAAAEAAAACAQAAAgAAAAQAAAAEAAAABAEAAAUAAAAFAQAABwAAAAUCAAAJAAAABgIAAA0AAAAHAgAAEQAAAAcDAAAVAAAABwQAAB0AAAAHBQAALQAAAAcGAABNAAAAACAAAAAAAAAHIAAAjQAAAAEAAAABAAAAAgAAAAIAAAADAQAAAwAAAAUAAAAFAAAABQEAAAYAAAAGAQAACAAAAAcAAAAKAAAABwEAAAsAAAAHAgAADQAAAAcDAAARAAAABwQAABkAAAAIBQAAKQAAAAAgAAAAAAAACCAAAEkAAAABAAAAAQAAAAMAAAACAAAABAAAAAMAAAAFAAAABAAAAAQBAAAFAAAAAwMAAAcAAAAGAQAADwAAAAYCAAARAAAABgMAABUAAAAGBAAAHQAAAAYFAAAtAAAABwYAAE0AAAAAIAAAAAAAAAcgAACNAAAAAwAAAP7///8DAAAA/////wEAAAAAAAAAAwAAAAEAAAADAAAAAgAAAAAgAAD9////ACAAAAM=");i(a,4752,"BwQAAOj///8GAgAA+P///wUBAAD8////BAAAAP7///8DAAAA/////wEAAAAAAAAAAwAAAAEAAAAEAAAAAgAAAAUBAAADAAAABgIAAAUAAAAHBAAACQAAAAcgAADn////ByAAABkAAAAcAAAAHQAAAGJhZF92YXJpYW50X2FjY2VzcwB2ZWN0b3IAc3RkOjpiYWRfZnVuY3Rpb25fY2FsbABiYWRfYXJyYXlfbmV3X2xlbmd0aAAAAB4AAAAfAAAAIAAAACE=");i(a,4964,"IgAAACIAAAAjAAAAIwAAACMAAAAjAAAAIwAAACMAAAAiAAAAIgAAACMAAAAiAAAAIgAAACIAAAAi");i(a,5056,"IwAAACMAAAAiAAAAIgAAAAAAAAAiAAAAAAAAACM=");i(a,5224,"eBQAAAsAAAAkAAAAJQAAAGgXAACEFAAAiBcAAE5TdDNfXzIxN2JhZF9mdW5jdGlvbl9jYWxsRQAAAAAAtBQAAAIAAAAmAAAAJwAAAGgXAADAFAAAiBcAAFN0MThiYWRfdmFyaWFudF9hY2Nlc3MAAGgXAADkFAAAIBcAAE4xMF9fY3h4YWJpdjExNl9fc2hpbV90eXBlX2luZm9FAAAAAGgXAAAUFQAA2BQAAE4xMF9fY3h4YWJpdjExN19fY2xhc3NfdHlwZV9pbmZvRQAAAGgXAABEFQAA2BQAAE4xMF9fY3h4YWJpdjExN19fcGJhc2VfdHlwZV9pbmZvRQAAAGgXAAB0FQAA2BQAAE4xMF9fY3h4YWJpdjEyMF9fZnVuY3Rpb25fdHlwZV9pbmZvRQAAAABoFwAAqBUAADgVAABOMTBfX2N4eGFiaXYxMjlfX3BvaW50ZXJfdG9fbWVtYmVyX3R5cGVfaW5mb0U=");i(a,5600,"/////0RuAAAAAAAAaBUAACgAAAApAAAAKgAAACsAAAAsAAAAaBcAABAWAAAIFQAATjEwX19jeHhhYml2MTIwX19zaV9jbGFzc190eXBlX2luZm9FAAAAAAAAAACcFQAAKAAAAC0AAAAqAAAAKwAAAC4AAAAAAAAAlBYAAAIAAAAvAAAAMAAAAFN0OWV4Y2VwdGlvbgAAAABoFwAAhBYAAIgXAABTdDliYWRfYWxsb2MAAAAAaBcAAKAWAAB4FgAAU3QyMGJhZF9hcnJheV9uZXdfbGVuZ3RoAAAAAAAAAADQFgAAAQAAADEAAAAyAAAAaBcAANwWAACIFwAAU3QxMWxvZ2ljX2Vycm9yAAAAAAAAFwAAAQAAADMAAAAyAAAAaBcAAAwXAADQFgAAU3QxMmxlbmd0aF9lcnJvcgAAAAAwFwAAUBcAAAAAAAAIFQAAKAAAADQAAAAqAAAAKwAAADUAAAA2AAAANwAAADgAAABTdDl0eXBlX2luZm8AAAAAAAAAAAQWAAAoAAAAOQAAACoAAAArAAAANQAAADoAAAA7AAAAPAAAADAXAABoFg==");i(a,6032,"IBwBAL0=")}function o(){throw new Error("abort")}function p(q,r,s){a.copyWithin(q,r,r+s)}function t(q,u,s){q=q>>>0;s=s>>>0;if(q+s>a.length)throw"trap: invalid memory.fill";a.fill(u,q,q+s)}function ga(n){var v=new ArrayBuffer(16777216);var w=new Int8Array(v);var x=new Int16Array(v);var y=new Int32Array(v);var z=new Uint8Array(v);var A=new Uint16Array(v);var B=new Uint32Array(v);var C=new Float32Array(v);var D=new Float64Array(v);var E=Math.imul;var F=Math.fround;var G=Math.abs;var H=Math.clz32;var I=Math.min;var J=Math.max;var K=Math.floor;var L=Math.ceil;var M=Math.trunc;var N=Math.sqrt;var O=n.a;var P=O.a;var Q=O.b;var R=O.c;var S=O.d;var T=O.e;var U=O.f;var V=O.g;var W=O.h;var X=O.i;var Y=72736;var Z=0;+// EMSCRIPTEN_START_FUNCS+function yc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,u=0,v=0,C=0,D=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0;J=Y-16|0;Y=J;a:{b:{c:{d:{c=y[a+4>>2];b=y[c+8>>2];i=y[c+4>>2];e:{if(b>>>0>i>>>0){break e}if((b|0)==(i|0)){aa=2;break c}R=a+80|0;while(1){if(b>>>0>i>>>0){break e}if(i-b>>>0<11){break c}f:{g:{h:{m=y[R>>2];i:{if(!m){b=na(72);w[b+4|0]=0;y[b>>2]=0;t(b+8|0,0,64);y[J+4>>2]=0;ib(R,b);ac(J+4|0);j:{c=y[a+80>>2];k:{if(ra(y[a+4>>2],c)){break k}if(va(y[a+4>>2],c+4|0)){break k}b=y[a+4>>2];d=y[b+8>>2];g=y[b>>2];l:{m:{if(B[b+4>>2]<=d>>>0){w[J+15|0]=0;break m}d=z[d+g|0];w[J+15|0]=d;if(d>>>0<224){break m}if(ra(b,c+8|0)){break k}b=y[c+8>>2]&536870911;y[c+8>>2]=b;if(b>>>0>64){break k}g=y[a+4>>2];i=y[g+8>>2];d=i+(b+8>>>3|0)|0;if(d>>>0<i>>>0){break l}h=g;g=y[g+4>>2];y[h+8>>2]=d>>>0<g>>>0?d:g;break l}if(va(b,J+15|0)){break k}b=z[J+15|0]>>>5|0;y[c+8>>2]=b}g=z[c+4|0];n:{if(!b){break n}d=y[c>>2];xc(c+12|0,b);b=0;d=(d>>>0>65536?4:d>>>0>256?2:1)-1|0;while(1){if(y[c+8>>2]<=(b|0)){break n}o:{p:{switch(d-1|0){default:if(va(y[a+4>>2],J+15|0)){break k}m=z[J+15|0];y[y[c+12>>2]+(b<<2)>>2]=m;break o;case 0:if(Wa(y[a+4>>2],J+12|0)){break k}m=A[J+12>>1];y[y[c+12>>2]+(b<<2)>>2]=m;break o;case 1:break e;case 2:break p}}if(ra(y[a+4>>2],J+8|0)){break k}m=y[J+8>>2];y[y[c+12>>2]+(b<<2)>>2]=m}b=b+1|0;if(B[c>>2]>m>>>0){continue}break}break k}b=y[a+4>>2];q:{if(!(g&64)){if(va(b,J+15|0)){break k}y[c+24>>2]=z[J+15|0];break q}if(ra(b,c+24|0)){break k}}if(!ra(y[a+4>>2],c+28|0)){break j}}ib(R,0);break i}b=y[a+4>>2];d=y[b+20>>2];y[c+40>>2]=y[b+16>>2];y[c+44>>2]=d;b=y[b+8>>2];y[c+48>>2]=1;y[c+36>>2]=b;y[a+84>>2]=b;m=y[a+80>>2]}r:{while(1){h=0;c=0;f=Y-368|0;Y=f;b=2;s:{t:{u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{L:{M:{N:{O:{P:{Q:{R:{S:{T:{U:{d=z[m+4|0]&63;switch(d-16|0){case 0:break T;case 1:case 2:case 3:case 5:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 21:case 25:case 28:case 29:case 30:case 31:break B;case 4:case 6:case 7:break S;case 20:case 22:case 23:break R;case 24:case 26:case 27:break Q;case 32:break P;case 33:break O;case 34:break N;case 35:break u;case 36:break M;case 37:break L;default:break U}}V:{switch(d|0){case 0:b=0;s=0;F=0;N=0;e=Y-272|0;Y=e;l=1;if(!Wa(y[a+4>>2],e+118|0)){j=na(56);y[j+40>>2]=0;y[j+32>>2]=0;y[j+36>>2]=0;y[j+24>>2]=0;y[j+28>>2]=0;y[j+16>>2]=0;y[j+20>>2]=0;h=A[e+118>>1];c=h&1;w[j|0]=c;d=h>>>10&3;w[j+3|0]=d;g=h&12288;w[j+2|0]=(g|0)!=0;i=(h&254)>>>1&1;w[j+1|0]=i;Q=j+16|0;W:{X:{Y:{if(!c){c=d?2:8;d=j+44|0;while(1){if((b|0)!=(c|0)){g=b+d|0;b=b+1|0;if(!va(y[a+4>>2],g)){continue}break W}break}if(z[j+1|0]!=1){break X}if(!z[j+2|0]){break Y}break X}if(g|!i){break X}}c=j+52|0;b=0;while(1){if((b|0)==4){break X}d=b+c|0;b=b+1|0;if(!va(y[a+4>>2],d)){continue}break}break W}if(ra(y[a+4>>2],j+12|0)){break W}if(ra(y[a+4>>2],j+8|0)|B[j+12>>2]>65535|B[j+8>>2]>65535){break W}b=y[m+8>>2];i=(b|0)>0?b:0;b=0;while(1){if((b|0)==(i|0)){c=1;k=0;b=0;while(1)if((b|0)==(i|0)){Z:{_:{$:{aa:{ba:{ca:{da:{ea:{fa:{if(!(c&1)){break fa}y[j+4>>2]=k;U=Ub(e+104|0,k);n=y[U>>2];ga:{if((n|0)==y[U+4>>2]){break ga}b=y[m+8>>2];q=(b|0)>0?b:0;c=1;k=0;while(1){if((q|0)==(F|0)){break ga}ha:{b=Ma(a,y[y[m+12>>2]+(F<<2)>>2]);if(z[b+4|0]&63){break ha}b=y[b+56>>2];g=y[b+24>>2];d=y[b+28>>2]-g>>2;b=0;while(1){if((b|0)==(d|0)){g=0;i=0;if(c&1){b=d+k|0;g=b>>>0>=d>>>0;i=g?b:0}k=i;c=g;break ha}i=b+k|0;if(!(i>>>0>=b>>>0&c)){break fa}y[n+(i<<2)>>2]=y[g+(b<<2)>>2];b=b+1|0;continue}}F=F+1|0;continue}}bb(Q,U);ia:{if(z[j|0]!=1){break ia}b=h>>>2&3;if((b|0)==2){break Z}d=h>>>4&3;if((d|0)==2){break Z}ja:{ka:{switch(b|0){case 0:c=sa(a,4);b=0;break ja;case 1:c=sa(a,5);b=0;break ja;default:break ka}}b=Ga(a,m,0);if(!b){break Z}c=y[b+68>>2];b=1}y[j+28>>2]=c;la:{ma:{switch(d|0){case 0:c=sa(a,2);break la;case 1:c=sa(a,3);break la;default:break ma}}c=Ga(a,m,b);if(!c){break Z}b=b+1|0;c=y[c+68>>2]}y[j+32>>2]=c;na:{if(!(h&64)){c=sa(a,1);break na}c=Ga(a,m,b);if(!c){break Z}b=b+1|0;c=y[c+68>>2]}y[j+36>>2]=c;if(z[j+1|0]!=1){break ia}oa:{if(!(h&128)){b=sa(a,1);break oa}b=Ga(a,m,b);if(!b){break Z}b=y[b+68>>2]}y[j+40>>2]=b}W=z[j+1|0];V=z[j|0];b=z[j+3|0];c=z[j+2|0];y[e+100>>2]=0;y[e+92>>2]=0;y[e+96>>2]=0;y[e+88>>2]=0;y[e+80>>2]=0;y[e+84>>2]=0;c=c?1024:8192;b=b?(b|0)==1?8192:1024:65536;pa:{if(!(!(h&256)|!s)){if(!(V&1)){d=Sb(e+92|0,y[s+56>>2]);if((b|0)!=y[e+96>>2]-y[d>>2]>>3){break _}}if(!(W&1)){break pa}b=Sb(e+80|0,y[s+56>>2]+12|0);if((c|0)==y[e+84>>2]-y[b>>2]>>3){break pa}break _}if(!(V&1)){kb(e+92|0,b)}if(!(W&1)){break pa}kb(e+80|0,c)}b=y[m+44>>2];d=b;c=y[m+40>>2];y[e+64>>2]=c;y[e+68>>2]=b;g=y[m+36>>2];y[e+72>>2]=g;y[m+52>>2]=2;qa:{if(!(b|c)|z[a+48|0]!=1){break qa}i=y[a+108>>2];b=i;while(1){b=y[b+4>>2];if((i|0)==(b|0)){break qa}if((c|0)!=y[b+8>>2]|(d|0)!=y[b+12>>2]|(g|0)!=y[b+16>>2]){continue}break}c=Ad(y[b+24>>2]);y[e+120>>2]=0;Rb(m+56|0,c);Za(e+120|0);zd(y[a+108>>2],e- -64|0,b+24|0);c=y[a+108>>2];d=y[b>>2];g=y[b+4>>2];y[d+4>>2]=g;y[g>>2]=d;y[c+8>>2]=y[c+8>>2]-1;oc(b);break aa}if(!(V&1)){u=Ra(y[a+4>>2]);y[e+60>>2]=u;I=y[e+92>>2];d=y[e+96>>2];C=y[e+80>>2];g=y[e+84>>2];ba=Fa();y[e+268>>2]=ba;ca=Fa();y[e+252>>2]=ca;da=Fa();y[e+248>>2]=da;ea=Fa();y[e+244>>2]=ea;i=y[j+8>>2]+y[j+4>>2]|0;b=0;while(1){c=b;b=b+1|0;if(i>>>0>1<<c>>>0){continue}break}_=I+3240|0;S=g-C>>3;P=Cd(e+120|0,c&255);O=gb(e+256|0,y[j+8>>2]);G=d-I>>3;X=G>>>0>405;i=0;F=0;while(1){ra:{sa:{ta:{b=y[j+8>>2];if(b>>>0>i>>>0){y[e+240>>2]=0;Aa(ba,u,e+236|0);F=y[e+236>>2]+F|0;if(F>>>0>65535){break ta}K=0;while(1){ua:{l=Aa(ca,u,e+232|0);if(!l|B[j+8>>2]<=i>>>0){break ua}l=1;K=y[e+232>>2]+K|0;if(K>>>0>65535){break ua}if(!(!F|!K)){va:{wa:{xa:{ya:{za:{if(!z[j+1|0]){r=qb();y[e+228>>2]=r;y[r+8>>2]=F;y[r+4>>2]=K;w[r|0]=0;b=z[j+3|0];w[r+1|0]=0;w[r+2|0]=0;w[r+3|0]=b;w[r+16|0]=z[j+44|0];w[r+17|0]=z[j+45|0];w[r+18|0]=z[j+46|0];w[r+19|0]=z[j+47|0];w[r+20|0]=z[j+48|0];w[r+21|0]=z[j+49|0];w[r+22|0]=z[j+50|0];w[r+23|0]=z[j+51|0];Aa:{switch(b|0){case 0:if(xd(r)){D=nc(r,u,I,G,0);break wa}D=mc(r,u,I,G,0);break wa;case 1:if(wd(r)){D=nc(r,u,I,G,1);break wa}D=mc(r,u,I,G,1);break wa;case 2:if(Qb(r)){D=nc(r,u,I,G,2);break wa}D=mc(r,u,I,G,2);break wa;default:break Aa}}if(!Qb(r)){break za}D=xa(K,F);y[e+160>>2]=D;if(!qa(D)){break ya}b=y[r+4>>2];if(!b){break fa}b=b-1|0;L=b>>>3|0;T=(b&7)+1|0;g=0;k=0;n=0;c=0;while(1){Ba:{Ca:{if(B[r+8>>2]>n>>>0){ja(e+192|0,D,n);h=y[e+196>>2];q=y[e+192>>2];if(z[r+1|0]!=1){b=c;break Ca}if(z[u|0]){break ya}if(!X){break fa}b=0;d=ka(u,_);if((d|0)==(c|0)){break Ca}y[e+184>>2]=h;y[e+180>>2]=q;y[e+172>>2]=k;y[e+168>>2]=g;b=y[e+184>>2];y[e+8>>2]=y[e+180>>2];y[e+12>>2]=b;b=y[e+172>>2];y[e>>2]=y[e+168>>2];y[e+4>>2]=b;Pa(e+8|0,e);c=c^d;break Ba}y[e+160>>2]=0;break xa}c=0;H=0;Da:{if(!n){Ea:{while(1){k=7;v=0;if((H|0)==(L|0)){break Ea}Fa:{while(1){if((k|0)>=0){if(z[u|0]){break Fa}if(c>>>0>=G>>>0){break fa}d=ka(u,(c<<3)+I|0);c=d|c<<1&1006;v=d<<k|v;k=k-1|0;continue}break}if((h|0)==(H|0)){break fa}w[q+H|0]=v;H=H+1|0;continue}break}if(H>>>0<L>>>0){break ya}}k=0;v=0;while(1){if((k|0)==(T|0)){break Da}if(z[u|0]){break ya}if(c>>>0>=G>>>0){break fa}d=ka(u,(c<<3)+I|0);c=d|c<<1&1006;v=d<<7-k|v;k=k+1|0;continue}}if(!k){break fa}$=k-1|0;H=z[g|0];k=H>>>1&112;d=0;while(1){Ga:{if((d|0)!=(L|0)){if((d|0)==($|0)){break fa}s=d+1|0;H=z[s+g|0]|H<<8;c=7;v=0;while(1){if((c|0)<0){break Ga}if(z[u|0]){break ya}if(k>>>0>=G>>>0){break fa}M=ka(u,(k<<3)+I|0);k=M|(H>>>c+1&16|k<<1&1006);v=M<<c|v;c=c-1|0;continue}}d=H<<8;c=0;v=0;while(1){if((c|0)!=(T|0)){if(z[u|0]){break ya}if(k>>>0>=G>>>0){break fa}g=ka(u,(k<<3)+I|0);k=g|(d>>>8-c&16|k<<1&1006);v=g<<7-c|v;c=c+1|0;continue}break}break Da}if((d|0)==(h|0)){break fa}w[d+q|0]=v;d=s;continue}}if(h>>>0<=L>>>0){break fa}w[q+L|0]=v;c=b}n=n+1|0;g=q;k=h;continue}}Aa(da,u,e+180|0);d=y[e+180>>2];if(d>>>0>=2){g=wa(6);y[e+168>>2]=g;h=wa(8);y[e+160>>2]=h;k=wa(11);y[e+228>>2]=k;l=wa(15);y[e+224>>2]=l;n=wa(15);y[e+220>>2]=n;q=wa(15);y[e+216>>2]=q;s=wa(15);y[e+212>>2]=s;r=wa(1);y[e+208>>2]=r;c=Yb();y[e+204>>2]=c;b=z[j|0];y[c+20>>2]=1;y[c+16>>2]=d;y[c+12>>2]=F;y[c+8>>2]=K;w[c+1|0]=1;w[c|0]=b;b=y[j+4>>2]+i|0;y[c+24>>2]=b;d=Ub(e+192|0,b);b=y[j+4>>2];v=y[j+16>>2];if(b>>>0>y[j+20>>2]-v>>2>>>0){break fa}M=b;b=y[d>>2];vd(v,M,b,y[e+196>>2]-b>>2);v=b+(y[j+4>>2]<<2)|0;D=y[O>>2];b=0;while(1)if((b|0)==(i|0)){bb(c+40|0,d);x[c+4>>1]=0;y[c+52>>2]=0;y[c+56>>2]=1;w[c+3|0]=0;y[c+88>>2]=r;y[c+84>>2]=s;y[c+80>>2]=q;y[c+76>>2]=n;y[c+72>>2]=l;y[c+68>>2]=k;y[c+64>>2]=h;y[c+60>>2]=g;w[c+2|0]=z[j+2|0];w[c+92|0]=z[j+52|0];w[c+93|0]=z[j+53|0];w[c+94|0]=z[j+54|0];w[c+95|0]=z[j+55|0];b=Bd(c,u,C,S,P);y[e+176>>2]=0;oa(e+240|0,b);la(e+176|0);b=y[e+240>>2];ya(d);pc(e+204|0);pa(e+208|0);pa(e+212|0);pa(e+216|0);pa(e+220|0);pa(e+224|0);pa(e+228|0);pa(e+160|0);pa(e+168|0);if(!b){break ta}break va}else{H=b<<2;y[H+v>>2]=y[D+H>>2];b=b+1|0;continue}}b=0;if((d|0)!=1){break va}c=y[j+4>>2];Ac(y[P+36>>2],u,e+192|0);b=y[e+192>>2];if(b>>>0>=c+i>>>0){break ta}c=y[j+4>>2];if(c>>>0>b>>>0){b=y[Q>>2]+(b<<2)|0}else{b=b-c|0;c=y[O>>2];if(b>>>0>=y[O+4>>2]-c>>2>>>0){break fa}b=c+(b<<2)|0}c=y[b>>2];if(!c){break ta}Aa(y[P+28>>2],u,e+168|0);Aa(y[P+32>>2],u,e+160|0);b=db();y[e+228>>2]=b;y[b+8>>2]=F;y[b+4>>2]=K;d=z[j+2|0];y[b+20>>2]=c;w[b|0]=d;y[b+12>>2]=y[e+168>>2];c=y[e+160>>2];w[b+1|0]=0;y[b+16>>2]=c;w[b+24|0]=z[j+52|0];w[b+25|0]=z[j+53|0];w[b+26|0]=z[j+54|0];w[b+27|0]=z[j+55|0];b=cb(b,u,C,S);y[e+224>>2]=0;oa(e+240|0,b);la(e+224|0);b=y[e+240>>2];Ua(e+228|0);if(!b){break ta}break va}D=xa(K,F);y[e+160>>2]=D;Ha:{Ia:{if(!qa(D)){break Ia}n=0;Qa(D,0);h=0;c=0;b=0;while(1){Ja:{Ka:{if(B[r+8>>2]>b>>>0){ja(e+192|0,D,b);g=y[e+196>>2];q=y[e+192>>2];if(z[r+1|0]!=1){d=c;break Ka}if(z[u|0]){break Ia}if(!X){break fa}d=0;k=ka(u,_);if((k|0)==(c|0)){break Ka}y[e+184>>2]=g;y[e+180>>2]=q;y[e+172>>2]=h;y[e+168>>2]=n;d=y[e+184>>2];y[e+24>>2]=y[e+180>>2];y[e+28>>2]=d;d=y[e+172>>2];y[e+16>>2]=y[e+168>>2];y[e+20>>2]=d;c=c^k;D=y[e+160>>2];Pa(e+24|0,e+16|0);break Ja}y[e+160>>2]=0;break Ha}H=0;L=0;if(z[r+2|0]==1){ja(e+192|0,y[r+12>>2],b);L=y[e+192>>2];H=y[e+196>>2]}D=y[e+160>>2];ja(e+192|0,D,w[r+17|0]+b|0);T=y[e+196>>2];$=y[e+192>>2];s=z[n|0]>>>6|0;k=y[D+8>>2];c=!h|(k|0)<2?0:s&1;v=!h|(k|0)<=0?c:s&2|c;s=0;c=0;while(1){if(B[r+4>>2]<=c>>>0){c=d;break Ja}La:{Ma:{if(z[r+2|0]==1){if(ia(y[y[r+12>>2]+8>>2],c,L,H)){break Ma}}k=ia(k,w[r+16|0]+c|0,$,T);if(z[u|0]){break Ia}k=v<<5|k<<4|s;if(k>>>0>=G>>>0){break fa}M=ka(u,(k<<3)+I|0);k=y[D+8>>2];if(!M){break Ma}La(k,c,q,g,1);k=y[D+8>>2];M=1;break La}M=0}v=ia(k,c+2|0,n,h)|v<<1&30;c=c+1|0;s=s<<1&14|M;continue}}b=b+1|0;n=q;h=g;continue}}D=0}la(e+160|0);break wa}D=0}la(e+160|0)}y[e+192>>2]=0;oa(e+240|0,D);la(e+192|0);b=y[e+240>>2];ua(e+228|0);if(!b){break ua}}c=y[O>>2];y[e+240>>2]=0;oa((i<<2)+c|0,b)}i=i+1|0;continue}break}b=l^1;break sa}y[e+200>>2]=0;y[e+192>>2]=0;y[e+196>>2]=0;ud(e+192|0,b+y[j+4>>2]|0);g=y[e+192>>2];i=0;b=0;k=0;Na:{while(1){if(y[j+8>>2]+y[j+4>>2]>>>0>b>>>0){Aa(ea,u,e+160|0);d=y[e+160>>2];c=d+b|0;if(!(c>>>0<=y[j+8>>2]+y[j+4>>2]>>>0&c>>>0>=d>>>0)){break Na}Pb(e+180|0,g,0,b);sd(e+168|0,y[e+180>>2],y[e+184>>2],d,i);k=(i&1?d:0)+k|0;i=(i^-1)&1;b=c;continue}break}if(B[j+12>>2]<k>>>0){break Na}N=lc();d=y[O>>2];b=0;l=0;while(1){c=y[j+4>>2];if(c+y[j+8>>2]>>>0<=b>>>0){break Na}if(!(!(y[g+(b>>>3&536870908)>>2]>>>b&1)|B[j+12>>2]<=l>>>0)){Oa:{if(b>>>0<c>>>0){c=y[y[Q>>2]+(b<<2)>>2];if(!c){i=0;break Oa}i=kc(c);break Oa}c=d+(b-c<<2)|0;i=y[c>>2];y[c>>2]=0}rd(N,i);l=l+1|0}b=b+1|0;continue}}Ob(e+192|0);break ra}b=0}la(e+240|0);if(b){continue}}break}$a(O);qc(P);Ea(e+244|0);Ea(e+248|0);Ea(e+252|0);Ea(e+268|0);y[e+120>>2]=0;Rb(m+56|0,N);Za(e+120|0);if(y[m+56>>2]){ta(y[a+4>>2]);b=y[a+4>>2];c=y[b+8>>2];if(c>>>0<=4294967293){g=b;c=c+2|0;b=y[b+4>>2];y[g+8>>2]=b>>>0>c>>>0?c:b}ua(e+60|0);break ba}ua(e+60|0);break $}g=y[e+80>>2];b=y[e+84>>2];n=y[a+4>>2];q=qd(n);y[e+268>>2]=q;C=gb(e+120|0,y[j+8>>2]);y[e+264>>2]=0;y[e+256>>2]=0;y[e+260>>2]=0;if(!z[j+1|0]){xc(e+256|0,y[j+8>>2])}u=b-g>>3;y[e+252>>2]=0;s=0;d=0;Pa:while(1){if(B[j+8>>2]<=d>>>0){break da}if(za(q,y[j+28>>2],e+160|0)){break ea}s=y[e+160>>2]+s|0;if(s>>>0>65535){break ea}F=0;c=0;i=d;while(1){b=za(q,y[j+32>>2],e+248|0);y[e+244>>2]=b;Qa:{Ra:{Sa:{Ta:{Ua:{switch(b|0){case 0:if(B[j+8>>2]<=i>>>0){break ea}c=y[e+248>>2]+c|0;if(c>>>0>65535){break ea}if(!c|!s){break Qa}if(z[j+1|0]!=1){break Ra}if(za(q,y[j+40>>2],e+240|0)){break ea}oa(e+252|0,0);h=y[e+240>>2];if(h>>>0<2){break Ta}v=wa(6);y[e+236>>2]=v;D=wa(8);y[e+232>>2]=D;H=wa(11);y[e+228>>2]=H;I=wa(15);y[e+224>>2]=I;G=wa(15);y[e+220>>2]=G;K=wa(15);y[e+216>>2]=K;O=wa(15);y[e+212>>2]=O;b=1;P=wa(1);y[e+208>>2]=P;l=Yb();y[e+204>>2]=l;k=z[j|0];y[l+20>>2]=1;y[l+16>>2]=h;y[l+12>>2]=s;y[l+8>>2]=c;w[l+1|0]=1;w[l|0]=k;h=y[j+4>>2]+i|0;y[l+24>>2]=h;r=Ed(e+192|0,h);k=y[j+8>>2]+y[j+4>>2]|0;while(1){h=b;b=b+1|0;if(k>>>0>1<<h>>>0){continue}break};h=h&255;k=y[r>>2];L=y[l+24>>2];b=0;while(1)if((b|0)==(L|0)){bb(l+28|0,r);h=Ub(e+180|0,y[l+24>>2]);b=y[j+4>>2];k=y[j+16>>2];if(b>>>0>y[j+20>>2]-k>>2>>>0){break fa}M=b;b=y[h>>2];vd(k,M,b,y[e+184>>2]-b>>2);L=b+(y[j+4>>2]<<2)|0;k=y[C>>2];b=0;while(1)if((b|0)==(i|0)){bb(l+40|0,h);x[l+4>>1]=0;y[l+52>>2]=0;y[l+56>>2]=1;w[l+3|0]=0;y[l+88>>2]=P;y[l+84>>2]=O;y[l+80>>2]=K;y[l+76>>2]=G;y[l+72>>2]=I;y[l+68>>2]=H;y[l+64>>2]=D;y[l+60>>2]=v;w[l+2|0]=z[j+2|0];w[l+92|0]=z[j+52|0];w[l+93|0]=z[j+53|0];w[l+94|0]=z[j+54|0];w[l+95|0]=z[j+55|0];b=Dd(l,n,g,u);y[e+176>>2]=0;oa(e+252|0,b);la(e+176|0);b=y[e+252>>2];ya(h);ya(r);pc(e+204|0);pa(e+208|0);pa(e+212|0);pa(e+216|0);pa(e+220|0);pa(e+224|0);pa(e+228|0);pa(e+232|0);pa(e+236|0);if(b){break Sa}break ea}else{N=b<<2;y[N+L>>2]=y[k+N>>2];b=b+1|0;continue}}else{N=k+(b<<3)|0;y[N+4>>2]=b;y[N>>2]=h;b=b+1|0;continue};case 1:break Ua;default:break ea}}Va:{if(!z[j+1|0]){if(za(q,y[j+36>>2],e+192|0)){break ea}ta(n);y[e+180>>2]=0;Wa:{if(!y[e+192>>2]){if((F|0)>65535){break Va}b=F+7>>>3|0;c=se(b,0,s);if(Z){break Va}h=y[n+4>>2];k=y[n+8>>2];if(h>>>0<k>>>0){break fa}if(c>>>0>h-k>>>0){break Va}c=0;h=xa(F,s);y[e+248>>2]=0;oa(e+180|0,h);la(e+248|0);v=y[e+180>>2];while(1){if((c|0)==(s|0)){break Wa}ja(e+168|0,v,c);l=y[n+8>>2];h=y[n+4>>2];if(l>>>0>h>>>0|b>>>0>h-l>>>0|b>>>0>B[e+172>>2]){break fa}if(b){if(b){p(y[e+168>>2],y[n>>2]+l|0,b)}l=y[n+8>>2]}h=b+l|0;if(h>>>0>=l>>>0){k=y[n+4>>2];y[n+8>>2]=h>>>0<k>>>0?h:k}c=c+1|0;continue}}b=qb();y[e+248>>2]=b;y[b+8>>2]=s;y[b+4>>2]=F;w[b|0]=1;hb(b,e+180|0,n);ta(n);ua(e+248|0);v=y[e+180>>2]}Xa:{if(!v){break Xa}c=d>>>0>i>>>0?d:i;h=y[C>>2];b=0;k=y[e+256>>2];while(1){if((c|0)==(d|0)){break Xa}l=d<<2;r=l+k|0;F=sb(v,b,0,y[r>>2],s);y[e+248>>2]=0;oa(h+l|0,F);d=d+1|0;la(e+248|0);b=y[r>>2]+b|0;continue}}la(e+180|0)}d=i;continue Pa}la(e+180|0);break ea}if((h|0)!=1){k=y[C>>2];b=y[e+252>>2];break Sa}r=y[j+8>>2]+y[j+4>>2]|0;b=1;l=1;while(1){k=b;b=b+1|0;h=l;l=h+1|0;if(r>>>0>1<<h>>>0){continue}break}y[e+192>>2]=h;h=k&255;l=0;b=0;while(1){if((b|0)!=(h|0)){if(wb(n,e+192|0)){break ea}b=b+1|0;l=y[e+192>>2]|l<<1;continue}break}b=y[j+4>>2];if(b+i>>>0<=l>>>0){break ea}k=y[C>>2];if(b>>>0>l>>>0){b=y[Q>>2]+(l<<2)|0}else{b=l-b|0;if(b>>>0>=y[C+4>>2]-k>>2>>>0){break fa}b=(b<<2)+k|0}h=y[b>>2];if(!h){break ea}b=wa(15);y[e+180>>2]=b;l=wa(1);y[e+236>>2]=l;Ya:{if(za(q,b,e+232|0)){break Ya}if(za(q,b,e+228|0)){break Ya}if(za(q,l,e+244|0)){break Ya}ta(n);r=y[n+8>>2];y[e+192>>2]=r;b=db();y[e+224>>2]=b;y[b+8>>2]=s;y[b+4>>2]=c;l=z[j+2|0];y[b+20>>2]=h;w[b|0]=l;y[b+12>>2]=y[e+232>>2];h=y[e+228>>2];l=0;w[b+1|0]=0;y[b+16>>2]=h;w[b+24|0]=z[j+52|0];w[b+25|0]=z[j+53|0];w[b+26|0]=z[j+54|0];w[b+27|0]=z[j+55|0];h=Ra(n);y[e+220>>2]=h;b=cb(b,h,g,u);y[e+216>>2]=0;oa(e+252|0,b);la(e+216|0);b=y[e+252>>2];if(b){ta(n);l=y[n+8>>2];if(l>>>0<=4294967293){h=l+2|0;l=y[n+4>>2];l=h>>>0<l>>>0?h:l;y[n+8>>2]=l}l=y[e+244>>2]==(l-r|0)}ua(e+220|0);Ua(e+224|0);pa(e+236|0);pa(e+180|0);if(l){break Sa}break ea}pa(e+236|0);pa(e+180|0);break ea}y[e+252>>2]=0;oa((i<<2)+k|0,b);if(z[j+1|0]){break Qa}}y[y[e+256>>2]+(i<<2)>>2]=c}F=c+F|0;i=i+1|0;continue}}}o()}b=0;break ca}i=wa(1);y[e+248>>2]=i;y[e+200>>2]=0;y[e+192>>2]=0;y[e+196>>2]=0;ud(e+192|0,y[j+8>>2]+y[j+4>>2]|0);g=y[e+192>>2];l=0;b=0;k=0;Za:{while(1){if(y[j+8>>2]+y[j+4>>2]>>>0>b>>>0){_a:{$a:{if(za(q,i,e+244|0)){break $a}d=y[e+244>>2];c=d+b|0;if(c>>>0<d>>>0){break $a}if(c>>>0<=y[j+8>>2]+y[j+4>>2]>>>0){break _a}}b=0;break Za}Pb(e+180|0,g,0,b);sd(e+160|0,y[e+180>>2],y[e+184>>2],d,l);k=(l&1?d:0)+k|0;l=(l^-1)&1;b=c;continue}break}b=0;if(B[j+12>>2]<k>>>0){break Za}b=lc();d=y[C>>2];l=0;i=0;while(1){c=y[j+4>>2];if(c+y[j+8>>2]>>>0<=l>>>0){break Za}if(!(!(y[g+(l>>>3&536870908)>>2]>>>l&1)|B[j+12>>2]<=i>>>0)){ab:{if(c>>>0>l>>>0){c=y[y[Q>>2]+(l<<2)>>2];if(!c){c=0;break ab}c=kc(c);break ab}h=d+(l-c<<2)|0;c=y[h>>2];y[h>>2]=0}rd(b,c);i=i+1|0}l=l+1|0;continue}}Ob(e+192|0);pa(e+248|0)}la(e+252|0);Ja(e+256|0);$a(C);Ua(e+268|0);y[e+120>>2]=0;Rb(m+56|0,b);Za(e+120|0);if(!y[m+56>>2]){break $}ta(y[a+4>>2])}if(z[a+48|0]!=1){break aa}fa=e,ga=Ad(y[m+56>>2]),y[fa+120>>2]=ga;b=y[a+108>>2];l=y[b+8>>2];while(1){if(l>>>0>=2){c=y[b>>2];d=y[c>>2];g=y[c+4>>2];y[d+4>>2]=g;y[g>>2]=d;y[b+8>>2]=y[b+8>>2]-1;oc(c);l=l-1|0;b=y[a+108>>2];continue}break}c=b;b=e+120|0;zd(c,e- -64|0,b);Za(b)}l=0;if(!(z[e+119|0]&2)){break _}if(!(V&1)){b=y[m+56>>2];y[e+48>>2]=y[e+92>>2];c=y[e+96>>2];d=y[e+100>>2];y[e+96>>2]=0;y[e+100>>2]=0;y[e+52>>2]=c;y[e+56>>2]=d;y[e+92>>2]=0;c=b;b=e+48|0;pd(c,b);Ja(b)}if(!(W&1)){break _}b=y[m+56>>2];y[e+36>>2]=y[e+80>>2];c=y[e+84>>2];d=y[e+88>>2];y[e+84>>2]=0;y[e+88>>2]=0;y[e+40>>2]=c;y[e+44>>2]=d;y[e+80>>2]=0;c=b+12|0;b=e+36|0;pd(c,b);Ja(b);break _}l=1}Ja(e+80|0);Ja(e+92|0)}ya(U);break W}else{d=Ma(a,y[y[m+12>>2]+(b<<2)>>2]);if(!(z[d+4|0]&63)){g=0;if(c&1){c=y[d+56>>2];c=y[c+28>>2]-y[c+24>>2]>>2;g=c+k|0;n=g;g=c>>>0<=g>>>0;k=g?n:0}else{k=0}s=d;c=g}b=b+1|0;continue}}c=b<<2;b=b+1|0;if(Ma(a,y[c+y[m+12>>2]>>2])){continue}break}}ya(Q);ma(j)}Y=e+272|0;b=l;break u;case 1:case 2:case 3:case 5:break B;case 4:case 6:case 7:break V;default:break K}}b=1;if(z[a+49|0]!=1){break u}if(tb(a,f+332|0)){break u}d=f+14|0;if(Wa(y[a+4>>2],d)){break u}c=y[f+332>>2];if(c-1>>>0>65534){break u}q=y[f+336>>2];if(q-1>>>0>65534){break u}h=Yb();y[f+308>>2]=h;y[h+12>>2]=q;y[h+8>>2]=c;c=A[f+14>>1];g=c&1;w[h|0]=g;w[h+2|0]=c>>>15;y[h+56>>2]=c>>>4&3;y[h+52>>2]=c>>>7&3;w[h+3|0]=c>>>6&1;w[h+4|0]=c>>>9&1;y[h+20>>2]=1<<(c>>>2&3);i=(c&254)>>>1&1;w[h+1|0]=i;k=c>>>10&31;w[h+5|0]=(k>>>0>15?-32:0)|k;bb:{if(g){if(Wa(y[a+4>>2],d)){break v}if(z[h+1|0]!=1){break w}if(!z[h+2|0]){break bb}break w}if(!i|c<<16>>16<0){break w}}c=h+92|0;d=0;while(1){if((d|0)==4){break w}g=c+d|0;d=d+1|0;if(!va(y[a+4>>2],g)){continue}break}break v}g=na(12);y[g+8>>2]=0;y[g>>2]=0;y[g+4>>2]=0;if(va(y[a+4>>2],f+352|0)){break y}b=1;if(va(y[a+4>>2],g+1|0)){break x}if(va(y[a+4>>2],g+2|0)){break x}if(ra(y[a+4>>2],g+4|0)){break x}i=y[g+4>>2];if(i>>>0>65535){break x}b=z[f+352|0];d=b&1;w[g|0]=d;b=b>>>1&3;w[g+8|0]=b;y[m+52>>2]=3;if(d){d=y[a+4>>2];b=wc(g);y[f+24>>2]=b;if(b){y[f+332>>2]=0;hb(b,f+332|0,d);cb:{d=y[f+332>>2];if(!d){break cb}c=vc(i+1|0);b=0;while(1){if(b>>>0>i>>>0){break cb}h=z[g+1|0];h=sb(d,E(h,b),0,h,z[g+2|0]);k=y[c+4>>2];y[f+312>>2]=0;oa((b<<2)+k|0,h);b=b+1|0;la(f+312|0);continue}}la(f+332|0)}ua(f+24|0);y[f+332>>2]=0;Xb(m+60|0,c);Zb(f+332|0);if(!y[m+60>>2]){break y}ta(y[a+4>>2]);b=0;break x}k=b?(b|0)==1?8192:1024:65536;l=ab(k,8);y[f+336>>2]=k;y[f+332>>2]=l;n=Ra(y[a+4>>2]);y[f+16>>2]=n;d=wc(g);y[f+312>>2]=d;if(!d){break z}w[d+1|0]=0;w[d+2|0]=0;w[d+3|0]=b;h=z[g+1|0];w[d+17|0]=0;w[d+16|0]=0-h;if(!b){w[d+22|0]=254;w[d+23|0]=254;w[d+18|0]=253;w[d+19|0]=255;w[d+20|0]=2;w[d+21|0]=254}y[f+356>>2]=0;y[f+40>>2]=0;y[f+32>>2]=l;y[f+36>>2]=k;y[f+28>>2]=n;y[f+24>>2]=f+356;b=Wb(d,f+24|0);y[f+40>>2]=0;while(1){if((b|0)==3){b=Vb(d,f+24|0);continue}break}y[d+44>>2]=0;y[d+48>>2]=0;y[d+36>>2]=0;y[d+40>>2]=0;y[d+28>>2]=0;y[d+32>>2]=0;if(!y[f+356>>2]){break A}c=vc(i+1|0);b=0;while(1){if(b>>>0>i>>>0){break A}d=sb(y[f+356>>2],E(b,h),0,h,z[g+2|0]);k=y[c+4>>2];y[f>>2]=0;oa((b<<2)+k|0,d);b=b+1|0;la(f);continue}}b=1;if(z[a+49|0]!=1){break u}q=na(56);y[q+16>>2]=0;db:{if(tb(a,f+312|0)){break db}if(va(y[a+4>>2],f+14|0)){break db}if(ra(y[a+4>>2],q+32|0)){break db}if(ra(y[a+4>>2],q+36|0)){break db}if(ra(y[a+4>>2],q+40|0)){break db}if(ra(y[a+4>>2],q+44|0)){break db}if(Wa(y[a+4>>2],q+48|0)){break db}if(Wa(y[a+4>>2],q+50|0)){break db}C=y[q+32>>2];if(C-1>>>0>65534){break db}e=y[q+36>>2];if(e-1>>>0>65534){break db}v=y[f+312>>2];if(v-1>>>0>65534){break db}k=y[f+316>>2];if(k-1>>>0>65534){break db}y[q+4>>2]=k;y[q>>2]=v;d=z[f+14|0];F=d&1;w[q+8|0]=F;w[q+20|0]=d>>>7;i=d>>>3|0;K=i&1;w[q+28|0]=K;s=d>>>1&3;w[q+9|0]=s;g=d>>>4|0;y[q+24>>2]=(g&7)==4?4:g&3;if(y[m+8>>2]!=1){break db}g=Ma(a,y[y[m+12>>2]>>2]);if(!g|(z[g+4|0]&63)!=16){break db}g=y[g+60>>2];if(!g){break db}j=y[g>>2];if(!j){break db}y[q+12>>2]=j;y[q+16>>2]=g+4;b=y[y[g+4>>2]>>2];g=y[b+8>>2];w[q+52|0]=g;r=y[b+12>>2];w[q+53|0]=r;y[m+52>>2]=1;eb:{fb:{gb:{if(d&1){d=y[a+4>>2];b=1;while(1){c=b;b=b+1|0;if(j>>>0>1<<c>>>0){continue}break}x[f+80>>1]=0;y[f+36>>2]=0;y[f+48>>2]=0;y[f+52>>2]=0;y[f+56>>2]=0;y[f+60>>2]=0;y[f+64>>2]=0;y[f+68>>2]=0;y[f+72>>2]=0;y[f+84>>2]=0;y[f+88>>2]=0;y[f+92>>2]=0;y[f+96>>2]=0;y[f+100>>2]=0;y[f+32>>2]=e;y[f+28>>2]=C;w[f+24|0]=F;b=c&255;g=gb(f+332|0,b);i=y[g>>2];c=(i+(b<<2)|0)-4|0;hb(f+24|0,c,d);h=0;hb:{if(!y[c>>2]){break hb}ta(d);c=y[d+8>>2];if(c>>>0<=4294967292){c=c+3|0;h=y[d+4>>2];y[d+8>>2]=c>>>0<h>>>0?c:h}b=b-2|0;while(1){if((b|0)>=0){c=i+(b<<2)|0;hb(f+24|0,c,d);h=0;if(!y[c>>2]){break hb}ta(d);h=y[d+8>>2];if(h>>>0<=4294967292){h=h+3|0;l=y[d+4>>2];y[d+8>>2]=h>>>0<l>>>0?h:l}fb(y[c>>2],0,0,0,0,y[c+4>>2],2);b=b-1|0;continue}break}h=uc(q,g)}b=h;$a(g);y[f+356>>2]=0;oa(m- -64|0,b);la(f+356|0);if(!y[m+64>>2]){break eb}ta(y[a+4>>2]);break gb}b=s?(s|0)==1?8192:1024:65536;d=ab(b,8);y[f+4>>2]=b;y[f>>2]=d;Q=Ra(y[a+4>>2]);y[f+308>>2]=Q;n=0;y[f+16>>2]=0;l=b;ib:{if(!(i&1)){break ib}b=xa(C,e);y[f+24>>2]=0;oa(f+16|0,b);b=r&255;O=1-b|0;D=0-(b>>>0>1)|0;b=g&255;P=1-b|0;H=0-(b>>>0>1)|0;la(f+24|0);n=y[f+16>>2];jb:while(1){if(!c&(e|0)==(h|0)){break ib}ja(f+24|0,n,h);b=y[q+44>>2];L=A[q+48>>1];g=se(h,c,L);r=b+g|0;b=Z+(b>>31)|0;V=g>>>0>r>>>0?b+1|0:b;b=y[q+40>>2];N=A[q+50>>1];g=se(h,c,N);I=b+g|0;b=Z+(b>>31)|0;U=g>>>0>I>>>0?b+1|0:b;g=0;i=0;W=y[f+28>>2];_=y[f+24>>2];while(1)if(!i&(g|0)==(C|0)){h=h+1|0;c=h?c:c+1|0;continue jb}else{S=y[n+8>>2];b=se(g,i,N);u=r-b|0;G=V-(Z+(b>>>0>r>>>0)|0)|0;b=G>>8;X=(G&255)<<24|u>>>8;T=se(g,i,L);u=T+I|0;G=Z+U|0;M=S;G=u>>>0<T>>>0?G+1|0:G;S=(G&255)<<24|u>>>8;u=G>>8;La(M,g,_,W,k>>>0<=X>>>0&(b|0)>=0|(b|0)>0|(P>>>0>S>>>0&(H|0)>=(u|0)|(u|0)<(H|0)|((b|0)<=(D|0)&O>>>0>X>>>0|(b|0)<(D|0))|(v>>>0<=S>>>0&(u|0)>=0|(u|0)>0)));g=g+1|0;i=g?i:i+1|0;continue}}}g=d;b=1;while(1){c=b;b=b+1|0;if(j>>>0>1<<c>>>0){continue}break}y[f+48>>2]=0;y[f+52>>2]=0;x[f+80>>1]=0;y[f+56>>2]=0;y[f+60>>2]=0;y[f+64>>2]=0;y[f+68>>2]=0;y[f+72>>2]=0;y[f+84>>2]=0;y[f+88>>2]=0;y[f+92>>2]=0;y[f+96>>2]=0;y[f+100>>2]=0;y[f+32>>2]=e;y[f+28>>2]=C;w[f+24|0]=F;y[f+36>>2]=n;w[f+26|0]=K;w[f+25|0]=0;w[f+27|0]=s;kb:{if(s>>>0>=2){x[f+40>>1]=65282;break kb}x[f+40>>1]=65283;if(s){break kb}x[f+46>>1]=65278;x[f+42>>1]=65533;x[f+44>>1]=65026}b=c&255;c=gb(f+356|0,b);h=y[c>>2];n=b-1|0;d=n;lb:{mb:{while(1){if((d|0)<0){break mb}y[f+352>>2]=0;y[f+348>>2]=0;y[f+340>>2]=g;y[f+344>>2]=l;y[f+336>>2]=Q;y[f+332>>2]=f+352;b=Wb(f+24|0,f+332|0);y[f+348>>2]=0;while(1){if((b|0)==3){b=Vb(f+24|0,f+332|0);continue}break}y[f+68>>2]=0;y[f+72>>2]=0;y[f+60>>2]=0;y[f+64>>2]=0;y[f+52>>2]=0;y[f+56>>2]=0;b=y[f+352>>2];nb:{if(!b){break nb}y[f+352>>2]=0;i=h+(d<<2)|0;oa(i,b);if((d|0)>=(n|0)){break nb}fb(y[i>>2],0,0,0,0,y[i+4>>2],2)}d=d-1|0;la(f+352|0);if(b){continue}break}b=0;break lb}b=uc(q,c)}$a(c);la(f+16|0);y[f+24>>2]=0;oa(m- -64|0,b);la(f+24|0);if(!y[m+64>>2]){break fb}ta(y[a+4>>2]);b=y[a+4>>2];c=y[b+8>>2];if(c>>>0<=4294967293){g=b;c=c+2|0;b=y[b+4>>2];y[g+8>>2]=b>>>0>c>>>0?c:b}ua(f+308|0);Ha(f)}if((z[m+4|0]&63)==20){b=0;break db}ob:{if(z[a+50|0]){break ob}b=y[y[a+24>>2]-4>>2];if(z[b+17|0]!=1){break ob}c=k+y[f+324>>2]|0;d=y[a+32>>2];if((c|0)<=y[d+12>>2]){break ob}eb(d,c,z[b+16|0])}b=y[f+320>>2];g=b;h=b>>31;b=y[f+324>>2];c=b;d=b>>31;b=z[f+328|0];fb(y[a+32>>2],g,h,c,d,y[m+64>>2],(b&7)==4?4:b&3);b=0;oa(m- -64|0,0);break db}ua(f+308|0);Ha(f)}b=1}ma(q);break u}b=1;if(z[a+49|0]!=1){break u}g=a+76|0;d=y[a+76>>2];if(!d){c=qb();y[f+24>>2]=c;pb:{qb:{if(tb(a,a+88|0)){break qb}if(va(y[a+4>>2],f+332|0)){break qb}d=y[a+92>>2];if((d|0)<0){break qb}i=y[a+88>>2];if((i|0)<0){break qb}y[c+8>>2]=d;y[c+4>>2]=i;d=z[f+332|0];i=d&1;w[c|0]=i;h=d>>>1&3;w[c+3|0]=h;w[c+1|0]=d>>>3&1;if(i){break pb}i=c+16|0;d=0;if(!h){while(1){if((d|0)==8){break pb}h=d+i|0;d=d+1|0;if(!va(y[a+4>>2],h)){continue}break qb}}while(1){if((d|0)==2){break pb}h=d+i|0;d=d+1|0;if(!va(y[a+4>>2],h)){continue}break}}ua(f+24|0);break u}w[c+2|0]=0;y[f+24>>2]=0;Va(g,c);ua(f+24|0);d=y[g>>2]}y[m+52>>2]=1;rb:{if(z[d|0]==1){hb(d,m- -64|0,y[a+4>>2]);if(!y[m+64>>2]){Va(g,0);break D}ta(y[a+4>>2]);break rb}if(y[a+60>>2]==y[a+64>>2]){b=z[d+3|0];kb(a+60|0,b?(b|0)==1?8192:1024:65536)}c=a+72|0;h=f;b=y[a+72>>2];if(b){d=b}else{d=Ra(y[a+4>>2]);y[f+24>>2]=0;Va(c,d);ua(f+24|0);d=y[a+72>>2]}y[h+28>>2]=d;d=m- -64|0;y[f+24>>2]=d;h=y[a+64>>2];i=y[a+60>>2];y[f+40>>2]=0;y[f+32>>2]=i;y[f+36>>2]=h-i>>3;i=y[a+76>>2];sb:{if(!b){b=Wb(i,f+24|0);break sb}b=Vb(i,f+24|0)}y[a+56>>2]=b;if((b|0)==3){if((z[m+4|0]&63)==36){break B}tb:{if(z[a+50|0]){break tb}b=y[y[a+24>>2]-4>>2];if(z[b+17|0]!=1){break tb}c=y[a+92>>2]+y[a+100>>2]|0;g=y[a+32>>2];if((c|0)<=y[g+12>>2]){break tb}eb(g,c,z[b+16|0])}b=y[a+76>>2];c=y[b+64>>2]+y[a+96>>2]|0;g=c;i=c>>31;c=y[b+68>>2]+y[a+100>>2]|0;h=b- -64|0;b=z[a+104|0];tc(y[a+32>>2],g,i,c,c>>31,y[d>>2],h,(b&7)==4?4:b&3);break B}b=y[a+76>>2];y[b+44>>2]=0;y[b+48>>2]=0;y[b+36>>2]=0;y[b+40>>2]=0;y[b+28>>2]=0;y[b+32>>2]=0;Va(c,0);y[a+64>>2]=y[a+60>>2];if(!y[d>>2]){y[a+56>>2]=-1;Va(g,0);break D}ta(y[a+4>>2]);b=y[a+4>>2];c=y[b+8>>2];if(c>>>0>4294967293){break rb}d=b;c=c+2|0;b=y[b+4>>2];y[d+8>>2]=b>>>0>c>>>0?c:b}if((z[m+4|0]&63)!=36){ub:{if(z[a+50|0]){break ub}b=y[y[a+24>>2]-4>>2];if(z[b+17|0]!=1){break ub}c=y[a+92>>2]+y[a+100>>2]|0;d=y[a+32>>2];if((c|0)<=y[d+12>>2]){break ub}eb(d,c,z[b+16|0])}b=y[a+76>>2];c=y[b+64>>2]+y[a+96>>2]|0;d=c;i=c>>31;c=y[b+68>>2]+y[a+100>>2]|0;h=b- -64|0;b=z[a+104|0];tc(y[a+32>>2],d,i,c,c>>31,y[m+64>>2],h,(b&7)==4?4:b&3);oa(m- -64|0,0)}b=0;Va(g,0);break u}b=1;if(z[a+49|0]!=1){break u}if(tb(a,f+24|0)){break u}if(va(y[a+4>>2],f+352|0)){break u}i=y[f+24>>2];if(i-1>>>0>65534){break u}g=y[f+28>>2];if(g-1>>>0>65534){break u}d=0;y[f+312>>2]=0;c=db();y[f+356>>2]=c;y[c+8>>2]=g;y[c+4>>2]=i;b=z[f+352|0];h=b&1;w[c|0]=h;w[c+1|0]=b>>>1&1;vb:{wb:{if(h){break wb}h=c+24|0;while(1){if((d|0)==4){break wb}b=1;k=d+h|0;d=d+1|0;if(!va(y[a+4>>2],k)){continue}break}break vb}h=y[m+8>>2];xb:{if((h|0)>0){d=0;b=1;while(1){if((d|0)==(h|0)){break vb}i=Ma(a,y[y[m+12>>2]>>2]);if(!i){break vb}k=(z[i+4|0]&63)-4|0;k=(k<<6|(k&252)>>>2)&255;if(!(1<<k&785?k>>>0<=9:0)){d=d+1|0;continue}break}b=i- -64|0;break xb}d=sb(y[a+32>>2],y[f+32>>2],y[f+36>>2],i,g);y[f+332>>2]=0;b=f+312|0;oa(b,d);la(f+332|0)}b=y[b>>2];y[c+12>>2]=0;y[c+16>>2]=0;y[c+20>>2]=b;d=z[c|0];i=d?1024:8192;b=ab(i,8);y[f+336>>2]=i;y[f+332>>2]=b;i=Ra(y[a+4>>2]);y[f>>2]=i;y[m+52>>2]=1;c=cb(c,i,b,d?1024:8192);y[f+16>>2]=0;b=m- -64|0;oa(b,c);la(f+16|0);c=1;yb:{if(!y[m+64>>2]){break yb}ta(y[a+4>>2]);c=y[a+4>>2];d=y[c+8>>2];if(d>>>0<=4294967293){h=c;d=d+2|0;c=y[c+4>>2];y[h+8>>2]=c>>>0>d>>>0?d:c}c=0;if((z[m+4|0]&63)==40){break yb}zb:{if(z[a+50|0]){break zb}c=y[y[a+24>>2]-4>>2];if(z[c+17|0]!=1){break zb}d=g+y[f+36>>2]|0;g=y[a+32>>2];if((d|0)<=y[g+12>>2]){break zb}eb(g,d,z[c+16|0])}c=y[f+32>>2];d=c;i=c>>31;c=y[f+36>>2];g=c;h=c>>31;c=z[f+40|0];fb(y[a+32>>2],d,i,g,h,y[b>>2],(c&7)==4?4:c&3);oa(b,0);c=0}b=c;ua(f);Ha(f+332|0)}Ua(f+356|0);la(f+312|0);break u}c=na(20);y[c+16>>2]=0;y[c+8>>2]=0;y[c+12>>2]=0;y[c>>2]=0;y[c+4>>2]=0;y[f+24>>2]=c;if(ra(y[a+4>>2],c)){break E}if(ra(y[a+4>>2],c+4|0)){break E}if(ra(y[a+4>>2],c+8|0)){break E}if(ra(y[a+4>>2],c+12|0)){break E}if(va(y[a+4>>2],f+356|0)){break E}if(Wa(y[a+4>>2],f+312|0)){break E}w[c+16|0]=z[f+356|0]>>>2&1;g=A[f+312>>1];b=g&32767;x[c+18>>1]=b;w[c+17|0]=g>>>15;d=y[c+4>>2];if((d|0)!=-1){break J}if(g<<16>>16>=0){w[c+17|0]=1}if(z[a+50|0]){break F}d=b;break G}w[a+49|0]=0;break u}c=y[a+4>>2];d=y[c+8>>2];b=d+y[m+28>>2]|0;if(b>>>0<d>>>0){break B}g=c;c=y[c+4>>2];y[g+8>>2]=b>>>0<c>>>0?b:c;break B}c=y[a+4>>2];d=y[c+8>>2];b=d+y[m+28>>2]|0;if(b>>>0<d>>>0){break B}g=c;c=y[c+4>>2];y[g+8>>2]=b>>>0<c>>>0?b:c;break B}y[m+52>>2]=4;k=m+68|0;vb(k,0);g=y[a+4>>2];d=na(44);w[d+1|0]=0;t(d+4|0,0,40);if((va(g,f+356|0)|0)==-1){break I}b=1;i=z[f+356|0];w[d+1|0]=i&1;Ab:{Bb:{if((ra(g,f+332|0)|0)==-1){break Bb}if((ra(g,f+312|0)|0)==-1){break Bb}c=y[f+332>>2];h=y[f+312>>2];if((c|0)>(h|0)){break Bb}l=(i>>>4&7)+1|0;i=(i>>>1&7)+1|0;pb(d,0);y[f+28>>2]=c;w[f+24|0]=1;b=c;while(1){if((Ia(g,i,y[d+8>>2]+(y[d+4>>2]<<3)|0)|0)==-1){break Ab}if((Ia(g,l,y[d+20>>2]+(y[d+4>>2]<<2)|0)|0)==-1){break Ab}n=y[d+20>>2];q=y[d+4>>2]<<2;if(B[n+q>>2]>63){break Ab}y[q+y[d+32>>2]>>2]=b;b=y[n+(y[d+4>>2]<<2)>>2];if((b|0)>31){break Ab}if(z[Na(f+24|0,1<<b)|0]!=1){break Ab}pb(d,1);b=y[f+28>>2];if((h|0)>(b|0)){continue}break}if((Ia(g,i,y[d+8>>2]+(y[d+4>>2]<<3)|0)|0)==-1){break Ab}y[y[d+20>>2]+(y[d+4>>2]<<2)>>2]=32;if((c|0)==-2147483648){break Ab}y[y[d+32>>2]+(y[d+4>>2]<<2)>>2]=c-1;pb(d,1);if((Ia(g,i,y[d+8>>2]+(y[d+4>>2]<<3)|0)|0)==-1){break Ab}y[y[d+20>>2]+(y[d+4>>2]<<2)>>2]=32;y[y[d+32>>2]+(y[d+4>>2]<<2)>>2]=h;pb(d,1);b=y[d+4>>2];if(z[d+1|0]==1){if((Ia(g,i,y[d+8>>2]+(b<<3)|0)|0)==-1){break Ab}b=y[d+4>>2]+1|0;y[d+4>>2]=b}c=y[d+8>>2];if(y[d+12>>2]-c>>3>>>0<b>>>0){break t}c=ob(c,b);w[d|0]=c;y[f+24>>2]=d;b=1;if(!c){break H}b=0;y[f+24>>2]=0;vb(k,d);ta(y[a+4>>2]);break H}w[d|0]=0;y[f+24>>2]=d;break H}break I}if((d|0)!=62){break B}c=y[a+4>>2];d=y[c+8>>2];b=d+y[m+28>>2]|0;if(b>>>0<d>>>0){break B}g=c;c=y[c+4>>2];y[g+8>>2]=b>>>0<c>>>0?b:c;break B}if(!z[a+50|0]){break G}break F}w[d|0]=0;y[f+24>>2]=d;b=1}pa(f+24|0);break u}b=xa(y[c>>2],d);y[f+332>>2]=0;oa(a+32|0,b);la(f+332|0)}if(qa(y[a+32>>2])){break C}y[a+56>>2]=-1}$b(f+24|0)}b=1;break u}Qa(y[a+32>>2],z[c+16|0]);Cb:{Db:{b=y[a+24>>2];h=y[a+28>>2];Eb:{if(b>>>0<h>>>0){y[f+24>>2]=0;y[b>>2]=c;b=b+4|0;break Eb}d=y[a+20>>2];g=b-d|0;k=g>>2;i=k+1|0;if(i>>>0>=1073741824){break Db}b=0;h=h-d|0;l=h>>1;i=h>>>0>=2147483644?1073741823:i>>>0<l>>>0?l:i;if(i){if(i>>>0>=1073741824){break Cb}b=na(i<<2)}y[f+24>>2]=0;h=b+g|0;y[h>>2]=c;c=h-(k<<2)|0;if(g){p(c,d,g)}y[a+28>>2]=(i<<2)+b;b=h+4|0;y[a+24>>2]=b;y[a+20>>2]=c;if(!d){break Eb}ma(d)}w[a+49|0]=1;y[a+24>>2]=b;$b(f+24|0);break B}Ba();o()}jb();o()}b=0;break u}la(f+356|0)}ua(f+312|0);y[f+24>>2]=0;Xb(m+60|0,c);Zb(f+24|0);if(y[m+60>>2]){ta(y[a+4>>2]);b=y[a+4>>2];c=y[b+8>>2];if(c>>>0<=4294967293){d=b;c=c+2|0;b=y[b+4>>2];y[d+8>>2]=b>>>0>c>>>0?c:b}ua(f+16|0);Ha(f+332|0);b=0;break x}ua(f+16|0);Ha(f+332|0)}b=1}ma(g);break u}if(ra(y[a+4>>2],h+16|0)){break v}c=y[a+4>>2];g=y[c>>2];c=y[c+4>>2];if((c|0)<0){break t}d=c>>>27&15;c=((c&134217727)<<5|g>>>27)&-32;if(!d&c>>>0>=2147483648|d){break t}if(!d&B[h+16>>2]>c>>>0){break v}n=0;b=y[m+8>>2];c=(b|0)>0?b:0;d=0;while(1){if((c|0)==(d|0)){i=1;b=0;while(1)if((b|0)==(c|0)){if(!(i&1)){break t}y[h+24>>2]=n;l=Ub(f+356|0,n);k=y[l>>2];Fb:{if((k|0)==y[l+4>>2]){break Fb}b=y[m+8>>2];s=(b|0)>0?b:0;i=1;n=0;c=0;while(1){if((c|0)==(s|0)){break Fb}Gb:{b=Ma(a,y[y[m+12>>2]+(c<<2)>>2]);if(z[b+4|0]&63){break Gb}b=y[b+56>>2];g=y[b+24>>2];d=y[b+28>>2]-g>>2;b=0;while(1){if((b|0)==(d|0)){g=0;if(i&1){b=d+n|0;d=b>>>0>=d>>>0;g=d;n=d?b:0}else{n=0}i=g;break Gb}C=b+n|0;if(!(C>>>0>=b>>>0&i)){break t}y[k+(C<<2)>>2]=y[g+(b<<2)>>2];b=b+1|0;continue}}c=c+1|0;continue}}bb(h+40|0,l);Hb:{Ib:{Jb:{Kb:{if(!z[h|0]){c=y[h+24>>2];b=0;while(1){d=b;b=b+1|0;if(c>>>0>1<<d>>>0){continue}break}break Kb}n=y[h+24>>2];b=0;while(1){if((b|0)!=35){c=b<<3;b=b+1|0;if(!Ia(y[a+4>>2],4,c+(f+24|0)|0)){continue}break Jb}break}if(!ob(f+24|0,35)){break Jb}i=Ed(f+312|0,n);k=y[i>>2];c=0;Lb:while(1){Mb:{Nb:{Ob:{if((c|0)<(n|0)){d=0;y[f+20>>2]=0;w[f+16|0]=1;Pb:while(1){if(wb(y[a+4>>2],f+352|0)){break Nb}g=Tb(f+16|0);if(z[g|0]!=1){break Nb}b=0;C=y[f+20>>2]|y[f+352>>2];s=(C|0)>=0;y[g>>2]=s;j=g;g=s?C:0;y[j+4>>2]=g;if(!s){break t}d=d+1|0;while(1){if((b|0)==35){continue Pb}s=(f+24|0)+(b<<3)|0;if(!(y[s>>2]==(d|0)&(g|0)==y[s+4>>2])){b=b+1|0;continue}break}break}if(b>>>0<=31){y[k+(c<<3)>>2]=b;break Mb}g=y[a+4>>2];Qb:{switch(b-33|0){default:if(Ia(g,2,f+352|0)){break Nb}d=3;break Ob;case 1:if(Ia(g,7,f+352|0)){break Nb}d=11;break Ob;case 0:break Qb}}d=3;if(!Ia(g,3,f+352|0)){break Ob}break Nb}b=y[i+4>>2];if(!ob(k,b-k>>3)){break Nb}y[f+4>>2]=b;y[f>>2]=k;y[f+8>>2]=y[i+8>>2];d=0;y[i+8>>2]=0;y[i>>2]=0;y[i+4>>2]=0;ya(i);if((b|0)==(k|0)){break Ib}ta(y[a+4>>2]);bb(h+28|0,f);ya(f);b=1;if(z[h|0]!=1){break Kb}c=A[f+14>>1];g=c>>>12&3;if((g|0)==2){break Hb}k=c>>>10&3;if((k|0)==2){break Hb}n=c>>>8&3;if((n|0)==2){break Hb}i=c&3;if((i|0)==2){break Hb}s=c>>>6&3;if((s|0)==2){break Hb}Rb:{Sb:{switch(i|0){case 0:i=0;j=sa(a,6);break Rb;case 1:i=0;j=sa(a,7);break Rb;default:break Sb}}C=Ga(a,m,0);if(!C){break Hb}i=1;j=y[C+68>>2]}y[h+60>>2]=j;Tb:{Ub:{switch((c>>>2&3)-1|0){default:j=sa(a,8);break Tb;case 0:j=sa(a,9);break Tb;case 1:j=sa(a,10);break Tb;case 2:break Ub}}C=Ga(a,m,i);if(!C){break Hb}i=i+1|0;j=y[C+68>>2]}y[h+64>>2]=j;Vb:{Wb:{switch((c>>>4&3)-1|0){default:j=sa(a,11);break Vb;case 0:j=sa(a,12);break Vb;case 1:j=sa(a,13);break Vb;case 2:break Wb}}C=Ga(a,m,i);if(!C){break Hb}i=i+1|0;j=y[C+68>>2]}y[h+68>>2]=j;Xb:{Yb:{switch(s|0){case 0:j=sa(a,14);break Xb;case 1:j=sa(a,15);break Xb;default:break Yb}}s=Ga(a,m,i);if(!s){break Hb}i=i+1|0;j=y[s+68>>2]}y[h+72>>2]=j;Zb:{_b:{switch(n|0){case 0:n=sa(a,14);break Zb;case 1:n=sa(a,15);break Zb;default:break _b}}n=Ga(a,m,i);if(!n){break Hb}i=i+1|0;n=y[n+68>>2]}y[h+76>>2]=n;$b:{ac:{switch(k|0){case 0:n=sa(a,14);break $b;case 1:n=sa(a,15);break $b;default:break ac}}k=Ga(a,m,i);if(!k){break Hb}i=i+1|0;n=y[k+68>>2]}y[h+80>>2]=n;bc:{cc:{switch(g|0){case 0:g=sa(a,14);break bc;case 1:g=sa(a,15);break bc;default:break cc}}g=Ga(a,m,i);if(!g){break Hb}i=i+1|0;g=y[g+68>>2]}y[h+84>>2]=g;if(!(c&16384)){fa=h,ga=sa(a,1),y[fa+88>>2]=ga;break Kb}c=Ga(a,m,i);if(!c){break Hb}y[h+88>>2]=y[c+68>>2];break Kb}s=y[f+352>>2]+d|0;if((s|0)<=0){break Mb}g=c+s|0;if((g|0)>(n|0)){break Nb}d=0;b=(b|0)==32&(c|0)>0;c=k+(c<<3)|0;C=c-8|0;while(1)if((d|0)==(s|0)){c=g;continue Lb}else{y[c+(d<<3)>>2]=b?y[C>>2]:0;d=d+1|0;continue}}y[f+8>>2]=0;y[f>>2]=0;y[f+4>>2]=0;ya(i);break Ib}c=c+1|0;continue}}i=0;y[f+312>>2]=0;y[f+316>>2]=0;if(z[h+1|0]==1){b=z[h+2|0];c=b?1024:8192;g=ab(c,8);y[f+24>>2]=0;rc(f+312|0,g);y[f+316>>2]=c;y[f+28>>2]=0;Ha(f+24|0);i=b?1024:8192}y[m+52>>2]=1;dc:{ec:{fc:{gc:{if(z[h|0]==1){b=Dd(h,y[a+4>>2],y[f+312>>2],i);y[f+24>>2]=0;oa(m- -64|0,b);la(f+24|0);if(!y[m+64>>2]){break ec}ta(y[a+4>>2]);break gc}c=Ra(y[a+4>>2]);y[f>>2]=c;b=Cd(f+24|0,d&255);c=Bd(h,c,y[f+312>>2],i,b);y[f+16>>2]=0;oa(m- -64|0,c);la(f+16|0);if(!y[m+64>>2]){break fc}ta(y[a+4>>2]);c=y[a+4>>2];d=y[c+8>>2];if(d>>>0<=4294967293){g=c;d=d+2|0;c=y[c+4>>2];y[g+8>>2]=c>>>0>d>>>0?d:c}qc(b);ua(f)}b=0;if((z[m+4|0]&63)==4){break dc}hc:{if(z[a+50|0]){break hc}b=y[y[a+24>>2]-4>>2];if(z[b+17|0]!=1){break hc}c=q+y[f+344>>2]|0;d=y[a+32>>2];if((c|0)<=y[d+12>>2]){break hc}eb(d,c,z[b+16|0])}b=y[f+340>>2];g=b;h=b>>31;b=y[f+344>>2];c=b;d=b>>31;b=z[f+348|0];fb(y[a+32>>2],g,h,c,d,y[m+64>>2],(b&7)==4?4:b&3);oa(m- -64|0,0);b=0;break dc}qc(b);ua(f)}b=1}Ha(f+312|0);break Hb}y[f+8>>2]=0;y[f>>2]=0;y[f+4>>2]=0}ya(f);b=1}ya(l);break v}else{d=Ma(a,y[y[m+12>>2]+(b<<2)>>2]);if(!(z[d+4|0]&63)){g=0;if(i&1){d=y[d+56>>2];d=y[d+28>>2]-y[d+24>>2]>>2;g=d+n|0;i=g;g=d>>>0<=g>>>0;n=g?i:0}else{n=0}i=g}b=b+1|0;continue}}b=1;g=d<<2;d=d+1|0;if(Ma(a,y[g+y[m+12>>2]>>2])){continue}break}}pc(f+308|0)}Y=f+368|0;break s}o()}if(y[a+56>>2]!=3){break r}b=y[a+4>>2];c=y[b+8>>2];b=y[b+4>>2];if(c>>>0>b>>>0){break e}if((b|0)!=(c|0)){continue}break}y[a+52>>2]=2;break c}ic:{switch(b|0){default:ib(R,0);break i;case 0:break ic;case 2:break d}}g=y[R>>2];b=y[g+28>>2];if((b|0)==-1){break g}c=y[a+84>>2];b=b+c|0;if(b>>>0>=c>>>0){break h}}aa=1;break c}y[a+84>>2]=b;d=y[a+4>>2];c=y[d+4>>2];y[d+8>>2]=b>>>0<c>>>0?b:c;break f}d=y[a+4>>2];b=y[d+8>>2];if(b>>>0>4294967291){break f}b=b+4|0;c=y[d+4>>2];y[d+8>>2]=b>>>0<c>>>0?b:c}b=y[a+12>>2];i=y[a+16>>2];jc:{if(b>>>0<i>>>0){y[R>>2]=0;y[b>>2]=g;b=b+4|0;break jc}c=y[a+8>>2];b=b-c|0;k=b>>2;d=k+1|0;if(d>>>0>=1073741824){break b}i=i-c|0;h=i>>1;d=i>>>0>=2147483644?1073741823:d>>>0<h>>>0?h:d;if(d){if(d>>>0>=1073741824){break a}i=na(d<<2)}else{i=0}y[a+80>>2]=0;h=b+i|0;y[h>>2]=g;g=h-(k<<2)|0;if(b){p(g,c,b)}y[a+16>>2]=i+(d<<2);b=h+4|0;y[a+12>>2]=b;y[a+8>>2]=g;if(c){ma(c)}d=y[a+4>>2]}y[a+12>>2]=b;b=y[d+8>>2];i=y[d+4>>2];if(b>>>0<=i>>>0){continue}break}}o()}ib(R,0)}Y=J+16|0;return aa}Ba();o()}jb();o()}function cb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0;e=Y-96|0;Y=e;f=y[a+8>>2];g=y[a+4>>2];a:{if(!(f-1>>>0<65535&g-1>>>0<=65534)){n=xa(g,f);break a}b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!z[a|0]){l:{if(z[a+24|0]!=255|z[a+25|0]!=255|(z[a+26|0]!=255|z[a+27|0]!=255)){break l}if(y[a+12>>2]){break l}k=y[a+20>>2];if((g|0)!=y[k+8>>2]){break l}if(!qa(k)){break b}p=y[a+4>>2];f=y[a+8>>2];n=xa(p,f);y[e+44>>2]=n;if(!qa(n)){break d}q=d;A=c;c=y[a+20>>2];G=y[c+8>>2];x=y[c+12>>2];c=y[a+16>>2];if(!((1-x|0)<=(c|0)&(c|0)<(x|0))){y[a+16>>2]=0}K=(f|0)>0?f:0;L=x+1|0;E=x-1|0;H=A+128|0;while(1){if((l|0)!=(K|0)){if(z[a+1|0]==1){if(z[b|0]){break d}if((d|0)==16|d>>>0<16){break k}C=ka(b,H)^C}ja(e+32|0,n,l);i=0;m:{if(!l){u=0;s=0;k=0;break m}ja(e+72|0,n,l-1|0);s=y[e+76>>2];if(!s){break k}u=y[e+72>>2];k=z[u|0]<<4}c=y[a+16>>2];y[e+88>>2]=0;y[e+92>>2]=0;y[e+80>>2]=0;y[e+84>>2]=0;y[e+72>>2]=0;y[e+76>>2]=0;y[e+16>>2]=0;y[e+8>>2]=0;y[e+12>>2]=0;g=l-c|0;if(!((g|0)<=0|(g|0)>(x|0))){ja(e+48|0,y[a+20>>2],g-1|0);c=y[e+52>>2];y[e+76>>2]=c;f=y[e+48>>2];y[e+72>>2]=f;if(!c){break k}c=z[f|0];y[e+8>>2]=c;i=c&192}j=0;c=0;n:{if((g|0)<0){break n}c=0;if((g|0)>=(x|0)){break n}ja(e+48|0,y[a+20>>2],g);c=y[e+52>>2];y[e+84>>2]=c;f=y[e+48>>2];y[e+80>>2]=f;if(!c){break k}c=z[f|0];y[e+12>>2]=c;c=c>>>3&24}if(!((g|0)<-1|(g|0)>=(E|0))){ja(e+48|0,y[a+20>>2],g+1|0);g=y[e+52>>2];y[e+92>>2]=g;f=y[e+48>>2];y[e+88>>2]=f;if(!g){break k}g=z[f|0];y[e+16>>2]=g;j=g>>>6|0}o:{if(!C){h=c|(k&3072|i)|j;r=0;v=y[e+32>>2];I=y[e+36>>2];m=0;p:while(1){if((m|0)>=(p|0)){break o}q:{if(!l){break q}k=k<<8;if((p|0)<=(m+8|0)){break q}c=(m>>>3|0)+1|0;if(c>>>0>=s>>>0){break k}k=z[c+u|0]<<4|k}r:{if((L+y[a+16>>2]|0)<(l|0)){y[e+16>>2]=0;y[e+8>>2]=0;y[e+12>>2]=0;g=0;i=0;c=0;break r}c=(m>>>3|0)+1|0;i=e+8|0;f=0;g=(G|0)<=(m+8|0);while(1){if((f|0)!=24){j=(e+72|0)+f|0;t=y[j+4>>2];s:{if(!t){break s}D=y[i>>2]<<8;y[i>>2]=D;if(g){break s}if(c>>>0>=t>>>0){break k}y[i>>2]=D|z[c+y[j>>2]|0]}i=i+4|0;f=f+8|0;continue}break}g=y[e+12>>2];i=y[e+8>>2];c=y[e+16>>2]}f=0;j=r+p|0;j=(j|0)>0?j:0;D=(j|0)>=8?8:j;j=0;while(1){if((f|0)==(D|0)){c=m>>>3|0;if(c>>>0>=I>>>0){break k}w[c+v|0]=j;r=r-8|0;m=m+8|0;continue p}if(h>>>0>=q>>>0){break k}F=ka(b,A+(h<<3)|0);t=7-f|0;j=F<<t|j;h=c>>>13-f&1|(g>>>10-f&8|(i>>>t&64|(k>>>t&1024|h<<1&6582|F<<9)));f=f+1|0;continue}}}Jb(e+48|0,a,l);i=c|(k&3072|i)|j;c=0;v=y[e+32>>2];I=y[e+36>>2];D=y[e+60>>2];F=y[e+56>>2];r=0;while(1){if((c|0)>=(p|0)){break o}t:{if(!l){g=c+8|0;break t}k=k<<8;g=c+8|0;if((p|0)<=(g|0)){break t}f=(c>>>3|0)+1|0;if(f>>>0>=s>>>0){break k}k=z[f+u|0]<<4|k}j=c>>>3|0;m=j+1|0;f=0;h=e+8|0;while(1){u:{if((f|0)==24){f=0;m=r+p|0;m=(m|0)>0?m:0;J=(m|0)>=8?8:m;N=y[e+16>>2];M=y[e+12>>2];O=y[e+8>>2];m=0;while(1){if((f|0)==(J|0)){break u}t=y[y[a+20>>2]+8>>2];P=c+f|0;h=ia(t,P,F,D);v:{if(z[a+1|0]==1){if(Ib(t,P,h,e+48|0)){break v}}if(z[b|0]){break d}if(i>>>0>=q>>>0){break k}h=ka(b,A+(i<<3)|0)}t=7-f|0;i=N>>>13-f&1|(M>>>10-f&8|(k>>>t&1024|i<<1&6582|h<<9|O>>>t&64));f=f+1|0;m=h<<t|m;continue}}t=(e+72|0)+f|0;J=y[t+4>>2];w:{if(!J){break w}N=y[h>>2]<<8;y[h>>2]=N;if((g|0)>=(G|0)){break w}if(m>>>0>=J>>>0){break k}y[h>>2]=N|z[m+y[t>>2]|0]}h=h+4|0;f=f+8|0;continue}break}if(j>>>0>=I>>>0){break k}w[j+v|0]=m;r=r-8|0;c=g;continue}}l=l+1|0;continue}break}y[e+44>>2]=0;break c}n=xa(g,f);y[e+44>>2]=n;if(!qa(n)){break f}Qa(n,0);A=c;u=c+128|0;c=0;while(1){if(B[a+8>>2]>c>>>0){if(z[a+1|0]==1){if(z[b|0]){break f}if((d|0)==16|d>>>0<16){break k}m=ka(b,u)^m}ja(e+32|0,n,c);f=e+72|0;ja(f,n,c-1|0);g=y[e+76>>2];q=y[e+72>>2];dd(f,a,c);f=0;k=y[n+8>>2];f=!g|(k|0)<2?f:z[q|0]>>>6&1;if(!(!g|(k|0)<=0)){f=z[q|0]>>>6&2|f}y[e+8>>2]=f;y[e+12>>2]=0;r=y[a+20>>2];f=y[r+8>>2];k=y[a+12>>2];i=1-k|0;l=y[e+72>>2];j=y[e+76>>2];h=0-k|0;Q=e,R=ia(f,i,l,j)|ia(f,h,l,j)<<1,y[Q+16>>2]=R;l=y[e+80>>2];j=y[e+84>>2];s=ia(f,i,l,j);p=s|ia(f,h,l,j)<<1;s=k^-1;Q=e,R=p|ia(f,s,l,j)<<2,y[Q+20>>2]=R;j=i;k=y[e+88>>2];i=y[e+92>>2];l=ia(f,j,k,i);Q=e,R=l|ia(f,h,k,i)<<1|ia(f,s,k,i)<<2,y[Q+24>>2]=R;f=e+48|0;ja(f,r,w[a+27|0]+(c-y[a+16>>2]|0)|0);k=y[e+52>>2];h=y[e+48>>2];ja(f,n,w[a+25|0]+c|0);f=y[e+52>>2];i=y[e+48>>2];x:{if(!m){l=q;q=g;j=i;i=f;g=k;r=h;f=0;k=y[e+32>>2];s=y[e+36>>2];while(1){if(B[a+4>>2]<=f>>>0){break x}p=e+8|0;h=cd(a,y[n+8>>2],p,f,r,g,j,i);if(z[b|0]){break f}if(d>>>0<=h>>>0){break k}bd(a,n,p,f,ka(b,A+(h<<3)|0),e+72|0,l,q,k,s);f=f+1|0;continue}}Jb(e+48|0,a,c);l=q;q=g;j=i;i=f;g=k;r=h;f=0;k=y[e+32>>2];s=y[e+36>>2];p=y[e+60>>2];C=y[e+56>>2];while(1){if(B[a+4>>2]<=f>>>0){break x}x=y[y[a+20>>2]+8>>2];h=ia(x,f,C,p);y:{if(z[a+1|0]==1){if(Ib(x,f,h,e+48|0)){break y}}h=cd(a,y[n+8>>2],e+8|0,f,r,g,j,i);if(z[b|0]==1){break f}if(d>>>0<=h>>>0){break k}h=ka(b,A+(h<<3)|0)}bd(a,n,e+8|0,f,h,e+72|0,l,q,k,s);f=f+1|0;continue}}c=c+1|0;continue}break}y[e+44>>2]=0;break e}z:{if(y[a+12>>2]){break z}k=y[a+20>>2];if((g|0)!=y[k+8>>2]){break z}if(!qa(k)){break b}q=y[a+4>>2];f=y[a+8>>2];n=xa(q,f);y[e+44>>2]=n;if(!qa(n)){break h}A=d;m=c;c=y[a+20>>2];x=y[c+8>>2];p=y[c+12>>2];c=y[a+16>>2];if(!((1-p|0)<=(c|0)&(c|0)<(p|0))){y[a+16>>2]=0}t=(f|0)>0?f:0;K=p-1|0;L=m- -64|0;while(1){A:{B:{if((l|0)!=(t|0)){if(z[a+1|0]==1){if(z[b|0]){break h}if((d|0)==8|d>>>0<8){break k}G=ka(b,L)^G}ja(e+32|0,n,l);i=0;C:{if(!l){C=0;s=0;k=0;break C}ja(e+72|0,n,l-1|0);s=y[e+76>>2];if(!s){break k}C=y[e+72>>2];k=z[C|0]<<1}c=y[a+16>>2];y[e+88>>2]=0;y[e+92>>2]=0;y[e+80>>2]=0;y[e+84>>2]=0;y[e+72>>2]=0;y[e+76>>2]=0;y[e+16>>2]=0;y[e+8>>2]=0;y[e+12>>2]=0;g=l-c|0;if(!((g|0)<=0|(g|0)>(p|0))){ja(e+48|0,y[a+20>>2],g-1|0);c=y[e+52>>2];y[e+76>>2]=c;f=y[e+48>>2];y[e+72>>2]=f;if(!c){break k}c=z[f|0];y[e+8>>2]=c;i=c>>>2&32}j=0;c=0;D:{if((g|0)<0){break D}c=0;if((g|0)>=(p|0)){break D}ja(e+48|0,y[a+20>>2],g);c=y[e+52>>2];y[e+84>>2]=c;f=y[e+48>>2];y[e+80>>2]=f;if(!c){break k}c=z[f|0];y[e+12>>2]=c;c=c>>>4&12}if(!((g|0)<-1|(g|0)>=(K|0))){ja(e+48|0,y[a+20>>2],g+1|0);g=y[e+52>>2];y[e+92>>2]=g;f=y[e+48>>2];y[e+88>>2]=f;if(!g){break k}g=z[f|0];y[e+16>>2]=g;j=g>>>6|0}if(G){break B}h=c|(k&384|i)|j;f=0;u=y[e+32>>2];E=y[e+36>>2];r=0;E:while(1){if((f|0)>=(q|0)){break A}F:{if(!l){c=f+8|0;break F}k=k<<8;c=f+8|0;if((q|0)<=(c|0)){break F}g=(f>>>3|0)+1|0;if(g>>>0>=s>>>0){break k}k=z[g+C|0]<<1|k}g=f>>>3|0;j=g+1|0;i=e+8|0;f=0;while(1){if((f|0)==24){f=0;i=r+q|0;i=(i|0)>0?i:0;j=(i|0)>=8?8:i;H=y[e+16>>2];v=y[e+12>>2];I=y[e+8>>2];i=0;while(1){if((f|0)==(j|0)){if(g>>>0>=E>>>0){break k}w[g+u|0]=i;r=r-8|0;f=c;continue E}if(h>>>0>=A>>>0){break k}D=ka(b,m+(h<<3)|0);F=7-f|0;i=D<<F|i;h=H>>>13-f&1|(v>>>11-f&4|(I>>>9-f&32|(k>>>F&128|h<<1&794|D<<6)));f=f+1|0;continue}}H=(e+72|0)+f|0;v=y[H+4>>2];G:{if(!v){break G}I=y[i>>2]<<8;y[i>>2]=I;if((c|0)>=(x|0)){break G}if(j>>>0>=v>>>0){break k}y[i>>2]=I|z[j+y[H>>2]|0]}i=i+4|0;f=f+8|0;continue}}}y[e+44>>2]=0;break g}Jb(e+48|0,a,l);i=c|(k&384|i)|j;c=0;E=y[e+32>>2];H=y[e+36>>2];v=y[e+60>>2];I=y[e+56>>2];u=0;while(1){if((c|0)>=(q|0)){break A}H:{if(!l){g=c+8|0;break H}k=k<<8;g=c+8|0;if((q|0)<=(g|0)){break H}f=(c>>>3|0)+1|0;if(f>>>0>=s>>>0){break k}k=z[f+C|0]<<1|k}r=c>>>3|0;j=r+1|0;f=0;h=e+8|0;while(1){I:{if((f|0)==24){f=0;h=q+u|0;h=(h|0)>0?h:0;D=(h|0)>=8?8:h;F=y[e+16>>2];J=y[e+12>>2];N=y[e+8>>2];j=0;while(1){if((f|0)==(D|0)){break I}M=y[y[a+20>>2]+8>>2];O=c+f|0;h=ia(M,O,I,v);J:{if(z[a+1|0]==1){if(Ib(M,O,h,e+48|0)){break J}}if(z[b|0]){break h}if(i>>>0>=A>>>0){break k}h=ka(b,m+(i<<3)|0)}M=7-f|0;i=F>>>13-f&1|(J>>>11-f&4|(N>>>9-f&32|(k>>>M&128|i<<1&794|h<<6)));f=f+1|0;j=h<<M|j;continue}}D=(e+72|0)+f|0;F=y[D+4>>2];K:{if(!F){break K}J=y[h>>2]<<8;y[h>>2]=J;if((g|0)>=(x|0)){break K}if(j>>>0>=F>>>0){break k}y[h>>2]=J|z[j+y[D>>2]|0]}h=h+4|0;f=f+8|0;continue}break}if(r>>>0>=H>>>0){break k}w[r+E|0]=j;u=u-8|0;c=g;continue}}l=l+1|0;continue}}n=xa(g,f);y[e+32>>2]=n;if(!qa(n)){break j}Qa(n,0);g=c;t=c- -64|0;while(1){if(B[a+8>>2]>u>>>0){if(z[a+1|0]==1){if(z[b|0]){break j}if((d|0)==8|d>>>0<8){break k}r=ka(b,t)^r}ja(e+8|0,n,u);c=e+72|0;ja(c,n,u-1|0);k=y[e+76>>2];A=y[e+72>>2];dd(c,a,u);h=0;c=y[n+8>>2];h=!k|(c|0)<2?h:z[A|0]>>>6&1;h=!k|(c|0)<=0?h:z[A|0]>>>6&2|h;c=y[y[a+20>>2]+8>>2];m=y[a+12>>2];f=0-m|0;p=y[e+72>>2];C=y[e+76>>2];ia(c,f,p,C);l=ia(c,f,p,C);j=1-m|0;q=y[e+80>>2];s=y[e+84>>2];i=ia(c,j,q,s)|ia(c,f,q,s)<<1|ia(c,m^-1,q,s)<<2;x=y[e+88>>2];G=y[e+92>>2];j=ia(c,j,x,G)|ia(c,f,x,G)<<1;L:{if(!r){m=0;K=y[e+12>>2];L=y[e+8>>2];f=0;while(1){if(B[a+4>>2]<=f>>>0){break L}if(z[b|0]){break j}c=i<<2|l<<5|m<<6|h<<7|j;if(c>>>0>=d>>>0){break k}m=ka(b,g+(c<<3)|0);La(y[n+8>>2],f,L,K,m);l=y[a+12>>2];h=ia(y[n+8>>2],f+2|0,A,k)|h<<1&6;c=y[y[a+20>>2]+8>>2];E=f-l|0;l=ia(c,E+1|0,p,C);E=E+2|0;i=ia(c,E,q,s)|i<<1&6;j=ia(c,E,x,G)|j<<1&2;f=f+1|0;continue}}Jb(e+48|0,a,u);c=0;K=y[e+12>>2];L=y[e+8>>2];E=y[e+60>>2];H=y[e+56>>2];f=0;while(1){if(B[a+4>>2]<=f>>>0){break L}v=y[y[a+20>>2]+8>>2];m=ia(v,f,H,E);M:{if(z[a+1|0]==1){if(Ib(v,f,m,e+48|0)){break M}}if(z[b|0]==1){break j}c=i<<2|l<<5|c<<6|h<<7|j;if(c>>>0>=d>>>0){break k}m=ka(b,g+(c<<3)|0)}La(y[n+8>>2],f,L,K,m);l=y[a+12>>2];h=ia(y[n+8>>2],f+2|0,A,k)|h<<1&6;c=y[y[a+20>>2]+8>>2];v=f-l|0;l=ia(c,v+1|0,p,C);v=v+2|0;i=ia(c,v,q,s)|i<<1&6;j=ia(c,v,x,G)|j<<1&2;f=f+1|0;c=m;continue}}u=u+1|0;continue}break}y[e+32>>2]=0;break i}o()}n=0}la(e+32|0);break a}n=0}la(e+44|0);break a}n=0}la(e+44|0);break a}n=0}la(e+44|0);break a}}Y=e+96|0;return n}function Zc(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;i=Y-32|0;Y=i;j=d-(c>>>0<1048577)|0;l=f-(e>>>0<1048577)|0;a:{if((j|0)==-1&c-1048577>>>0<4292870143|(j|0)!=-1|((l|0)==-1&e-1048577>>>0<4292870143|(l|0)!=-1)){break a}p=y[h>>2];q=y[h+8>>2];j=y[h+4>>2];m=y[h+12>>2];y[i+28>>2]=y[b+8>>2];w[i+24|0]=1;l=Yc(i+24|0,c);v=z[l|0];k=y[i+28>>2];h=y[b+12>>2];y[l>>2]=1;y[l+4>>2]=h;l=Yc(l,e);h=m-j|0;m=y[i+28>>2];x=z[l|0]?(h|0)<(m|0)?h:m:h;l=0-e&f>>31;if((x|0)<=(l|0)){break a}h=q-p|0;m=v?(h|0)<(k|0)?h:k:h;h=0-c&d>>31;if((m|0)<=(h|0)){break a}b:{c:{p=h+p|0;if((p|0)<0){break c}c=!!c&(d|0)>=0|(d|0)>0?c:0;n=c+(m-h|0)|0;D=-1<<0-n;E=-1>>>c|0;v=j+l|0;k=h&31;j=x-l|0;q=c&31;d=!!e&(f|0)>=0|(f|0)>0?e:0;l=c>>>5|0;p=p>>>5|0;if((c^n-1)>>>0<=31){c=D&E;if((h^m-1)>>>0>=32){h=0;j=(j|0)>0?j:0;k=k-q|0;q=32-k|0;m=p<<2;while(1){if((h|0)==(j|0)){break a}f=i+8|0;Ca(f,a,h+v|0);e=y[i+12>>2];n=y[i+8>>2];Ca(f,b,d+h|0);if(!e){break b}f=y[i+12>>2];if(!f){break b}if(e>>>0<p>>>0){break c}y[i+20>>2]=e-p;y[i+16>>2]=m+n;e=_a(i+16|0);if(!y[i+20>>2]|f>>>0<l>>>0|(f|0)==(l|0)){break c}f=y[i+8>>2]+(l<<2)|0;n=(te(e,24)&16711935|te(e&16711935,8))<<k;e=y[y[i+16>>2]>>2];n=n|(te(e&16711935,8)|te(e,24)&16711935)>>>q;e=y[f>>2];e=Oa(g,n,te(e&16711935,8)|te(e,24)&16711935,c);I=f,J=te(e&16711935,8)|te(e,24)&16711935,y[I>>2]=J;h=h+1|0;continue}}h=0;f=(j|0)>0?j:0;if(k>>>0>q>>>0){k=k-q|0;q=p<<2;while(1){if((f|0)==(h|0)){break a}j=i+16|0;Ca(j,a,h+v|0);e=y[i+20>>2];m=y[i+16>>2];Ca(j,b,d+h|0);if(!e){break b}j=y[i+20>>2];if(!j){break b}if((e|0)==(p|0)|e>>>0<p>>>0|((j|0)==(l|0)|j>>>0<l>>>0)){break c}e=y[i+16>>2]+(l<<2)|0;n=e;j=y[m+q>>2];j=(te(j&16711935,8)|te(j,24)&16711935)<<k;e=y[e>>2];e=Oa(g,j,te(e&16711935,8)|te(e,24)&16711935,c);I=n,J=te(e&16711935,8)|te(e,24)&16711935,y[I>>2]=J;h=h+1|0;continue}}k=q-k|0;q=p<<2;while(1){if((f|0)==(h|0)){break a}j=i+16|0;Ca(j,a,h+v|0);e=y[i+20>>2];m=y[i+16>>2];Ca(j,b,d+h|0);if(!e){break b}j=y[i+20>>2];if(!j){break b}if((e|0)==(p|0)|e>>>0<p>>>0|((j|0)==(l|0)|j>>>0<l>>>0)){break c}e=y[i+16>>2]+(l<<2)|0;n=e;j=y[m+q>>2];j=(te(j&16711935,8)|te(j,24)&16711935)>>>k|0;e=y[e>>2];e=Oa(g,j,te(e&16711935,8)|te(e,24)&16711935,c);I=n,J=te(e&16711935,8)|te(e,24)&16711935,y[I>>2]=J;h=h+1|0;continue}}x=n&31;A=(y[a+16>>2]>>>2)-(h>>>5)|0;if(k>>>0<=q>>>0){if((k|0)==(q|0)){k=0;e=((n|0)/32|0)-(c+31>>>5|0)|0;if((e|0)<0){break c}A=(j|0)>0?j:0;t=p<<2;d:while(1){if((k|0)==(A|0)){break a}f=i+8|0;Ca(f,a,k+v|0);c=y[i+12>>2];j=y[i+8>>2];Ca(f,b,d+k|0);if(!c){break b}h=y[i+12>>2];if(!h){break b}if(c>>>0<p>>>0){break c}y[i+20>>2]=c-p;y[i+16>>2]=j+t;if(h>>>0<l>>>0){break c}j=h-l|0;y[i+12>>2]=j;y[i+8>>2]=y[i+8>>2]+(l<<2);if(q){c=_a(i+16|0);f=gc(f);h=te(c,24)&16711935|te(c&16711935,8);c=y[f>>2];c=Oa(g,h,te(c&16711935,8)|te(c,24)&16711935,E);I=f,J=te(c&16711935,8)|te(c,24)&16711935,y[I>>2]=J;j=y[i+12>>2]}if(e>>>0>j>>>0){break c}c=y[i+16>>2];if(B[i+20>>2]<e>>>0){break c}h=y[i+8>>2];u=e<<2;m=h+u|0;n=y[i+20>>2];f=c;while(1)if((h|0)==(m|0)){if(x){if((e|0)==(n|0)|e>>>0>n>>>0|(e|0)==(j|0)){break c}c=y[f+u>>2];f=te(c&16711935,8)|te(c,24)&16711935;c=y[m>>2];c=Oa(g,f,te(c&16711935,8)|te(c,24)&16711935,D);I=m,J=te(c&16711935,8)|te(c,24)&16711935,y[I>>2]=J}k=k+1|0;continue d}else{r=y[c>>2];s=te(r&16711935,8)|te(r,24)&16711935;r=y[h>>2];r=Eb(g,s,te(r&16711935,8)|te(r,24)&16711935);I=h,J=te(r&16711935,8)|te(r,24)&16711935,y[I>>2]=J;c=c+4|0;h=h+4|0;continue}}}m=0;e=((n|0)/32|0)-(c+31>>>5|0)|0;if((e|0)<0){break c}n=q-k|0;u=32-n|0;F=(j|0)>0?j:0;G=p<<2;e:while(1){if((m|0)==(F|0)){break a}f=i+8|0;Ca(f,a,m+v|0);c=y[i+12>>2];h=y[i+8>>2];Ca(f,b,d+m|0);if(!c){break b}f=y[i+12>>2];if(!f){break b}if(c>>>0<p>>>0){break c}c=c-p|0;y[i+20>>2]=c;y[i+16>>2]=h+G;if(x){if(c>>>0<A>>>0){break c}y[i+20>>2]=A}if(f>>>0<l>>>0){break c}k=f-l|0;y[i+12>>2]=k;y[i+8>>2]=y[i+8>>2]+(l<<2);c=_a(i+16|0);j=te(c&16711935,8)|te(c,24)&16711935;if(q){c=gc(i+8|0);f=y[c>>2];f=Oa(g,j>>>n|0,te(f&16711935,8)|te(f,24)&16711935,E);h=te(f&16711935,8);I=c,J=te(f,24)&16711935|h,y[I>>2]=J;k=y[i+12>>2]}if(e>>>0>k>>>0){break c}c=y[i+16>>2];if(B[i+20>>2]<e>>>0){break c}h=y[i+8>>2];C=e<<2;t=h+C|0;r=y[i+20>>2];f=c;while(1)if((h|0)==(t|0)){if(x){if(e>>>0>r>>>0){break c}h=j<<u;if((e|0)!=(r|0)){c=y[f+C>>2];h=(te(c&16711935,8)|te(c,24)&16711935)>>>n|h}if((e|0)==(k|0)){break c}c=y[t>>2];c=Oa(g,h,te(c&16711935,8)|te(c,24)&16711935,D);I=t,J=te(c&16711935,8)|te(c,24)&16711935,y[I>>2]=J}m=m+1|0;continue e}else{H=j<<u;j=y[c>>2];j=te(j&16711935,8)|te(j,24)&16711935;s=y[h>>2];s=Eb(g,H|j>>>n,te(s&16711935,8)|te(s,24)&16711935);I=h,J=te(s&16711935,8)|te(s,24)&16711935,y[I>>2]=J;c=c+4|0;h=h+4|0;continue}}}m=0;e=((n|0)/32|0)-(c+31>>>5|0)|0;if((e|0)<0){break c}n=k-q|0;t=32-n|0;F=(j|0)>0?j:0;G=p<<2;f:while(1){if((m|0)==(F|0)){break a}f=i+8|0;Ca(f,a,m+v|0);c=y[i+12>>2];h=y[i+8>>2];Ca(f,b,d+m|0);if(!c){break b}f=y[i+12>>2];if(!f){break b}if(c>>>0<p>>>0){break c}c=c-p|0;y[i+20>>2]=c;y[i+16>>2]=h+G;if(x){if(c>>>0<A>>>0){break c}y[i+20>>2]=A}if(f>>>0<l>>>0){break c}k=f-l|0;y[i+12>>2]=k;y[i+8>>2]=y[i+8>>2]+(l<<2);c=i+16|0;f=_a(c);j=te(f&16711935,8)|te(f,24)&16711935;if(q){c=_a(c);f=gc(i+8|0);h=j<<n;j=te(c,24)&16711935|te(c&16711935,8);c=y[f>>2];c=Oa(g,h|j>>>t,te(c&16711935,8)|te(c,24)&16711935,E);I=f,J=te(c&16711935,8)|te(c,24)&16711935,y[I>>2]=J;k=y[i+12>>2]}if(e>>>0>k>>>0){break c}c=y[i+16>>2];if(B[i+20>>2]<e>>>0){break c}h=y[i+8>>2];C=e<<2;u=h+C|0;r=y[i+20>>2];f=c;while(1)if((h|0)==(u|0)){if(x){if(e>>>0>r>>>0){break c}h=j<<n;if((e|0)!=(r|0)){c=y[f+C>>2];h=(te(c&16711935,8)|te(c,24)&16711935)>>>t|h}if((e|0)==(k|0)){break c}c=y[u>>2];c=Oa(g,h,te(c&16711935,8)|te(c,24)&16711935,D);I=u,J=te(c&16711935,8)|te(c,24)&16711935,y[I>>2]=J}m=m+1|0;continue f}else{H=j<<n;j=y[c>>2];j=te(j&16711935,8)|te(j,24)&16711935;s=y[h>>2];s=Eb(g,H|j>>>t,te(s&16711935,8)|te(s,24)&16711935);I=h,J=te(s&16711935,8)|te(s,24)&16711935,y[I>>2]=J;c=c+4|0;h=h+4|0;continue}}}o()}}Y=i+32|0}function Dd(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0;f=Y-128|0;Y=f;n=xa(y[a+8>>2],y[a+12>>2]);y[f+124>>2]=n;if(qa(n)){Qa(n,z[a+4|0]);k=qd(b);y[f+116>>2]=k;e=0;a:{if(za(k,y[a+68>>2],f+120|0)){break a}y[f+108>>2]=y[f+120>>2];w[f+104|0]=1;q=Db(f+104|0,y[a+20>>2]);e=q;g=y[f+108>>2];h=0-g|0;y[e>>2]=z[e|0]&(g|0)!=-2147483648;y[e+4>>2]=h;y[f+100>>2]=0;w[f+96|0]=1;b:{c:{d:{e:while(1){if(B[a+16>>2]>r>>>0){if(za(k,y[a+68>>2],f+92|0)){break b}y[f+84>>2]=y[f+92>>2];e=1;w[f+80|0]=1;g=Db(f+80|0,y[a+20>>2]);s=Vc(q,y[g>>2],y[g+4>>2]);y[f+76>>2]=0;w[f+72|0]=1;while(1){f:{if(e&1){if(za(k,y[a+60>>2],f+8|0)){break b}h=Na(f+96|0,y[f+8>>2]);e=y[h+4>>2];y[f+72>>2]=y[h>>2];y[f+76>>2]=e;break f}g:{switch(za(k,y[a+64>>2],f+8|0)|0){case 0:break g;case 1:continue e;default:break b}}Na(Na(f+72|0,y[f+8>>2]),w[a+5|0])}e=1;j=0;g=y[a+20>>2];if((g|0)!=1){while(1){h=e;e=e+1|0;if(g>>>0>1<<h>>>0){continue}break}if(Ia(b,h,f+8|0)){break b}j=z[f+8|0]}e=y[s+4>>2];if(!(y[s>>2]&1)){break b}h=e+j|0;e=h&(e^-1);if((e|0)<0){break b}t=(e|0)>=0?h:0;j=0;y[f+68>>2]=0;w[f+64|0]=1;h:while(1){if(wb(b,f+8|0)){break b}e=Tb(f- -64|0);if(z[e|0]!=1){break b}h=y[f+68>>2]|y[f+8>>2];g=(h|0)>=0;y[e>>2]=g;h=g?h:0;y[e+4>>2]=h;if(!g){break d}j=j+1|0;l=y[a+28>>2];i=y[a+24>>2];e=0;while(1){if((e|0)==(i|0)){continue h}g=l+(e<<3)|0;if(!(y[g>>2]==(j|0)&(h|0)==y[g+4>>2])){e=e+1|0;continue}break}break}i:{j:{k:{if(!z[a+1|0]){w[f+60|0]=0;y[f+56>>2]=0;break k}h=y[b>>2];g=y[b+8>>2];if(g>>>0>=B[b+4>>2]){break b}g=z[g+h|0];h=y[b+12>>2];_b(b);w[f+60|0]=0;y[f+56>>2]=0;if(g>>>7-h&1){break j}}Uc(f+56|0,y[y[a+40>>2]+(e<<2)>>2]);break i}if(za(k,y[a+72>>2],f+52|0)){break c}if(za(k,y[a+76>>2],f+48|0)){break c}if(za(k,y[a+80>>2],f+44|0)){break c}if(za(k,y[a+84>>2],f+40|0)){break c}if(za(k,y[a+88>>2],f+36|0)){break c}ta(b);j=y[y[a+40>>2]+(e<<2)>>2];if(!j){break c}l=y[f+52>>2];h=l>>31;e=y[j+8>>2]+l|0;if(e>>>0<l>>>0?h+1|0:h){break c}i=y[f+48>>2];g=i>>31;h=i+y[j+12>>2]|0;if(h>>>0<i>>>0?g+1|0:g){break c}g=y[b+8>>2];Cb(f+8|0,l,2,y[f+44>>2]);Cb(f+28|0,i,2,y[f+40>>2]);if(!(w[f+32|0]&1)|z[f+12|0]!=1){break c}i=db();y[f+24>>2]=i;y[i+8>>2]=h;y[i+4>>2]=e;e=z[a+2|0];y[i+20>>2]=j;w[i|0]=e;y[i+12>>2]=y[f+8>>2];e=y[f+28>>2];j=0;w[i+1|0]=0;y[i+16>>2]=e;w[i+24|0]=z[a+92|0];w[i+25|0]=z[a+93|0];w[i+26|0]=z[a+94|0];w[i+27|0]=z[a+95|0];e=Ra(b);y[f+20>>2]=e;if(fc(Tc(f+56|0,cb(i,e,c,d)))){ta(b);e=y[b+8>>2];if(e>>>0<=4294967293){h=e+2|0;e=y[b+4>>2];e=e>>>0>h>>>0?h:e;y[b+8>>2]=e}j=y[f+36>>2]==(e-g|0)}ua(f+20|0);Ua(f+24|0);if(!j){break c}}e=f+56|0;if(fc(e)){i=y[Xa(e)+8>>2];e=Xa(e);p=y[a+56>>2];j=y[e+12>>2];l:{m:{l=z[a+3|0];if(!l){e=z[f+72|0];if((p&-2)!=2){break m}if(!(e&1)){break c}g=y[f+76>>2];h=g>>31;e=i-1|0;m=e;e=e+g|0;g=m>>>0>e>>>0?h+1|0:h;g=e>>>0<2147483648&(g|0)<=0|(g|0)<0;y[f+72>>2]=0|g;y[f+76>>2]=g?e:0;if(!g){break c}break l}e=z[f+72|0];n:{switch(p|0){default:if(!(e&1)){break c}break l;case 0:case 2:break n}}if(!(e&1)){break c}g=y[f+76>>2];h=g>>31;e=j-1|0;m=e;e=e+g|0;h=m>>>0>e>>>0?h+1|0:h;g=e>>>0<2147483648&(h|0)<=0|(h|0)<0;y[f+72>>2]=0|g;y[f+76>>2]=g?e:0;if(g){break l}break c}if(!(e&1)){break c}}g=y[f+76>>2];Rc(f+8|0,l,p,g,t,i,j);m=Xa(f+56|0);e=y[f+8>>2];h=e;i=e>>31;e=y[f+12>>2];Hb(m,n,h,i,e,e>>31,y[a+52>>2]);e=y[f+16>>2];if(e){h=g>>31;m=e;e=e+g|0;g=m>>>0>e>>>0?h+1|0:h;h=e;g=e>>>0<2147483648&(g|0)<=0|(g|0)<0;e=0;y[f+72>>2]=e|g;y[f+76>>2]=g?h:0}r=r+1|0}mb(f+56|0);e=0;continue}}break}y[f+124>>2]=0;e=n;break a}o()}mb(f+56|0)}e=0}Ua(f+116|0)}la(f+124|0);Y=f+128|0;return e}function Bd(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,A=0,C=0,D=0,E=0,F=0;f=Y-112|0;Y=f;k=xa(y[a+8>>2],y[a+12>>2]);y[f+108>>2]=k;g=0;a:{if(!qa(k)){break a}o=y[e>>2];g=0;if(!Aa(o,b,f+104|0)){break a}t=y[e+36>>2];u=y[e+32>>2];v=y[e+28>>2];x=y[e+24>>2];A=y[e+20>>2];C=y[e+16>>2];D=y[e+12>>2];E=y[e+8>>2];F=y[e+4>>2];Qa(k,z[a+4|0]);y[f+100>>2]=y[f+104>>2];w[f+96|0]=1;p=Db(f+96|0,y[a+20>>2]);e=p;h=y[f+100>>2];g=0-h|0;y[e>>2]=z[e|0]&(h|0)!=-2147483648;y[e+4>>2]=g;y[f+92>>2]=0;w[f+88|0]=1;e=y[a+16>>2];b:{c:while(1){if(e>>>0>m>>>0){y[f+84>>2]=0;w[f+80|0]=1;if(!Aa(o,b,f+76|0)){break b}y[f+68>>2]=y[f+76>>2];e=1;w[f+64|0]=1;g=Db(f- -64|0,y[a+20>>2]);q=Vc(p,y[g>>2],y[g+4>>2]);while(1){d:{if(e&1){Aa(F,b,f+4|0);e=Na(f+88|0,y[f+4>>2]);g=y[e+4>>2];y[f+80>>2]=y[e>>2];y[f+84>>2]=g;break d}if(!Aa(E,b,f+4|0)){e=y[a+16>>2];continue c}Na(Na(f+80|0,y[f+4>>2]),w[a+5|0])}e=y[a+16>>2];if(m>>>0>=e>>>0){continue c}y[f+60>>2]=0;if(y[a+20>>2]!=1){Aa(D,b,f+60|0)}e=y[q+4>>2];if(!(y[q>>2]&1)){break b}g=y[f+60>>2];n=e+g|0;if(((e^n)&(g^n))<0){break b}Ac(t,b,f+56|0);e=y[f+56>>2];if(e>>>0>=B[a+24>>2]){break b}e:{f:{g:{h:{i:{if(!z[a+1|0]){y[f+52>>2]=0;w[f+48|0]=0;y[f+44>>2]=0;break i}Aa(C,b,f+52|0);g=y[f+52>>2];w[f+48|0]=0;y[f+44>>2]=0;if(g){break h}}Uc(f+44|0,y[y[a+40>>2]+(e<<2)>>2]);break g}Aa(A,b,f+40|0);Aa(x,b,f+36|0);Aa(v,b,f+32|0);Aa(u,b,f+28|0);h=y[y[a+40>>2]+(e<<2)>>2];if(!h){break f}i=y[f+40>>2];g=i>>31;e=y[h+8>>2]+i|0;if(e>>>0<i>>>0?g+1|0:g){break f}j=y[f+36>>2];g=j>>31;l=j+y[h+12>>2]|0;g=l>>>0<j>>>0?g+1|0:g;if((g|0)==1|g>>>0>1){break f}Cb(f+4|0,i,1,y[f+32>>2]);Cb(f+20|0,j,1,y[f+28>>2]);if(!(w[f+24|0]&1)|z[f+8|0]!=1){break f}g=db();y[f+16>>2]=g;y[g+8>>2]=l;y[g+4>>2]=e;e=z[a+2|0];y[g+20>>2]=h;w[g|0]=e;y[g+12>>2]=y[f+4>>2];e=y[f+20>>2];w[g+1|0]=0;y[g+16>>2]=e;w[g+24|0]=z[a+92|0];w[g+25|0]=z[a+93|0];w[g+26|0]=z[a+94|0];w[g+27|0]=z[a+95|0];Tc(f+44|0,cb(g,b,c,d));Ua(f+16|0)}i=0;e=f+44|0;if(!fc(e)){break e}l=y[Xa(e)+8>>2];e=Xa(e);j=y[a+56>>2];r=y[e+12>>2];j:{k:{l:{s=z[a+3|0];if(!s){e=z[f+80|0];if((j&-2)!=2){break l}if(!(e&1)){break j}g=y[f+84>>2];e=g>>31;h=l-1|0;g=g+h|0;h=h>>>0>g>>>0?e+1|0:e;e=g;g=e>>>0<2147483648&(h|0)<=0|(h|0)<0;y[f+80>>2]=0|g;y[f+84>>2]=g?e:0;if(g){break k}break e}e=z[f+80|0];m:{switch(j|0){default:if(e&1){break k}break e;case 0:case 2:break m}}if(!(e&1)){break j}e=y[f+84>>2];g=e>>31;h=r-1|0;e=e+h|0;g=h>>>0>e>>>0?g+1|0:g;g=e>>>0<2147483648&(g|0)<=0|(g|0)<0;y[f+80>>2]=0|g;y[f+84>>2]=g?e:0;if(g){break k}break e}if(!(e&1)){break e}}g=y[f+84>>2];Rc(f+4|0,s,j,g,n,l,r);i=Xa(f+44|0);e=y[f+4>>2];h=e;j=e>>31;e=y[f+8>>2];Hb(i,k,h,j,e,e>>31,y[a+52>>2]);h=y[f+12>>2];if(h){e=g>>31;g=g+h|0;h=g>>>0<h>>>0?e+1|0:e;e=g;g=e>>>0<2147483648&(h|0)<=0|(h|0)<0;h=0;y[f+80>>2]=g|h;y[f+84>>2]=g?e:0}i=1;m=m+1|0;break e}y[f+80>>2]=0;y[f+84>>2]=0;break e}i=0}mb(f+44|0);e=0;if(i){continue}break}break b}break}y[f+108>>2]=0;g=k;break a}g=0}la(f+108|0);Y=f+112|0;return g}function eb(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0;j=Y-32|0;Y=j;a:{b:{c:{if(!qa(a)){break c}k=y[a+12>>2];if((k|0)>=(b|0)){break c}g=y[a+16>>2];if((268435452/(g|0)|0)<(b|0)){break c}if((k|0)<0){break b}d=g>>31;q=se(g,d,k);k=Z;if((k|0)==1|k>>>0>1){break b}g=se(g,d,b);d=Z;if((d|0)==1|d>>>0>1){break b}d:{if(z[a+4|0]==1){k=y[a>>2];y[a>>2]=0;y[j+20>>2]=0;_c(a,j+20|0);y[j+28>>2]=0;if(!d&g>>>0>2147479550|d){break a}e:{if(!k){g=Ya(g);break e}if(!g){ma(k);g=0;break e}f:{if(g>>>0>4294967239){break f}m=g>>>0<=8?8:g+3&-4;d=m+8|0;g=k;r=g-4|0;i=r;f=y[i>>2];e=f+i|0;h=y[e>>2];g:{h:{i:{if((h|0)!=y[(e+h|0)-4>>2]){h=f+h|0;if(h>>>0>=d+16>>>0){f=y[e+4>>2];e=y[e+8>>2];y[f+8>>2]=e;y[e+4>>2]=f;f=d+i|0;e=h-d|0;y[f>>2]=e;y[(f+(e&-4)|0)-4>>2]=e|1;e=y[f>>2]-8|0;j:{if(e>>>0<=127){n=(e>>>3|0)-1|0;break j}h=H(e);n=((e>>>29-h^4)-(h<<2)|0)+110|0;if(e>>>0<=4095){break j}e=((e>>>30-h^2)-(h<<1)|0)+71|0;n=e>>>0>=63?63:e}e=n;h=e<<4;y[f+4>>2]=h+6080;h=h+6088|0;y[f+8>>2]=y[h>>2];y[h>>2]=f;y[y[f+8>>2]+4>>2]=f;h=y[1779];f=e&31;if((e&63)>>>0>=32){f=1<<f;e=0}else{e=1<<f;f=e-1&1>>>32-f}y[1778]=e|y[1778];y[1779]=f|h;y[i>>2]=d;y[(i+(d&-4)|0)-4>>2]=d;e=1;break g}if(d>>>0>h>>>0){break i}d=y[e+4>>2];f=y[e+8>>2];y[d+8>>2]=f;y[f+4>>2]=d;y[i>>2]=h;y[(i+(h&-4)|0)-4>>2]=h;e=1;break g}if(f>>>0>=d+16>>>0){y[i>>2]=d;y[(i+(d&-4)|0)-4>>2]=d;i=d+i|0;d=f-d|0;y[i>>2]=d;y[(i+(d&-4)|0)-4>>2]=d|1;d=y[i>>2]-8|0;k:{if(d>>>0<=127){e=(d>>>3|0)-1|0;break k}f=H(d);e=((d>>>29-f^4)-(f<<2)|0)+110|0;if(d>>>0<=4095){break k}d=((d>>>30-f^2)-(f<<1)|0)+71|0;e=d>>>0>=63?63:d}f=e;d=f<<4;y[i+4>>2]=d+6080;d=d+6088|0;y[i+8>>2]=y[d>>2];y[d>>2]=i;y[y[i+8>>2]+4>>2]=i;i=y[1779];d=f&31;if((f&63)>>>0>=32){f=1<<d;e=0}else{e=1<<d;f=e-1&1>>>32-d}y[1778]=e|y[1778];y[1779]=f|i;e=1;break g}e=1;if(d>>>0<=f>>>0){break h}}e=0}}if(e){break e}g=Ya(m);if(!g){break f}l=y[r>>2]-8|0;l=l>>>0>m>>>0?m:l;if(l){p(g,k,l)}ma(k);l=g}g=l}if(!g){break a}nb(a,g);Ha(j+28|0);break d}Da(j+20|0,a);k=y[j+20>>2];l=y[j+24>>2];nb(a,ab(g,1));Da(j+12|0,a);if(l>>>0>B[j+16>>2]){break b}if(!l){break d}p(y[j+12>>2],k,l)}y[a+12>>2]=b;Da(j+20|0,a);a=y[j+24>>2];if(q>>>0>a>>>0){break b}c=0-c|0;b=q+y[j+20>>2]|0;a=a-q|0;while(1){if((a|0)<=0){break c}w[b|0]=c;a=a-1|0;b=b+1|0;continue}}Y=j+32|0;return}o()}rb();o()}function nc(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0;f=Y-48|0;Y=f;v=xa(y[a+4>>2],y[a+8>>2]);y[f+44>>2]=v;a:{b:{if(!qa(v)){break b}c:{m=y[a+4>>2];if(!m){break c}n=y[a+8>>2];L=e?n:n&2147483647;e=e<<1;B=e+2448|0;G=e+2466|0;C=e+2442|0;H=e+2436|0;I=e+2430|0;M=e+2460|0;N=e+2454|0;O=e+2424|0;e=m-1|0;p=e>>>3|0;J=(e&7)+1|0;n=0;m=0;e=0;while(1){d:{e:{if((x|0)!=(L|0)){ja(f+36|0,v,x);r=y[f+40>>2];s=y[f+36>>2];if(z[a+1|0]!=1){t=e;break e}if(z[b|0]){break b}h=A[O>>1];if(h>>>0>=d>>>0){break c}t=0;h=ka(b,(h<<3)+c|0);if((h|0)==(e|0)){break e}y[f+32>>2]=r;y[f+28>>2]=s;y[f+24>>2]=m;y[f+20>>2]=n;t=y[f+32>>2];y[f+8>>2]=y[f+28>>2];y[f+12>>2]=t;t=y[f+24>>2];y[f>>2]=y[f+20>>2];y[f+4>>2]=t;Pa(f+8|0,f);e=e^h;break d}y[f+44>>2]=0;break a}f:{g:{h:{if(x>>>0<=1){i=0;k=0;l=(x|0)!=1;if(!l){if(!m){break c}k=z[n|0]}q=A[I>>1];g=A[H>>1]&k>>>q;while(1){if((i|0)!=(p|0)){if(!l){e=i+1|0;if(e>>>0>=m>>>0){break c}k=z[e+n|0]|k<<8}j=0;e=7;while(1){if((e|0)>=0){if(z[b|0]){break b}if(d>>>0<=g>>>0){break c}u=A[B>>1]&k>>>e+q|(A[C>>1]&g)<<1;h=ka(b,(g<<3)+c|0);g=u|h;j=h<<e|j;e=e-1|0;continue}break}if((i|0)==(r|0)){break c}w[i+s|0]=j;i=i+1|0;continue}break}l=q+7|0;h=k<<8;e=0;j=0;while(1){if((e|0)==(J|0)){break h}if(z[b|0]){break b}if(d>>>0<=g>>>0){break c}u=A[B>>1]&h>>>l-e|(A[C>>1]&g)<<1;i=ka(b,(g<<3)+c|0);g=u|i;j=i<<7-e|j;e=e+1|0;continue}}if(!g|!m|(m-1>>>0<p>>>0|p>>>0>r>>>0)|g-1>>>0<p>>>0){break c}k=z[n|0];F=A[I>>1];K=A[N>>1];D=z[i|0]<<K;g=A[H>>1]&k>>>F|D&A[M>>1];u=p+s|0;h=n;l=s;while(1){i:{E=D<<8;if((l|0)==(u|0)){break i}h=h+1|0;k=z[h|0]|k<<8;i=i+1|0;D=E|z[i|0]<<K;e=7;j=0;while(1){if((e|0)>=0){if(z[b|0]){break b}if(d>>>0<=g>>>0){break c}E=A[B>>1]&k>>>e+F|(A[G>>1]&D>>>e|(A[C>>1]&g)<<1);q=ka(b,(g<<3)+c|0);g=E|q;j=q<<e|j;e=e-1|0;continue}break}w[l|0]=j;l=l+1|0;continue}break}q=F+7|0;l=k<<8;j=0;e=0;while(1){if((j|0)==(J|0)){break g}if(z[b|0]){break b}if(d>>>0<=g>>>0){break c}h=ka(b,(g<<3)+c|0);i=7-j|0;e=h<<i|e;g=h|(A[B>>1]&l>>>q-j|(A[G>>1]&E>>>i|(A[C>>1]&g)<<1));j=j+1|0;continue}}if(p>>>0>=r>>>0){break c}w[p+s|0]=j;break f}if(p>>>0>=r>>>0){break c}w[u|0]=e}e=t}x=x+1|0;i=n;g=m;n=s;m=r;continue}}o()}v=0}la(f+44|0);Y=f+48|0;return v}function ic(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;a:{b:{c:{d:{if(!z[a+1|0]){g=y[a+60>>2];break d}f=y[b+4>>2];if(z[f|0]){break a}h=y[c>>2];if(h>>>0>=B[b+12>>2]){break c}g=y[a+60>>2]^ka(f,y[b+8>>2]+(h<<3)|0);y[a+60>>2]=g}if(g){ed(a,y[y[b>>2]>>2]);break b}f=y[a+24>>2];if(f>>>0<=1){if((f|0)==1){if(!y[a+40>>2]){break c}j=z[y[a+36>>2]]}i=y[c+12>>2]&j>>>y[c+8>>2];h=(f|0)!=1;while(1){if((d|0)!=(k|0)){if(!h){f=k+1|0;if(f>>>0>=B[a+40>>2]){break c}j=z[f+y[a+36>>2]|0]|j<<8}g=7;l=0;while(1){if((g|0)>=0){f=y[b+4>>2];if(z[f|0]){break a}if(B[b+12>>2]<=i>>>0){break c}f=ka(f,y[b+8>>2]+(i<<3)|0);i=f|(y[c+16>>2]&j>>>y[c+8>>2]+g|(y[c+4>>2]&i)<<1);l=f<<g|l;g=g-1|0;continue}break}if(B[a+48>>2]<=k>>>0){break c}w[y[a+44>>2]+k|0]=l;k=k+1|0;continue}break}f=j<<8;g=0;l=0;while(1){if((e|0)!=(g|0)){h=y[b+4>>2];if(z[h|0]){break a}if(B[b+12>>2]<=i>>>0){break c}h=ka(h,y[b+8>>2]+(i<<3)|0);j=7-g|0;l=h<<j|l;i=h|(y[c+16>>2]&f>>>j+y[c+8>>2]|(y[c+4>>2]&i)<<1);g=g+1|0;continue}break}if(B[a+48>>2]<=d>>>0){break c}w[y[a+44>>2]+d|0]=l;break b}if(!y[a+32>>2]|!y[a+40>>2]){break c}j=z[y[a+36>>2]];k=z[y[a+28>>2]]<<y[c+20>>2];i=y[c+12>>2]&j>>>y[c+8>>2]|k&y[c+24>>2];f=0;while(1){e:{if((d|0)!=(f|0)){h=f+1|0;if(h>>>0>=B[a+32>>2]|h>>>0>=B[a+40>>2]){break c}k=z[h+y[a+28>>2]|0]<<y[c+20>>2]|k<<8;j=z[h+y[a+36>>2]|0]|j<<8;g=7;l=0;while(1){if((g|0)<0){break e}m=y[b+4>>2];if(z[m|0]){break a}if(B[b+12>>2]<=i>>>0){break c}m=ka(m,y[b+8>>2]+(i<<3)|0);i=m|(y[c+16>>2]&j>>>y[c+8>>2]+g|(y[c+28>>2]&k>>>g|(y[c+4>>2]&i)<<1));l=m<<g|l;g=g-1|0;continue}}l=j<<8;j=k<<8;g=0;f=0;while(1){if((e|0)!=(g|0)){h=y[b+4>>2];if(z[h|0]){break a}if(B[b+12>>2]<=i>>>0){break c}k=ka(h,y[b+8>>2]+(i<<3)|0);h=7-g|0;f=k<<h|f;i=k|(y[c+16>>2]&l>>>h+y[c+8>>2]|(y[c+28>>2]&j>>>h|(y[c+4>>2]&i)<<1));g=g+1|0;continue}break}if(B[a+48>>2]<=d>>>0){break c}w[y[a+44>>2]+d|0]=f;break b}if(B[a+48>>2]<=f>>>0){break c}w[y[a+44>>2]+f|0]=l;f=h;continue}}o()}return 1}return 0}function pe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,A=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0;c=Y-48|0;Y=c;m=y[b+4>>2];t=y[b+12>>2];u=y[b+8>>2];g=y[y[b>>2]>>2];ja(c+40|0,g,y[a+24>>2]-1|0);ja(c+32|0,g,y[a+24>>2]-2|0);A=u+317736|0;n=y[c+36>>2];p=y[c+32>>2];d=y[a+24>>2];C=t>>>0>39717;q=4;a:{while(1){b:{c:{if(B[a+8>>2]>d>>>0){j=y[c+44>>2];k=y[c+40>>2];ja(c+32|0,g,d);h=y[c+36>>2];r=y[c+32>>2];y[c+40>>2]=r;y[c+44>>2]=h;d:{e:{f:{if(!z[a+1|0]){d=y[a+60>>2];break f}if(z[m|0]){break b}if(!C){break e}d=y[a+60>>2]^ka(m,A);y[a+60>>2]=d}if(d){y[c+20>>2]=j;y[c+16>>2]=k;y[c+24>>2]=r;y[c+28>>2]=h;y[c+8>>2]=r;y[c+12>>2]=h;h=y[c+20>>2];y[c>>2]=y[c+16>>2];y[c+4>>2]=h;Pa(c+8|0,c);break d}i=0;v=0;x=0;if(z[a+2|0]==1){ja(c+32|0,y[a+12>>2],y[a+24>>2]);x=y[c+36>>2];v=y[c+32>>2]}d=c+32|0;ja(d,g,y[a+24>>2]+w[a+17|0]|0);D=y[c+36>>2];E=y[c+32>>2];ja(d,g,y[a+24>>2]+w[a+19|0]|0);F=y[c+36>>2];G=y[c+32>>2];ja(d,g,y[a+24>>2]+w[a+21|0]|0);H=y[c+36>>2];I=y[c+32>>2];ja(d,g,y[a+24>>2]+w[a+23|0]|0);J=y[c+36>>2];K=y[c+32>>2];e=y[g+8>>2];i=!n|(e|0)<2?i:z[p|0]>>>6&1;i=!n|(e|0)<=0?i:z[p|0]>>>6&2|i;f=0;f=!j|(e|0)<3?f:z[k|0]>>>5&1;f=!j|(e|0)<2?f:z[k|0]>>>5&2|f;f=!j|(e|0)<=0?f:z[k|0]>>>5&4|f;s=0;d=0;while(1){if(B[a+4>>2]<=d>>>0){break d}g:{h:{if(z[a+2|0]==1){if(ia(y[y[a+12>>2]+8>>2],d,v,x)){break h}}l=ia(e,w[a+16|0]+d|0,E,D);L=ia(e,w[a+18|0]+d|0,G,F);M=ia(e,w[a+20|0]+d|0,I,H);e=ia(e,w[a+22|0]+d|0,K,J);if(z[m|0]){break b}e=f<<5|i<<12|l<<4|L<<10|M<<11|e<<15|s;if(e>>>0>=t>>>0){break e}l=ka(m,(e<<3)+u|0);e=y[g+8>>2];if(!l){break h}La(e,d,r,h,1);e=y[g+8>>2];l=1;break g}l=0}i=ia(e,d+2|0,p,n)|i<<1&6;f=ia(e,d+3|0,k,j)|f<<1&30;d=d+1|0;s=s<<1&14|l;continue}}o()}h=y[b+16>>2];if(!h){break c}if(!(_[y[y[h>>2]+8>>2]](h)|0)){break c}y[a+24>>2]=y[a+24>>2]+1;q=3}y[a+52>>2]=q;break a}d=y[a+24>>2]+1|0;y[a+24>>2]=d;p=k;n=j;continue}break}q=-1}Y=c+48|0;return q|0}+function mc(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;f=Y-48|0;Y=f;i=xa(y[a+4>>2],y[a+8>>2]);y[f+44>>2]=i;a:{b:{if(!qa(i)){break b}Qa(i,0);K=e|2;L=5-e|0;M=4-e|0;k=e>>>1|0;N=k^3;j=e<<1;O=j+2490|0;P=j+2484|0;Q=j+2478|0;R=j+2472|0;S=k^1;T=2-k|0;x=e&1;U=x+1|0;V=j+2424|0;j=0;k=0;while(1){c:{d:{e:{if(B[a+8>>2]>m>>>0){ja(f+36|0,i,m);t=y[f+40>>2];u=y[f+36>>2];if(z[a+1|0]!=1){n=g;break e}if(z[b|0]){break b}h=A[V>>1];if(h>>>0>=d>>>0){break d}n=0;h=ka(b,(h<<3)+c|0);if((h|0)==(g|0)){break e}y[f+32>>2]=t;y[f+28>>2]=u;y[f+24>>2]=k;y[f+20>>2]=j;n=y[f+32>>2];y[f+8>>2]=y[f+28>>2];y[f+12>>2]=n;n=y[f+24>>2];y[f>>2]=y[f+20>>2];y[f+4>>2]=n;g=g^h;i=y[f+44>>2];Pa(f+8|0,f);break c}y[f+44>>2]=0;break a}C=0;D=0;E=0;if(z[a+2|0]==1){ja(f+36|0,y[a+12>>2],m);E=y[f+40>>2];D=y[f+36>>2]}g=f+36|0;i=y[f+44>>2];ja(g,i,w[a+17|0]+m|0);W=y[f+40>>2];X=y[f+36>>2];F=0;G=0;H=0;I=0;J=0;if(!e){ja(g,i,w[a+19|0]+m|0);C=y[f+40>>2];F=y[f+36>>2];ja(g,i,w[a+21|0]+m|0);G=y[f+40>>2];H=y[f+36>>2];ja(g,i,w[a+23|0]+m|0);J=y[f+36>>2];I=y[f+40>>2]}h=y[i+8>>2];p=ia(h,U,r,s)|ia(h,x,r,s)<<1;p=!s|(e|0)!=1|(h|0)<=0?p:z[r|0]>>>5&4|p;q=ia(h,T,j,k)|ia(h,S,j,k)<<1;q=!k|e>>>0>1|(h|0)<=0?q:z[j|0]>>>5&4|q;v=0;g=0;while(1){if(B[a+4>>2]<=g>>>0){g=n;break c}f:{g:{if(z[a+2|0]==1){if(ia(y[y[a+12>>2]+8>>2],g,D,E)){break g}}if(z[b|0]){break b}l=q<<L|ia(h,w[a+16|0]+g|0,X,W)<<M|p<<A[R>>1]|v;if(!e){l=ia(h,w[a+18|0]+g|0,F,C)<<10|ia(h,w[a+20|0]+g|0,H,G)<<11|ia(h,w[a+22|0]+g|0,J,I)<<15|l}if(d>>>0<=l>>>0){break d}l=ka(b,(l<<3)+c|0);h=y[i+8>>2];if(!l){break g}La(h,g,u,t,1);h=y[i+8>>2];l=1;break f}l=0}p=(ia(h,g+K|0,r,s)|p<<1)&A[Q>>1];q=(ia(h,g+N|0,j,k)|q<<1)&A[P>>1];g=g+1|0;v=A[O>>1]&(l|v<<1);continue}}o()}m=m+1|0;r=j;s=k;j=u;k=t;continue}}i=0}la(f+44|0);Y=f+48|0;return i}function ke(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0;k=Y-16|0;Y=k;h=y[b+4>>2];l=y[b+12>>2];m=y[b+8>>2];n=y[y[b>>2]>>2];if(!y[a+48>>2]){Da(k+8|0,n);d=y[k+12>>2];y[a+44>>2]=y[k+8>>2];y[a+48>>2]=d}a:{b:{c:{d=y[a+4>>2];if(!d){break c}r=m+3240|0;d=d-1|0;i=d>>>3|0;p=(d&7)+1|0;c=y[a+24>>2];s=l>>>0>405;while(1){d:{if(B[a+8>>2]<=c>>>0){c=4}else{e:{if(!z[a+1|0]){c=y[a+60>>2];break e}if(z[h|0]){break b}if(!s){break c}c=y[a+60>>2]^ka(h,r);y[a+60>>2]=c}f:{if(c){ed(a,n);break f}c=0;g=0;g:{if(!y[a+24>>2]){h:{while(1){e=7;f=0;if((g|0)==(i|0)){break h}i:{while(1){if((e|0)>=0){if(z[h|0]){break i}if(c>>>0>=l>>>0){break c}d=ka(h,(c<<3)+m|0);c=d|c<<1&1006;f=d<<e|f;e=e-1|0;continue}break}if(B[a+48>>2]<=g>>>0){break c}w[y[a+44>>2]+g|0]=f;g=g+1|0;continue}break}if(g>>>0<i>>>0){break b}}e=0;f=0;while(1){if((e|0)==(p|0)){break g}if(z[h|0]){break b}if(c>>>0>=l>>>0){break c}d=ka(h,(c<<3)+m|0);c=d|c<<1&1006;f=d<<7-e|f;e=e+1|0;continue}}if(!y[a+40>>2]){break c}g=z[y[a+36>>2]];e=g>>>1&112;d=0;while(1){j:{if((d|0)!=(i|0)){j=d+1|0;if(j>>>0>=B[a+40>>2]){break c}g=z[j+y[a+36>>2]|0]|g<<8;c=7;f=0;while(1){if((c|0)<0){break j}if(z[h|0]){break b}if(e>>>0>=l>>>0){break c}q=ka(h,(e<<3)+m|0);e=q|(g>>>c+1&16|e<<1&1006);f=q<<c|f;c=c-1|0;continue}}d=g<<8;c=0;f=0;while(1){if((c|0)!=(p|0)){if(z[h|0]){break b}if(e>>>0>=l>>>0){break c}j=ka(h,(e<<3)+m|0);e=j|(d>>>8-c&16|e<<1&1006);f=j<<7-c|f;c=c+1|0;continue}break}if(B[a+48>>2]<=i>>>0){break c}w[y[a+44>>2]+i|0]=f;break f}if(B[a+48>>2]<=d>>>0){break c}w[y[a+44>>2]+d|0]=f;d=j;continue}}if(B[a+48>>2]<=i>>>0){break c}w[y[a+44>>2]+i|0]=f}Kb(a,n);d=y[b+16>>2];if(!d){break d}if(!(_[y[y[d>>2]+8>>2]](d)|0)){break d}y[a+24>>2]=y[a+24>>2]+1;c=3}y[a+52>>2]=c;break a}c=y[a+24>>2]+1|0;y[a+24>>2]=c;continue}}o()}c=-1}Y=k+16|0;return c|0}function $d(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=Y-80|0;Y=g;w[g+72|0]=0;y[g+68>>2]=0;i=c+31>>>3&536870908;k=E(i,d);h=yd(k,1);y[g>>2]=0;j=g+68|0;nb(j,h);Ha(g);a:{b:{if(!qa(j)){break b}j=Nb(j);h=g+56|0;y[g+60>>2]=h;y[g+56>>2]=h;y[g+64>>2]=0;y[g+48>>2]=0;y[g+52>>2]=0;l=a;y[g+32>>2]=a;y[g+36>>2]=b;y[g>>2]=c;h=e;y[g+24>>2]=h;y[g+28>>2]=f;y[g+16>>2]=0;y[g+20>>2]=0;y[g+40>>2]=j;y[g+44>>2]=k;y[g+8>>2]=0;y[g+12>>2]=0;y[g+4>>2]=d;y[g+48>>2]=i;a=se(d,0,i);if(Z|a>>>0>k>>>0){break a}e=j;while(1){if((a|0)>0){w[e|0]=0;a=a-1|0;e=e+1|0;continue}break}a=b;b=g+56|0;a=zc(na(116),l,a,b,0);if(f){b=zc(na(116),h,f,b,1);y[g+76>>2]=0;zb(a,b);Ab(g+76|0)}e=c+7>>>3|0;y[g+76>>2]=0;f=g+52|0;zb(f,a);Ab(g+76|0);c:{d:{b=y[g+52>>2];a=y[b>>2];if(!a){break d}if(!yc(a)){break d}y[b+56>>2]=-1;a=0;break c}y[b+52>>2]=0;a=na(20);y[a+16>>2]=0;y[a+8>>2]=0;y[a+12>>2]=0;w[a+4|0]=0;y[a>>2]=0;e:{if((c|d)<0|i>>>0>268435452){break e}h=i<<3;if((h|0)<(c|0)|(!(!i|(d|0)<=0|k)|(2147483616/(h>>>0)|0)<(d|0))){break e}y[a+16>>2]=i;y[a+12>>2]=d;y[a+8>>2]=c;y[g+76>>2]=j;_c(a,g+76|0)}y[g+76>>2]=0;oa(b+32|0,a);la(g+76|0);w[b+50|0]=1;a=id(b)}f:{while(1){g:{a=a&1;h:{b=y[y[g+52>>2]+56>>2];if((b|0)!=4){break h}zb(g+52|0,0);b=-1;if(!a){break h}i:{b=E(y[g+48>>2],y[g+4>>2]);if(b>>>0>B[g+44>>2]){break i}a=y[g+40>>2];if(a&3){break i}c=(b&-4)+a|0;b=4;while(1){if((a|0)==(c|0)){break h}y[a>>2]=y[a>>2]^-1;a=a+4|0;continue}}o()}j:{switch(b-3|0){case 0:break j;case 1:break g;default:break f}}a=id(y[g+52>>2]);continue}break}X(Nb(g+68|0)|0,e|0,i|0,d|0)}Ab(f);if(!y[g+64>>2]){break b}a=y[g+60>>2];b=y[a>>2];c=y[y[g+56>>2]+4>>2];y[b+4>>2]=c;y[c>>2]=b;y[g+64>>2]=0;while(1){if((g+56|0)==(a|0)){break b}b=y[a+4>>2];oc(a);a=b;continue}}ub(g+68|0);Y=g+80|0;return}o()}function Ya(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{while(1){if(a>>>0>4294967239){break b}b=y[1779];c=b;f=y[1778];a=a>>>0<=8?8:a+3&-4;c:{if(a>>>0<=127){d=(a>>>3|0)-1|0;break c}e=H(a);d=((a>>>29-e^4)-(e<<2)|0)+110|0;if(a>>>0<=4095){break c}e=((a>>>30-e^2)-(e<<1)|0)+71|0;d=e>>>0>=63?63:e}g=d;d=g&31;if((g&63)>>>0>=32){e=0;b=b>>>d|0}else{e=b>>>d|0;b=((1<<d)-1&b)<<32-d|f>>>d}if(b|e){while(1){d=e;d:{if(d|b){c=d-1|0;e=c+1|0;f=c;c=b-1|0;f=(c|0)!=-1?e:f;e=H(d^f);e=(e|0)==32?H(b^c)+32|0:e;c=63-e|0;Z=0-(e>>>0>63)|0;break d}Z=0;c=64}f=c;c=f&31;if((f&63)>>>0>=32){e=0;h=d>>>c|0}else{e=d>>>c|0;h=((1<<c)-1&d)<<32-c|b>>>c}g=f+g|0;b=g<<4;d=y[b+6088>>2];c=b+6080|0;e:{if((d|0)!=(c|0)){b=dc(d,a);if(b){break a}b=y[d+4>>2];f=y[d+8>>2];y[b+8>>2]=f;y[f+4>>2]=b;y[d+8>>2]=c;y[d+4>>2]=y[c+4>>2];y[c+4>>2]=d;y[y[d+4>>2]+8>>2]=d;g=g+1|0;b=(e&1)<<31|h>>>1;e=e>>>1|0;break e}j=y[1779];f=g&63;b=f;d=b&31;if(b>>>0>=32){b=0;c=-1>>>d|0}else{b=-1>>>d|0;c=b|(1<<d)-1<<32-d}c=c&-2;d=f&31;if(f>>>0>=32){b=c<<d;i=0}else{b=(1<<d)-1&c>>>32-d|b<<d;i=c<<d}d=b;f=0-g&63;c=f;b=c&31;if(c>>>0>=32){b=-1<<b;c=0}else{c=-1<<b;b=c|(1<<b)-1&-1>>>32-b}k=c&-2;c=f&31;if(f>>>0>=32){f=0;c=b>>>c|0}else{f=b>>>c|0;c=((1<<c)-1&b)<<32-c|k>>>c}b=c|i;Z=d|f;y[1778]=y[1778]&b;y[1779]=Z&j;b=h^1}if(b|e){continue}break}f=y[1778];c=y[1779]}e=H(c);d=63-((e|0)==32?H(f)+32|0:e)|0;f:{if(!(c|f)){g=0;break f}b=d<<4;g=y[b+6088>>2];if(!c&f>>>0<1073741824){break f}e=98;c=b+6080|0;if((c|0)==(g|0)){break f}while(1){b=dc(g,a);if(b){break a}g=y[g+8>>2];if((c|0)==(g|0)){break f}b=e;e=b-1|0;if(b){continue}break}}if(Fd(a+48|0)){continue}break}if(!g){break b}e=(d<<4)+6080|0;if((e|0)==(g|0)){break b}while(1){b=dc(g,a);if(b){break a}g=y[g+8>>2];if((e|0)!=(g|0)){continue}break}}b=0}return b}function Ld(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;c=a<<3;o=c+7136|0;i=D[c+7168>>3];if(i!=0){l=D[o>>3];m=J(l,b);b=m-l;if(b<0x10000000000000000&b>=0){d=~~b>>>0;if(G(b)>=1){c=~~(b>0?I(K(b*2.3283064365386963e-10),4294967295):L((b-+(~~b>>>0>>>0))*2.3283064365386963e-10))>>>0}else{c=0}}else{c=0}if(i<0x10000000000000000&i>=0){h=~~i>>>0;if(G(i)>=1){e=~~(i>0?I(K(i*2.3283064365386963e-10),4294967295):L((i-+(~~i>>>0>>>0))*2.3283064365386963e-10))>>>0}else{e=0}}else{e=0}a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(c){if(!h){break k}if(!e){break j}f=H(e)-H(c)|0;if(f>>>0<=31){break i}break c}if((e|0)==1|e>>>0>1){break c}Z=0;c=(d>>>0)/(h>>>0)|0;break a}if(!d){break h}if(!e|e-1&e){break g}c=c>>>ue(e)|0;Z=0;break a}if(!(h-1&h)){break f}k=(H(h)+33|0)-H(c)|0;j=0-k|0;break d}k=f+1|0;j=63-f|0;break d}Z=0;c=(c>>>0)/(e>>>0)|0;break a}f=H(e)-H(c)|0;if(f>>>0<31){break e}break c}if((h|0)==1){break b}h=ue(h);e=h&31;if((h&63)>>>0>=32){c=c>>>e|0}else{f=c>>>e|0;c=((1<<e)-1&c)<<32-e|d>>>e}Z=f;break a}k=f+1|0;j=63-f|0}f=k&63;g=f&31;if(f>>>0>=32){f=0;n=c>>>g|0}else{f=c>>>g|0;n=((1<<g)-1&c)<<32-g|d>>>g}j=j&63;g=j&31;if(j>>>0>=32){c=d<<g;d=0}else{c=(1<<g)-1&d>>>32-g|c<<g;d=d<<g}if(k){g=e-1|0;j=h-1|0;s=(j|0)!=-1?g+1|0:g;while(1){p=f<<1|n>>>31;f=n<<1|c>>>31;g=s-(p+(f>>>0>j>>>0)|0)>>31;q=g&h;n=f-q|0;f=p-((e&g)+(f>>>0<q>>>0)|0)|0;c=c<<1|d>>>31;d=r|d<<1;r=g&1;k=k-1|0;if(k){continue}break}}Z=c<<1|d>>>31;c=r|d<<1;break a}d=0;c=0}Z=c;c=d}d=Z;c=c+1|0;d=c?d:d+1|0;l=(+(c>>>0)+ +(d>>>0)*4294967296)*i+l;m=l-m}D[o>>3]=l;Q(a|0,+m)|0;a=(a|0)==2?27:(a|0)==1?26:14;c=a-1|0;l:{if(y[1780]>>>c&1){y[1782]=y[1782]|1<<c;break l}c=y[(a<<2)+4960>>2];if(c){_[c|0](a)}}}function ne(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,A=0,C=0,D=0,E=0,F=0;c=Y-48|0;Y=c;n=y[b+4>>2];t=y[b+12>>2];u=y[b+8>>2];i=y[y[b>>2]>>2];ja(c+40|0,i,y[a+24>>2]-1|0);ja(c+32|0,i,y[a+24>>2]-2|0);C=u+15528|0;l=y[c+36>>2];m=y[c+32>>2];e=y[a+24>>2];D=t>>>0>1941;p=4;a:{while(1){b:{c:{if(B[a+8>>2]>e>>>0){j=y[c+44>>2];k=y[c+40>>2];ja(c+32|0,i,e);h=y[c+36>>2];q=y[c+32>>2];y[c+40>>2]=q;y[c+44>>2]=h;d:{e:{f:{if(!z[a+1|0]){e=y[a+60>>2];break f}if(z[n|0]){break b}if(!D){break e}e=y[a+60>>2]^ka(n,C);y[a+60>>2]=e}if(e){y[c+20>>2]=j;y[c+16>>2]=k;y[c+24>>2]=q;y[c+28>>2]=h;y[c+8>>2]=q;y[c+12>>2]=h;h=y[c+20>>2];y[c>>2]=y[c+16>>2];y[c+4>>2]=h;Pa(c+8|0,c);break d}f=0;v=0;x=0;if(z[a+2|0]==1){ja(c+32|0,y[a+12>>2],y[a+24>>2]);x=y[c+32>>2];v=y[c+36>>2]}ja(c+32|0,i,y[a+24>>2]+w[a+17|0]|0);E=y[c+36>>2];F=y[c+32>>2];d=y[i+8>>2];f=!l|(d|0)<3?f:z[m|0]>>>5&1;f=!l|(d|0)<2?f:z[m|0]>>>5&2|f;f=!l|(d|0)<=0?f:z[m|0]>>>5&4|f;g=0;g=!j|(d|0)<3?g:z[k|0]>>>5&1;g=!j|(d|0)<2?g:z[k|0]>>>5&2|g;g=!j|(d|0)<=0?g:z[k|0]>>>5&4|g;s=0;e=0;while(1){if(B[a+4>>2]<=e>>>0){break d}g:{h:{if(z[a+2|0]==1){if(ia(y[y[a+12>>2]+8>>2],e,x,v)){break h}}d=ia(d,w[a+16|0]+e|0,F,E);if(z[n|0]){break b}d=g<<4|f<<9|d<<3|s;if(d>>>0>=t>>>0){break e}r=ka(n,(d<<3)+u|0);d=y[i+8>>2];if(!r){break h}La(d,e,q,h,1);d=y[i+8>>2];r=1;break g}r=0}A=e+3|0;f=ia(d,A,m,l)|f<<1&14;g=ia(d,A,k,j)|g<<1&30;e=e+1|0;s=s<<1&6|r;continue}}o()}h=y[b+16>>2];if(!h){break c}if(!(_[y[y[h>>2]+8>>2]](h)|0)){break c}y[a+24>>2]=y[a+24>>2]+1;p=3}y[a+52>>2]=p;break a}e=y[a+24>>2]+1|0;y[a+24>>2]=e;m=k;l=j;continue}break}p=-1}Y=c+48|0;return p|0}function le(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,A=0,C=0,D=0,E=0;c=Y-48|0;Y=c;l=y[b+4>>2];s=y[b+12>>2];t=y[b+8>>2];i=y[y[b>>2]>>2];ja(c+40|0,i,y[a+24>>2]-1|0);ja(c+32|0,i,y[a+24>>2]-2|0);A=t+1832|0;m=y[c+36>>2];n=y[c+32>>2];d=y[a+24>>2];C=s>>>0>229;a:{while(1){b:{c:{if(B[a+8>>2]<=d>>>0){d=4}else{j=y[c+44>>2];k=y[c+40>>2];ja(c+32|0,i,d);f=y[c+36>>2];p=y[c+32>>2];y[c+40>>2]=p;y[c+44>>2]=f;d:{e:{f:{if(!z[a+1|0]){d=y[a+60>>2];break f}if(z[l|0]){break b}if(!C){break e}d=y[a+60>>2]^ka(l,A);y[a+60>>2]=d}if(d){y[c+20>>2]=j;y[c+16>>2]=k;y[c+24>>2]=p;y[c+28>>2]=f;y[c+8>>2]=p;y[c+12>>2]=f;f=y[c+20>>2];y[c>>2]=y[c+16>>2];y[c+4>>2]=f;Pa(c+8|0,c);break d}g=0;u=0;v=0;if(z[a+2|0]==1){ja(c+32|0,y[a+12>>2],y[a+24>>2]);v=y[c+32>>2];u=y[c+36>>2]}ja(c+32|0,i,y[a+24>>2]+w[a+17|0]|0);D=y[c+36>>2];E=y[c+32>>2];e=y[i+8>>2];g=!m|(e|0)<2?g:z[n|0]>>>6&1;g=!m|(e|0)<=0?g:z[n|0]>>>6&2|g;h=0;h=!j|(e|0)<2?h:z[k|0]>>>6&1;h=!j|(e|0)<=0?h:z[k|0]>>>6&2|h;r=0;d=0;while(1){if(B[a+4>>2]<=d>>>0){break d}g:{h:{if(z[a+2|0]==1){if(ia(y[y[a+12>>2]+8>>2],d,v,u)){break h}}e=ia(e,w[a+16|0]+d|0,E,D);if(z[l|0]){break b}e=h<<3|g<<7|e<<2|r;if(e>>>0>=s>>>0){break e}q=ka(l,(e<<3)+t|0);e=y[i+8>>2];if(!q){break h}La(e,d,p,f,1);e=y[i+8>>2];q=1;break g}q=0}x=d+2|0;g=ia(e,x,n,m)|g<<1&6;h=ia(e,x,k,j)|h<<1&14;d=d+1|0;r=r<<1&2|q;continue}}o()}f=y[b+16>>2];if(!f){break c}if(!(_[y[y[f>>2]+8>>2]](f)|0)){break c}y[a+24>>2]=y[a+24>>2]+1;d=3}y[a+52>>2]=d;break a}d=y[a+24>>2]+1|0;y[a+24>>2]=d;n=k;m=j;continue}break}d=-1}Y=c+48|0;return d|0}function ec(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,A=0,C=0,D=0,E=0;k=((b&536870911)<<3|a>>>29)&-8;m=e;n=g;p=d;q=f;r=1;e=-1;a:{b:{c:while(1){j=r&1;u=j?326:325;v=j?1392:1056;w=j?325:326;x=j?1056:1392;d:while(1){A=e+1|0;t=e>>>3|0;C=t+q|0;D=1<<((e^-1)&7);d=y[c>>2];E=(e|0)<0;while(1){if(d>>>0>=k>>>0){break b}if(E){f=1}else{if(n>>>0<=t>>>0){break a}f=(z[C|0]&D)!=0}d=h;g=d;l=f^1;i=cc(q,n,d,A,l);s=d;e:{if((i|0)>=(d|0)){break e}f:{if((f|0)==(j|0)){l=f;break f}i=cc(q,n,h,i+1|0,f)}s=h;if((d|0)<=(i|0)){break e}g=i;s=cc(q,n,d,i+1|0,l)}d=s;g:{f=0;h:{if(Ka(a,b,c)){break h}if(B[c>>2]>=k>>>0){break b}i=Ka(a,b,c);if(B[c>>2]>=k>>>0){break b}l=Ka(a,b,c);f=l?1:-1;if(i){break h}if(l){d=0;while(1){f=bc(x,w,a,b,c);d=f+d|0;if((f|0)>63){continue}break}d=(e>>>31|0)+d|0;if((d|0)<0){break b}f=d+e|0;if(!j){lb(p,m,h,e,f)}d=0;while(1){e=bc(v,u,a,b,c);d=e+d|0;if((e|0)>63){continue}break}if((d|0)<0){break b}e=d+f|0;if(j){lb(p,m,h,f,e)}if((e|0)<(h|0)){continue d}break b}if(B[c>>2]>=k>>>0){break b}if(Ka(a,b,c)){if(!j){lb(p,m,h,e,d)}e=d;if((d|0)<(h|0)){continue d}break b}if(B[c>>2]>=k>>>0){break b}d=Ka(a,b,c);if(B[c>>2]>=k>>>0){break b}i=Ka(a,b,c);f=i?2:-2;if(d){break h}d=y[c>>2];if(!i){break g}if(d>>>0>=k>>>0){break b}f=Ka(a,b,c)?3:-3}d=f+g|0;if(!j){lb(p,m,h,e,d)}if((d|0)<=(e|0)|(d|0)>=(h|0)){break b}r=r^1;e=d;continue c}if(d>>>0>=k>>>0){break b}f=Ka(a,b,c);d=y[c>>2];if(f){d=d+3|0;y[c>>2]=d;continue}break}break}break}y[c>>2]=d+5}return}o()}function uc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0;f=Y-32|0;Y=f;m=xa(y[a>>2],y[a+4>>2]);y[f+28>>2]=m;a:{if(!qa(m)){break a}Qa(m,z[a+20|0]);b:{while(1){if(!k&l>>>0>=B[a+36>>2]|k){y[f+28>>2]=0;d=m;break a}d=y[b>>2];g=y[b+4>>2];e=0;y[f+24>>2]=0;y[f+16>>2]=0;y[f+20>>2]=0;c=g-d|0;h=c>>2;c:{d:{if((d|0)==(g|0)){j=0;break d}if(h>>>0>=536870912){break c}j=na(c<<1);y[f+16>>2]=j;e=(h<<3)+j|0;y[f+24>>2]=e;c=j;while(1){if((c|0)!=(e|0)){y[c>>2]=0;y[c+4>>2]=0;c=c+8|0;continue}break}y[f+20>>2]=e}if(h>>>0>e-j>>3>>>0){break b}c=j;while(1){if((d|0)==(g|0)){e:{c=y[a+44>>2];d=se(l,k,A[a+48>>1]);e=c+d|0;q=e;c=Z+(c>>31)|0;r=d>>>0>e>>>0?c+1|0:c;c=y[a+40>>2];d=se(l,k,A[a+50>>1]);e=c+d|0;s=e;c=Z+(c>>31)|0;t=d>>>0>e>>>0?c+1|0:c;g=0;e=0;f:while(1){if(!e&B[a+32>>2]<=g>>>0|e){break e}i=y[b>>2];p=y[b+4>>2]-i>>2;c=0;d=0;while(1){h=c&255;if(h>>>0>=p>>>0){c=y[a+12>>2]-1|0;h=y[y[y[a+16>>2]>>2]+((c>>>0<d>>>0?c:d)<<2)>>2];d=se(g,e,A[a+48>>1]);c=d+s|0;i=Z+t|0;d=c>>>0<d>>>0?i+1|0:i;i=se(g,e,A[a+50>>1]);p=q-i|0;u=(d&255)<<24|c>>>8;n=d>>8;c=r-(Z+(i>>>0>q>>>0)|0)|0;d=c>>8;Hb(h,m,u,n,(c&255)<<24|p>>>8,d,y[a+24>>2]);g=g+1|0;e=g?e:e+1|0;continue f}else{n=(h<<3)+j|0;d=d|ia(y[y[i+(h<<2)>>2]+8>>2],g,y[n>>2],y[n+4>>2])<<h;c=c+1|0;continue}}}}}else{ja(f+8|0,y[d>>2],l);e=y[f+12>>2];y[c>>2]=y[f+8>>2];y[c+4>>2]=e;c=c+8|0;d=d+4|0;continue}break}l=l+1|0;k=l?k:k+1|0;ya(f+16|0);continue}break}Ba()}o()}la(f+28|0);Y=f+32|0;return d}function sb(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;f=Y-16|0;Y=f;a:{j=xa(d,e);if(!qa(j)){break a}if(!qa(a)|(b|0)<0|(c|0)<0|y[a+8>>2]<=(b|0)){break a}g=y[a+12>>2];if((g|0)<=(c|0)){break a}b:{if(!(b&7)){d=y[a+16>>2];b=b>>>3|0;if(d>>>0<=b>>>0){break b}d=d-b|0;e=y[j+16>>2];d=d>>>0<e>>>0?d:e;if(!d){break b}e=0;h=g-c|0;i=y[j+12>>2];h=(h|0)<(i|0)?h:i;h=(h|0)>0?h:0;while(1){if((e|0)==(h|0)){break a}ja(f+8|0,a,c+e|0);i=y[f+12>>2];if(i>>>0<b>>>0|d>>>0>i-b>>>0){break b}i=y[f+8>>2];ja(f,j,e);if(d>>>0>B[f+4>>2]){break b}if(d){p(y[f>>2],b+i|0,d)}e=e+1|0;continue}}h=b>>>5|0;e=y[a+16>>2]>>>2|0;if(h>>>0>=e>>>0){break b}d=y[j+16>>2]>>>2|0;if(!d){break b}e=e-h|0;i=d>>>0>e>>>0?e:d;q=b&31;d=g-c|0;e=y[j+12>>2];d=(d|0)<(e|0)?d:e;r=(d|0)>0?d:0;s=b^-1;c:while(1){if((l|0)==(r|0)){break a}d=f+8|0;ja(d,a,c+l|0);e=y[f+8>>2];if(e&3){break b}g=y[f+12>>2]>>>2|0;if(g>>>0<h>>>0){break b}y[f+12>>2]=g-h;y[f+8>>2]=e+(h<<2);Ca(f,j,l);if(B[f+4>>2]<i>>>0){break b}e=y[f>>2];g=_a(d);d=y[f+8>>2];n=y[f+12>>2];k=i>>>0>n>>>0?n:i;if(k>>>0>B[f+12>>2]){break b}k=(k<<2)+e|0;g=te(g,24)&16711935|te(g&16711935,8);while(1)if((e|0)==(k|0)){if(i>>>0>n>>>0){d=g<<q;t=k,u=te(d&16711935,8)|te(d,24)&16711935,y[t>>2]=u}l=l+1|0;continue c}else{m=g<<b;g=y[d>>2];g=te(g&16711935,8)|te(g,24)&16711935;m=m|g>>>1>>>s;t=e,u=te(m&16711935,8)|te(m,24)&16711935,y[t>>2]=u;d=d+4|0;e=e+4|0;continue}}}o()}Y=f+16|0;return j}function je(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,x=0,A=0;c=Y-48|0;Y=c;i=y[b+4>>2];q=y[b+12>>2];r=y[b+8>>2];h=y[y[b>>2]>>2];ja(c+40|0,h,y[a+24>>2]-1|0);u=r+3240|0;d=y[a+24>>2];v=q>>>0>405;j=4;a:{while(1){b:{c:{if(B[a+8>>2]>d>>>0){k=y[c+44>>2];l=y[c+40>>2];ja(c+32|0,h,d);f=y[c+36>>2];m=y[c+32>>2];y[c+40>>2]=m;y[c+44>>2]=f;d:{e:{f:{if(!z[a+1|0]){d=y[a+60>>2];break f}if(z[i|0]){break b}if(!v){break e}d=y[a+60>>2]^ka(i,u);y[a+60>>2]=d}if(d){y[c+20>>2]=k;y[c+16>>2]=l;y[c+24>>2]=m;y[c+28>>2]=f;y[c+8>>2]=m;y[c+12>>2]=f;f=y[c+20>>2];y[c>>2]=y[c+16>>2];y[c+4>>2]=f;Pa(c+8|0,c);break d}g=0;s=0;t=0;if(z[a+2|0]==1){ja(c+32|0,y[a+12>>2],y[a+24>>2]);t=y[c+36>>2];s=y[c+32>>2]}ja(c+32|0,h,y[a+24>>2]+w[a+17|0]|0);x=y[c+36>>2];A=y[c+32>>2];e=y[h+8>>2];g=!k|(e|0)<2?g:z[l|0]>>>6&1;g=!k|(e|0)<=0?g:z[l|0]>>>6&2|g;p=0;d=0;while(1){if(B[a+4>>2]<=d>>>0){break d}g:{h:{if(z[a+2|0]==1){if(ia(y[y[a+12>>2]+8>>2],d,s,t)){break h}}e=ia(e,w[a+16|0]+d|0,A,x);if(z[i|0]){break b}e=g<<5|e<<4|p;if(e>>>0>=q>>>0){break e}n=ka(i,(e<<3)+r|0);e=y[h+8>>2];if(!n){break h}La(e,d,m,f,1);e=y[h+8>>2];n=1;break g}n=0}g=ia(e,d+2|0,l,k)|g<<1&30;d=d+1|0;p=p<<1&14|n;continue}}o()}f=y[b+16>>2];if(!f){break c}if(!(_[y[y[f>>2]+8>>2]](f)|0)){break c}y[a+24>>2]=y[a+24>>2]+1;j=3}y[a+52>>2]=j;break a}d=y[a+24>>2]+1|0;y[a+24>>2]=d;continue}break}j=-1}Y=c+48|0;return j|0}function Hd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=y[b+56>>2];d=y[b+60>>2];f=b+48|0;Hc(c,d,f);h=((d&536870911)<<3|c>>>29)&-8;if(h>>>0<=B[b+48>>2]){y[a>>2]=0;y[a+4>>2]=0;return}Ic(y[b+64>>2],y[b+68>>2]);i=b- -64|0;c=y[b+44>>2];a:{if((c|0)<0){e=y[b+64>>2];c=y[b+68>>2]-e|0;d=0;l=c;g=y[b+76>>2];c=y[b+80>>2]-g|0;ec(y[b+56>>2],y[b+60>>2],f,e|d,l,d|g,c,y[b+4>>2]);Gc(b+76|0,i);break a}if(!c){d=y[b+64>>2];c=y[b+68>>2]-d|0;Fc(y[b+56>>2],y[b+60>>2],f,d,c,y[b+4>>2]);break a}e=Ka(y[b+56>>2],y[b+60>>2],f);g=y[b+64>>2];c=y[b+68>>2]-g|0;d=y[b+56>>2];j=y[b+60>>2];b:{if(e){Fc(d,j,f,g,c,y[b+4>>2]);break b}l=d;d=0;e=c;k=y[b+76>>2];c=y[b+80>>2]-k|0;ec(l,j,f,d|g,e,d|k,c,y[b+4>>2])}Gc(b+76|0,i)}if(z[b+53|0]==1){Hc(y[b+56>>2],y[b+60>>2],f)}c:{d:{e:{if(z[b+52|0]!=1){break e}d=y[f>>2];if(h>>>0<=d>>>0){break e}e=d+7&-8;i=y[b+56>>2];g=y[b+60>>2];while(1){c=d>>>3|0;h=c+i|0;j=1<<((d^-1)&7);k=c>>>0<g>>>0;c=1;f:{while(1){if(!c|d>>>0>=e>>>0){break f}if(!k){break d}if(z[h|0]&j){c=0;w[b+52|0]=0;continue}break}d=d+1|0;continue}break}if(!c){break e}y[f>>2]=e}c=y[b+64>>2];if(!z[b+54|0]){d=y[b+68>>2]-c|0;break c}if(c&3){break d}d=y[b+68>>2]-c|0;e=c+(d&-4)|0;b=c;while(1){if((b|0)==(e|0)){break c}y[b>>2]=y[b>>2]^-1;b=b+4|0;continue}}o()}y[a+4>>2]=d;y[a>>2]=c}function hd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=Y-32|0;Y=d;i=y[a+24>>2];y[d+16>>2]=0;a:{b:{switch(z[a+3|0]){case 0:c=xd(a)?3:4;break a;case 1:c=wd(a)?5:6;break a;case 2:c=Qb(a)?7:8;break a;default:break b}}c=Qb(a)?9:10}e=Y-48|0;Y=e;y[e+24>>2]=0;if(c){y[e+16>>2]=0;y[e+12>>2]=c;y[e+8>>2]=2600;g=e+8|0;y[e+24>>2]=g}h=e+8|0;c:{if((h|0)==(d|0)){break c}c=y[d+16>>2];if((g|0)==(h|0)){if((d|0)==(c|0)){f=e+32|0;_[y[y[g>>2]+12>>2]](g,f);c=y[e+24>>2];_[y[y[c>>2]+16>>2]](c);y[e+24>>2]=0;c=y[d+16>>2];_[y[y[c>>2]+12>>2]](c,h);c=y[d+16>>2];_[y[y[c>>2]+16>>2]](c);y[d+16>>2]=0;y[e+24>>2]=h;_[y[y[e+32>>2]+12>>2]](f,d);_[y[y[e+32>>2]+16>>2]](f);y[d+16>>2]=d;break c}_[y[y[g>>2]+12>>2]](g,d);c=y[e+24>>2];_[y[y[c>>2]+16>>2]](c);y[e+24>>2]=y[d+16>>2];y[d+16>>2]=d;break c}if((d|0)==(c|0)){f=e+8|0;_[y[y[c>>2]+12>>2]](c,f);c=y[d+16>>2];_[y[y[c>>2]+16>>2]](c);y[d+16>>2]=y[e+24>>2];y[e+24>>2]=f;break c}y[e+24>>2]=c;y[d+16>>2]=g}gd(e+8|0);Y=e+48|0;c=y[y[b>>2]>>2];f=y[d+16>>2];y[d+28>>2]=b;if(f){f=_[y[y[f>>2]+24>>2]](f,a,d+28|0)|0;y[a+64>>2]=0;y[a+52>>2]=f;b=y[c+8>>2];y[a+68>>2]=i;y[a+72>>2]=b;y[a+76>>2]=y[a+24>>2];if((f|0)==4){y[a+24>>2]=0}gd(d);Y=d+32|0;return f}a=Fb(4);y[a>>2]=5228;P(a|0,5240,11);o()}function hb(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0;d=Y-32|0;Y=d;h=xa(y[a+4>>2],y[a+8>>2]);y[d+8>>2]=h;Da(d,h);a:{l=y[d+4>>2];if(!l){oa(b,0);y[a+52>>2]=-1;break a}b:{f=y[h+16>>2];if((f|0)<0|!f){break b}j=y[c+12>>2]+(y[c+8>>2]<<3)|0;i=y[a+8>>2];n=y[a+4>>2];q=y[c>>2];r=y[c+4>>2];k=y[d>>2];y[d+20>>2]=0;y[d+12>>2]=0;y[d+16>>2]=0;g=d+12|0;y[d+24>>2]=g;jc(g,f);e=y[d+16>>2];g=f+e|0;while(1){if((e|0)!=(g|0)){w[e|0]=255;e=e+1|0;continue}break}w[d+28|0]=1;y[d+16>>2]=g;fd(d+24|0);m=y[d+12>>2];g=y[d+16>>2];y[d+24>>2]=j;j=0;s=(i|0)>0?i:0;e=0;g=g-m|0;t=e|m;while(1){if((j|0)!=(s|0)){i=k;e=f;if(l>>>0<f>>>0){break b}while(1){if((e|0)>0){w[i|0]=255;e=e-1|0;i=i+1|0;continue}break}ec(q,r,d+24|0,k|u,f,t,g,n);if(f>>>0>g>>>0){break b}if(f){p(m,k,f)}j=j+1|0;l=l-f|0;k=f+k|0;continue}break}f=y[d+24>>2];g=d+12|0;ya(g);y[c+12>>2]=f&7;y[c+8>>2]=f>>>3;Da(g,h);e=y[d+12>>2];c=e+y[d+16>>2]|0;while(1)if((c|0)==(e|0)){y[a+64>>2]=0;y[a+52>>2]=4;c=y[h+8>>2];y[a+68>>2]=0;y[a+72>>2]=c;y[a+76>>2]=y[h+12>>2];y[d+8>>2]=0;oa(b,h);break a}else{w[e|0]=z[e|0]^-1;e=e+1|0;continue}}o()}la(d+8|0);Y=d+32|0}function ae(a,b,c,d,e,f,g,h,i,j){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0;k=Y-16|0;Y=k;l=i?i:c;a:{if((l|0)<=0){break a}j=j?j:d;if((j|0)<=0|(j|l)>>>0>65535){break a}i=na(88);y[i+40>>2]=0;y[i+32>>2]=-1;y[i+36>>2]=0;y[i+20>>2]=1;y[i+24>>2]=1;y[i+16>>2]=j;y[i+12>>2]=l;y[i+8>>2]=j;y[i+4>>2]=l;y[i+56>>2]=a;y[i+60>>2]=b;w[i+54|0]=(h|0)!=0;w[i+53|0]=(f|0)!=0;w[i+52|0]=(g|0)!=0;y[i+48>>2]=0;y[i+44>>2]=e;y[i>>2]=2e3;a=l+31>>>3&16380;y[i+28>>2]=a;od(i- -64|0,a);od(i+76|0,y[i+28>>2]);e=c+7>>>3|0;W(E(e,d)|0);a=0;while(1){b:{if((a|0)==(d|0)){break b}c:{j=y[i+32>>2];b=a+1|0;if((j|0)==(b|0)){j=y[i+40>>2];c=y[i+36>>2];break c}d:{if(!((j|0)>=0&(a|0)>=(j|0))){j=0;if(!(_[y[y[i>>2]+12>>2]](i)|0)){break b}c=0;break d}c=1}while(1){if(!c){y[i+32>>2]=j;c=1;continue}e:{if((a|0)>(j|0)){_[y[y[i>>2]+16>>2]](k+8|0,i);j=y[i+32>>2]+1|0;break e}_[y[y[i>>2]+16>>2]](k+8|0,i);j=y[k+12>>2];c=y[k+8>>2];y[i+36>>2]=c;y[i+40>>2]=j;y[i+32>>2]=y[i+32>>2]+1;break c}c=0;continue}}if(!j){break b}V(c|0,e|0,E(a,e)|0);a=b;continue}break}_[y[y[i>>2]+4>>2]](i)}Y=k+16|0}function Fd(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=y[1508];c=a+7&-8;a=c+7|0;d=a>>>0<7?1:d;e=a&-8;a=e+b|0;a:{b:{if(!(a>>>0<e>>>0?d+1|0:d)){if(a>>>0<=$()<<16>>>0){break b}if(R(a|0)|0){break b}}y[1516]=48;b=-1;break a}y[1508]=a}d=b;if((d|0)!=-1){a=d+c|0;y[a-4>>2]=16;f=a-16|0;y[f>>2]=16;b=y[1776];if(b){e=y[b+8>>2]}else{e=0}c:{d:{if((e|0)==(d|0)){e=y[d-4>>2]&-2;g=d-e|0;h=y[g-4>>2];y[b+8>>2]=a;b=h&-2;a=g-b|0;if(y[(a+y[a>>2]|0)-4>>2]&1){f=y[a+4>>2];g=y[a+8>>2];y[f+8>>2]=g;y[g+4>>2]=f;b=(b+(c+e|0)|0)-16|0;y[a>>2]=b;break c}a=d-16|0;break d}y[d>>2]=16;y[d+8>>2]=a;y[d+4>>2]=b;y[d+12>>2]=16;y[1776]=d;a=d+16|0}b=f-a|0;y[a>>2]=b}y[((b&-4)+a|0)-4>>2]=b|1;c=y[a>>2]-8|0;e:{if(c>>>0<=127){b=(c>>>3|0)-1|0;break e}e=H(c);b=((c>>>29-e^4)-(e<<2)|0)+110|0;if(c>>>0<=4095){break e}b=((c>>>30-e^2)-(e<<1)|0)+71|0;b=b>>>0>=63?63:b}c=b<<4;y[a+4>>2]=c+6080;c=c+6088|0;y[a+8>>2]=y[c>>2];y[c>>2]=a;y[y[a+8>>2]+4>>2]=a;c=y[1779];a=b&31;if((b&63)>>>0>=32){b=1<<a;e=0}else{e=1<<a;b=e-1&1>>>32-a}y[1778]=e|y[1778];y[1779]=b|c}return(d|0)!=-1}function Bb(a,b){var c=0,d=0,e=0;c=Y+-64|0;Y=c;d=y[a>>2];e=y[d-8>>2];d=y[d-4>>2];a:{if(y[d+4>>2]==y[b+4>>2]){a=e?0:a;break a}e=a+e|0;if((e|0)<=(a|0)){y[c+16>>2]=0;y[c+20>>2]=0;y[c+12>>2]=b;y[c+8>>2]=a;y[c+4>>2]=d;y[c+24>>2]=0;y[c+28>>2]=0;y[c+32>>2]=0;y[c+36>>2]=0;y[c+40>>2]=0;y[c+44>>2]=0;y[c+48>>2]=0;y[c+60>>2]=0;y[c+52>>2]=1;y[c+56>>2]=16777216;_[y[y[d>>2]+20>>2]](d,c+4|0,e,e,1,0);if(y[c+28>>2]){break a}}y[c+16>>2]=0;y[c+20>>2]=0;y[c+12>>2]=5336;y[c+8>>2]=a;y[c+4>>2]=b;y[c+24>>2]=0;y[c+28>>2]=0;y[c+32>>2]=0;y[c+36>>2]=0;y[c+40>>2]=0;y[c+44>>2]=0;y[c+48>>2]=0;y[c+52>>2]=0;a=0;w[c+55|0]=0;w[c+56|0]=0;w[c+57|0]=0;w[c+58|0]=0;y[c+60>>2]=0;w[c+59|0]=1;_[y[y[d>>2]+24>>2]](d,c+4|0,e,1,0);b:{switch(y[c+40>>2]){case 0:a=y[c+44>>2]==1?y[c+32>>2]==1?y[c+36>>2]==1?y[c+24>>2]:0:0:0;break a;case 1:break b;default:break a}}if(y[c+28>>2]!=1){if(y[c+44>>2]|y[c+32>>2]!=1|y[c+36>>2]!=1){break a}}a=y[c+20>>2]}Y=c- -64|0;return a}function ud(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;d=Y-32|0;Y=d;a:{b:{c:{d:{e:{c=y[a+4>>2];if(c>>>0<b>>>0){g=b-c|0;f=y[a+8>>2];e=f<<5;if(!(g>>>0>e>>>0|c>>>0>e-g>>>0)){y[a+4>>2]=b;e=c&31;b=y[a>>2]+(c>>>3&536870908)|0;break b}y[d+16>>2]=0;y[d+8>>2]=0;y[d+12>>2]=0;if((b|0)<0){break e}c=2147483647;if(e>>>0<=1073741822){e=f<<6;b=b+31&-32;c=b>>>0<e>>>0?e:b;if((c|0)<0){break e}}e=(c-1>>>5|0)+1|0;b=na(e<<2);y[d+24>>2]=0;y[d+28>>2]=0;y[d+8>>2]=b;y[d+20>>2]=0;y[d+16>>2]=e;y[d+24>>2]=0;Ob(d+20|0);e=y[a+4>>2];y[d+12>>2]=e+g;if((e|0)<=0){break d}f=y[a>>2];h=e>>>5|0;c=h<<2;if(!(!h|!c)){p(b,f,c)}b=(h<<2)+b|0;e=e&31;if(!e){break d}f=y[c+f>>2];c=y[b>>2];y[b>>2]=(f^c)&-1>>>32-e^c;break c}y[a+4>>2]=b;break a}Ba();o()}e=0}c=y[a>>2];y[a>>2]=y[d+8>>2];y[d+8>>2]=c;c=y[a+4>>2];y[a+4>>2]=y[d+12>>2];y[d+12>>2]=c;c=y[a+8>>2];y[a+8>>2]=y[d+16>>2];y[d+16>>2]=c;Ob(d+8|0)}Xc(b,e,g);Pb(d+20|0,b,e,g)}Y=d+32|0}function cc(a,b,c,d,e){var f=0,g=0,h=0,i=0;a:{b:{if((c|0)<=(d|0)){break b}h=e-1|0;c:{f=(d|0)/8|0;g=f<<3;if((g|0)!=(d|0)){if(b>>>0<=f>>>0){break a}f=(z[a+f|0]^h)&255>>>d-g;if(f){break c}f=(d+7|0)/8|0}g=(c+7|0)/8|0;d:{if((c|0)<57){break d}i=g-8|0;if((i|0)<=(f|0)){break d}d=e?1718:1726;while(1){if((f|0)>=(i|0)){break d}if(b>>>0<f>>>0|b-f>>>0<=7){break a}e=a+f|0;if((z[d|0]|z[d+1|0]<<8|(z[d+2|0]<<16|z[d+3|0]<<24))!=(z[e|0]|z[e+1|0]<<8|(z[e+2|0]<<16|z[e+3|0]<<24))|(z[e+4|0]|z[e+5|0]<<8|(z[e+6|0]<<16|z[e+7|0]<<24))!=(z[d+4|0]|z[d+5|0]<<8|(z[d+6|0]<<16|z[d+7|0]<<24))){break d}f=f+8|0;continue}}b=b>>>0<f>>>0?f:b;d=(f|0)>(g|0)?f:g;e=h&255;while(1){if((d|0)==(f|0)){break b}if((b|0)==(f|0)){break a}g=z[a+f|0];if((g|0)!=(e|0)){a=z[((g^h)&255)+1734|0]+(f<<3)|0;return(a|0)>(c|0)?c:a}else{f=f+1|0;continue}}}c=g+z[f+1734|0]|0}return c}o()}function dc(a,b){var c=0,d=0,e=0,f=0,g=0;e=a+4|0;d=e+7&-8;c=y[a>>2];if(d+b>>>0<=(c+a|0)-4>>>0){f=y[a+4>>2];g=y[a+8>>2];y[f+8>>2]=g;y[g+4>>2]=f;if((d|0)!=(e|0)){d=d-e|0;f=a-(y[a-4>>2]&-2)|0;e=d+y[f>>2]|0;y[f>>2]=e;y[(f+(e&-4)|0)-4>>2]=e;a=a+d|0;c=c-d|0;y[a>>2]=c}a:{if(b+24>>>0<=c>>>0){e=a+b|0;c=(c-b|0)-8|0;y[e+8>>2]=c;g=e+8|0;y[(g+(c&-4)|0)-4>>2]=c|1;d=y[e+8>>2]-8|0;b:{if(d>>>0<=127){c=(d>>>3|0)-1|0;break b}f=H(d);c=((d>>>29-f^4)-(f<<2)|0)+110|0;if(d>>>0<=4095){break b}c=((d>>>30-f^2)-(f<<1)|0)+71|0;c=c>>>0>=63?63:c}d=c<<4;y[e+12>>2]=d+6080;d=d+6088|0;y[e+16>>2]=y[d>>2];y[d>>2]=g;y[y[e+16>>2]+4>>2]=g;d=y[1778];f=y[1779];e=c&31;if((c&63)>>>0>=32){c=1<<e;g=0}else{g=1<<e;c=g-1&1>>>32-e}y[1778]=g|d;y[1779]=c|f;c=b+8|0;y[a>>2]=c;b=(c&-4)+a|0;break a}b=a+c|0}y[b-4>>2]=c;a=a+4|0}else{a=0}return a}function ma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){b=a-4|0;f=y[b>>2];c=f;d=b;e=y[a-8>>2];a=e&-2;if((a|0)!=(e|0)){d=b-a|0;c=y[d+4>>2];e=y[d+8>>2];y[c+8>>2]=e;y[e+4>>2]=c;c=a+f|0}a=b+f|0;b=y[a>>2];if((b|0)!=y[(a+b|0)-4>>2]){f=y[a+4>>2];a=y[a+8>>2];y[f+8>>2]=a;y[a+4>>2]=f;c=b+c|0}y[d>>2]=c;y[((c&-4)+d|0)-4>>2]=c|1;b=y[d>>2]-8|0;a:{if(b>>>0<=127){a=(b>>>3|0)-1|0;break a}c=H(b);a=((b>>>29-c^4)-(c<<2)|0)+110|0;if(b>>>0<=4095){break a}a=((b>>>30-c^2)-(c<<1)|0)+71|0;a=a>>>0>=63?63:a}b=a<<4;y[d+4>>2]=b+6080;b=b+6088|0;y[d+8>>2]=y[b>>2];y[b>>2]=d;y[y[d+8>>2]+4>>2]=d;b=y[1778];c=y[1779];d=a&31;if((a&63)>>>0>=32){a=1<<d;e=0}else{e=1<<d;a=e-1&1>>>32-d}y[1778]=e|b;y[1779]=a|c}}function ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;d=Y-32|0;Y=d;g=(b<<3)+a|0;b=a;while(1){if((b|0)==(g|0)){a:{b=f+1|0;i=md(d+20|0,b);j=md(d+8|0,b);h=y[i>>2];b=a;while(1)if((b|0)==(g|0)){y[h>>2]=0;k=((f|0)>0?f:0)+1|0;l=y[j>>2];c=1;while(1){if((c|0)==(k|0)){c=k;break a}b=c<<2;e=b-4|0;y[d+4>>2]=y[e+l>>2];w[d|0]=1;if(z[Tb(Na(d,y[e+h>>2]))|0]!=1){break a}e=y[d+4>>2];y[b+l>>2]=e;b=a;while(1){if((b|0)!=(g|0)){if(y[b>>2]==(c|0)){y[b+4>>2]=e;e=e+1|0}b=b+8|0;continue}break}c=c+1|0;continue}}else{c=(y[b>>2]<<2)+h|0;y[c>>2]=y[c>>2]+1;b=b+8|0;continue}}}else{c=y[b>>2];f=(c|0)>(f|0)?c:f;b=b+8|0;continue}break}ya(j);ya(i);Y=d+32|0;return(c|0)>(f|0)}function za(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=Y-16|0;Y=e;y[e+12>>2]=0;w[e+8|0]=1;h=-1;a:{b:while(1){if((wb(y[a>>2],e+4|0)|0)==-1){break a}d=Tb(e+8|0);if(z[d|0]!=1){break a}g=y[e+12>>2]|y[e+4>>2];f=(g|0)>=0;y[d>>2]=f;g=f?g:0;y[d+4>>2]=g;if(f){i=i+1|0;f=y[b+4>>2];d=0;while(1){if((d|0)==(f|0)){continue b}j=y[b+8>>2]+(d<<3)|0;if(y[j>>2]!=(i|0)|y[j+4>>2]!=(g|0)){d=d+1|0;continue}else{if((f-1|0)==(d|0)){h=1;if(w[b+1|0]&1){break a}}h=-1;f=y[a>>2];a=d<<2;if((Ia(f,y[a+y[b+20>>2]>>2],e+4|0)|0)==-1){break a}h=0;f=y[a+y[b+32>>2]>>2];a=y[e+4>>2];y[c>>2]=f+((y[b+4>>2]+(z[b+1|0]?-3:-2)|0)==(d|0)?0-a|0:a);break a}}}break}o()}Y=e+16|0;return h}function lb(a,b,c,d,e){var f=0,g=0,h=0;a:{d=(d|0)>0?d:0;f=(e|0)>=0?(c|0)<(e|0)?c:e:0;if((d|0)>=(f|0)){break a}b:{h=d>>>3|0;if(h>>>0>=b>>>0){break b}e=d&7;c=a+h|0;g=f-1|0;f=g>>>3|0;if((f|0)==(h|0)){a=g&7;while(1){if(a>>>0<e>>>0){break a}w[c|0]=z[c|0]+(-1<<7-e);e=e+1|0;continue}}d=z[c|0];while(1)if((e|0)==8){w[c|0]=d;if(b>>>0<=f>>>0){break b}d=(g&7)+1|0;g=a+f|0;c=z[g|0];e=0;while(1)if((d|0)==(e|0)){w[g|0]=c;c=h+1|0;if(c>>>0>=f>>>0){break a}e=f+(h^-1)|0;if(e>>>0>b-c>>>0){break b}c=a+c|0;while(1){if((e|0)<=0){break a}w[c|0]=0;e=e-1|0;c=c+1|0;continue}}else{c=(-1<<7-e)+c|0;e=e+1|0;continue}}else{d=(-1<<7-e)+d|0;e=e+1|0;continue}}o()}}function ka(a,b){var c=0,d=0,e=0,f=0;c=y[b+4>>2];if(c>>>0<47){c=E(c,6);e=A[c+2080>>1];d=y[a+8>>2]-e|0;y[a+8>>2]=d;c=c+2080|0;f=y[a+4>>2];a:{if(d>>>0>f>>>16>>>0){if(d&32768){return z[b|0]}if(d>>>0<e>>>0){d=z[b|0]^1;e=z[c+3|0];if(z[c+4|0]==1){w[b|0]=d&1}y[b+4>>2]=e;b=d&1;break a}y[b+4>>2]=z[c+2|0];b=z[b|0];break a}y[a+4>>2]=f-(d<<16);b:{if(d>>>0<e>>>0){y[b+4>>2]=z[c+2|0];b=z[b|0];break b}d=z[b|0]^1;f=z[c+3|0];if(z[c+4|0]==1){w[b|0]=d&1}y[b+4>>2]=f;b=d&1}y[a+8>>2]=e}c=y[a+12>>2];while(1){if(!c){Dc(a);c=y[a+12>>2]}c=c-1|0;y[a+12>>2]=c;d=y[a+8>>2];y[a+8>>2]=d<<1;y[a+4>>2]=y[a+4>>2]<<1;if(!(d&16384)){continue}break}return b}o()}function xc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{b:{c=y[a+4>>2];e=y[a>>2];g=c-e|0;h=g>>2;c:{if(h>>>0<b>>>0){f=b-h|0;d=y[a+8>>2];if(f>>>0<=d-c>>2>>>0){b=(f<<2)+c|0;while(1){if((b|0)!=(c|0)){y[c>>2]=0;c=c+4|0;continue}break}y[a+4>>2]=b;return}if(b>>>0>=1073741824){break b}c=d-e|0;d=c>>1;d=c>>>0>=2147483644?1073741823:b>>>0<d>>>0?d:b;if(d>>>0>=1073741824){break a}i=na(d<<2);b=i+g|0;f=b+(f<<2)|0;c=b;while(1){if((c|0)!=(f|0)){y[c>>2]=0;c=c+4|0;continue}break}b=b-(h<<2)|0;if(g){p(b,e,g)}y[a+8>>2]=(d<<2)+i;y[a+4>>2]=f;y[a>>2]=b;if(!e){break c}ma(e);return}if(b>>>0>=h>>>0){break c}y[a+4>>2]=(b<<2)+e}return}Ba();o()}jb();o()}function Td(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{if(Sa(a,y[b+8>>2],e)){if(y[b+28>>2]==1|y[b+4>>2]!=(c|0)){break a}y[b+28>>2]=d;return}if(Sa(a,y[b>>2],e)){if(!(y[b+16>>2]!=(c|0)&y[b+20>>2]!=(c|0))){if((d|0)!=1){break a}y[b+32>>2]=1;return}y[b+32>>2]=d;b:{if(y[b+44>>2]==4){break b}x[b+52>>1]=0;a=y[a+8>>2];_[y[y[a>>2]+20>>2]](a,b,c,c,1,e);if(z[b+53|0]==1){y[b+44>>2]=3;if(!z[b+52|0]){break b}break a}y[b+44>>2]=4}y[b+20>>2]=c;y[b+40>>2]=y[b+40>>2]+1;if(y[b+36>>2]!=1|y[b+24>>2]!=2){break a}w[b+54|0]=1;return}a=y[a+8>>2];_[y[y[a>>2]+24>>2]](a,b,c,d,e)}}function kb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{c=y[a+4>>2];d=y[a>>2];e=c-d>>3;if(e>>>0<b>>>0){g=b-e|0;f=y[a+8>>2];if(g>>>0<=f-c>>3>>>0){b=(g<<3)+c|0;while(1){if((b|0)!=(c|0)){y[c+4>>2]=0;w[c|0]=0;c=c+8|0;continue}break}y[a+4>>2]=b;return}d=Bc(d,f,b);b=y[a+4>>2]-y[a>>2]|0;e=0;if(d){e=yb(d)}b=b+e|0;g=b+(g<<3)|0;c=b;while(1){if((c|0)!=(g|0)){y[c+4>>2]=0;w[c|0]=0;c=c+8|0;continue}break}f=b;b=y[a>>2];c=y[a+4>>2]-b|0;f=f-c|0;if(c){p(f,b,c)}y[a+4>>2]=g;y[a>>2]=f;y[a+8>>2]=(d<<3)+e;if(!b){break a}ma(b);return}if(b>>>0>=e>>>0){break a}y[a+4>>2]=d+(b<<3)}}function ad(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{e=y[a+4>>2];c=y[a>>2];f=e-c|0;d=f>>3;b:{if(d>>>0<b>>>0){d=b-d|0;g=y[a+8>>2];if(d>>>0<=g-e>>3>>>0){ld(a,d);return}if(b>>>0>=536870912){break a}h=d<<3;e=f;c=g-c|0;d=c>>2;f=c>>>0>=2147483640?536870911:b>>>0<d>>>0?d:b;g=yb(f);c=e+g|0;d=h+c|0;b=c;while(1){if((b|0)!=(d|0)){y[b>>2]=0;y[b+4>>2]=0;b=b+8|0;continue}break}e=c;b=y[a>>2];c=y[a+4>>2]-b|0;e=e-c|0;if(c){p(e,b,c)}y[a+4>>2]=d;y[a>>2]=e;y[a+8>>2]=g+(f<<3);if(!b){break b}ma(b);return}if(b>>>0>=d>>>0){break b}y[a+4>>2]=c+(b<<3)}return}Ba();o()}function Gb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;a:{e=y[a+4>>2];c=y[a>>2];f=e-c|0;d=f>>2;b:{if(d>>>0<b>>>0){d=b-d|0;g=y[a+8>>2];if(d>>>0<=g-e>>2>>>0){kd(a,d);return}if(b>>>0>=1073741824){break a}h=d<<2;e=f;c=g-c|0;d=c>>1;f=c>>>0>=2147483644?1073741823:b>>>0<d>>>0?d:b;g=Lb(f);c=e+g|0;d=h+c|0;b=c;while(1){if((b|0)!=(d|0)){y[b>>2]=0;b=b+4|0;continue}break}e=c;b=y[a>>2];c=y[a+4>>2]-b|0;e=e-c|0;if(c){p(e,b,c)}y[a+4>>2]=d;y[a>>2]=e;y[a+8>>2]=g+(f<<2);if(!b){break b}ma(b);return}if(b>>>0>=d>>>0){break b}y[a+4>>2]=c+(b<<2)}return}Ba();o()}function Rc(a,b,c,d,e,f,g){y[a+8>>2]=0;a:{b:{if(!(b&255)){c:{switch(c|0){case 1:y[a+4>>2]=e;y[a>>2]=d;y[a+8>>2]=f-1;return;case 3:y[a+4>>2]=e;break a;case 0:y[a>>2]=d;y[a+8>>2]=f-1;y[a+4>>2]=(e-g|0)+1;return;case 2:break c;default:break b}}y[a+4>>2]=(e-g|0)+1;break a}d:{switch(c|0){case 1:y[a+4>>2]=d;y[a>>2]=e;y[a+8>>2]=g-1;return;case 3:y[a+4>>2]=d;y[a+8>>2]=g-1;y[a>>2]=(e-f|0)+1;return;case 0:y[a>>2]=e;y[a+4>>2]=(d-g|0)+1;return;case 2:break d;default:break b}}y[a+4>>2]=(d-g|0)+1;y[a>>2]=(e-f|0)+1}return}y[a>>2]=(d-f|0)+1}function bc(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;k=((d&536870911)<<3|c>>>29)&-8;a:{b:while(1){c:{if(b>>>0<=f>>>0){break c}g=-1;i=z[a+f|0];if((i|0)==255){break a}h=y[e>>2];if(h>>>0>=k>>>0){break a}g=h>>>3|0;if(g>>>0>=d>>>0){break c}g=z[c+g|0];y[e>>2]=h+1;j=g>>>((h^-1)&7)&1|j<<1;f=f+1|0;h=f+E(i,3)|0;while(1){if((f|0)>=(h|0)){continue b}if(b>>>0<=f>>>0){break c}if(z[a+f|0]==(j|0)){c=f+1|0;if(c>>>0>=b>>>0){break c}d=b;b=f+2|0;if(d>>>0<=b>>>0){break c}g=z[a+c|0]|z[a+b|0]<<8;break a}else{f=f+3|0;continue}}}break}o()}return g}function Ia(a,b,c){var d=0,e=0,f=0,g=0;e=-1;g=y[a>>2];a:{f=y[a+8>>2];d=y[a+4>>2];if(f>>>0>=d>>>0){break a}b:{if((d|0)==536870912|d>>>0>536870912){break b}f=y[a+12>>2]+(f<<3)|0;if(f>>>0>(((d&536870911)<<3|g>>>29)&-8)>>>0){break a}y[c>>2]=0;g=y[a>>2];d=y[a+4>>2];if((d|0)==536870912|d>>>0>536870912){break b}d=((d&536870911)<<3|g>>>29)&-8;e=d>>>0<b+f>>>0?d-f|0:b;while(1){if(!e){e=0;break a}b=y[a+8>>2];if(b>>>0>=B[a+4>>2]){break b}y[c>>2]=z[b+y[a>>2]|0]>>>7-y[a+12>>2]&1|y[c>>2]<<1;_b(a);e=e-1|0;continue}}o()}return e}function Aa(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=Y-16|0;Y=f;i=ka(b,y[a>>2]+8|0);d=i|2;while(1){a:{if((e|0)==5){e=5;break a}g=ka(b,y[a>>2]+(d<<3)|0);d=g|d<<1;if(!g){break a}e=e+1|0;continue}break}g=0;e=e<<3;h=y[e+2364>>2];h=(h|0)>0?h:0;k=e+2364|0;e=0;while(1){if((e|0)!=(h|0)){j=ka(b,y[a>>2]+(d<<3)|0);d=j|d<<1;d=(d|0)>255?d&255|256:d;g=g<<1|j;e=e+1|0;continue}break}w[f+8|0]=1;y[f+12>>2]=y[k+4>>2];d=0;e=0;if(z[Na(f+8|0,g)|0]){a=y[f+12>>2];b=a>>31;d=i?b-(a^b)|0:a;e=!i|(d|0)!=0}y[c>>2]=d;Y=f+16|0;return e}function Sb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if((a|0)!=(b|0)){f=y[b+4>>2];d=y[b>>2];b=f-d|0;c=y[a>>2];if(b>>>0<=y[a+8>>2]-c>>>0){e=y[a+4>>2];g=e-c|0;if(b>>>0>g>>>0){if((c|0)!=(e|0)){if(g){p(c,d,g)}e=y[a+4>>2]}b=d+g|0;d=f-b|0;if(!(!d|(b|0)==(f|0))){p(e,b,d)}y[a+4>>2]=d+e;return a}if(!(!b|(d|0)==(f|0))){p(c,d,b)}y[a+4>>2]=b+c;return a}jd(a);e=Bc(y[a>>2],y[a+8>>2],b>>3);if(e>>>0>=536870912){break a}c=yb(e);y[a+4>>2]=c;y[a>>2]=c;y[a+8>>2]=c+(e<<3);if(!(!b|(d|0)==(f|0))){p(c,d,b)}y[a+4>>2]=b+c}return a}Ba();o()}function me(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=Y-16|0;Y=d;f=y[y[b>>2]>>2];if(!y[a+48>>2]){Da(d+8|0,f);c=y[d+12>>2];y[a+44>>2]=y[d+8>>2];y[a+48>>2]=c}c=y[a+4>>2];if(c){c=c-1|0;g=c>>>3|0;h=(c&7)+1|0;c=y[a+24>>2];while(1){a:{b:{if(B[a+8>>2]<=c>>>0){c=4}else{if(!ic(a,b,2560,g,h)){c=-1;break b}Kb(a,f);e=y[b+16>>2];c=y[a+24>>2];if(!e|(c>>>0)%50){break a}e=_[y[y[e>>2]+8>>2]](e)|0;c=y[a+24>>2];if(!e){break a}y[a+24>>2]=c+1;c=3}y[a+52>>2]=c}Y=d+16|0;return c|0}c=c+1|0;y[a+24>>2]=c;continue}}o()}function qe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;d=Y-16|0;Y=d;e=y[y[b>>2]>>2];if(!y[a+48>>2]){Da(d+8|0,e);c=y[d+12>>2];y[a+44>>2]=y[d+8>>2];y[a+48>>2]=c}c=y[a+4>>2];if(c){f=y[a+8>>2]&2147483647;c=c-1|0;g=c>>>3|0;h=(c&7)+1|0;c=y[a+24>>2];while(1){a:{b:{if(c>>>0>=f>>>0){c=4}else{if(!ic(a,b,2496,g,h)){c=-1;break b}Kb(a,e);c=y[b+16>>2];if(!c){break a}if(!(_[y[y[c>>2]+8>>2]](c)|0)){break a}y[a+24>>2]=y[a+24>>2]+1;c=3}y[a+52>>2]=c}Y=d+16|0;return c|0}c=y[a+24>>2]+1|0;y[a+24>>2]=c;continue}}o()}function zc(a,b,c,d,e){var f=0,g=0;y[a>>2]=0;f=na(24);y[f+8>>2]=0;y[f+12>>2]=0;g=b;b=(c|0)==268435456|c>>>0<268435456;y[f>>2]=b?g:0;y[f+4>>2]=b?c:0;y[f+16>>2]=0;y[f+20>>2]=0;y[a+8>>2]=0;y[a+12>>2]=0;y[a+4>>2]=f;y[a+16>>2]=0;y[a+20>>2]=0;y[a+24>>2]=0;y[a+28>>2]=0;y[a+32>>2]=0;c=na(64);y[a+36>>2]=c;b=c- -64|0;y[a+44>>2]=b;f=0;while(1){if((f|0)!=64){y[c+f>>2]=0;f=f+4|0;continue}break}y[a+52>>2]=10;w[a+49|0]=0;w[a+50|0]=0;w[a+48|0]=e;y[a+40>>2]=b;t(a+56|0,0,49);w[a+112|0]=0;y[a+108>>2]=d;return a}function Wc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;a:{c=y[a+4>>2];d=y[a+8>>2];b:{if(c>>>0<d>>>0){e=y[b>>2];y[b>>2]=0;y[c>>2]=e;b=c+4|0;break b}f=y[a>>2];e=c-f|0;h=e>>2;c=h+1|0;if(c>>>0>=1073741824){break a}d=d-f|0;g=d>>1;g=d>>>0>=2147483644?1073741823:c>>>0<g>>>0?g:c;c:{if(!g){c=e;d=0;break c}d=Lb(g);f=y[a>>2];c=y[a+4>>2]-f|0;h=c>>2}i=y[b>>2];y[b>>2]=0;b=d+e|0;y[b>>2]=i;e=b-(h<<2)|0;if(c){p(e,f,c)}y[a+8>>2]=(g<<2)+d;b=b+4|0;y[a+4>>2]=b;y[a>>2]=e;if(!f){break b}ma(f)}y[a+4>>2]=b;return}Ba();o()}function zb(a,b){var c=0;c=y[a>>2];y[a>>2]=b;if(c){ac(c+80|0);ua(c+76|0);ua(c+72|0);Ja(c+60|0);b=y[c+36>>2];if(b){a=y[c+40>>2];while(1){if((a|0)!=(b|0)){a=pa(a-4|0);continue}break}y[c+40>>2]=b;ma(y[c+36>>2])}la(c+32|0);b=y[c+20>>2];if(b){a=y[c+24>>2];while(1){if((a|0)!=(b|0)){a=$b(a-4|0);continue}break}y[c+24>>2]=b;ma(y[c+20>>2])}b=y[c+8>>2];if(b){a=y[c+12>>2];while(1){if((a|0)!=(b|0)){a=ac(a-4|0);continue}break}y[c+12>>2]=b;ma(y[c+8>>2])}a=y[c+4>>2];y[c+4>>2]=0;if(a){ma(a)}ma(Ab(c))}}function oe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;d=Y-16|0;Y=d;e=y[y[b>>2]>>2];if(!y[a+48>>2]){Da(d+8|0,e);c=y[d+12>>2];y[a+44>>2]=y[d+8>>2];y[a+48>>2]=c}c=y[a+4>>2];if(c){c=c-1|0;f=c>>>3|0;g=(c&7)+1|0;c=y[a+24>>2];while(1){a:{b:{if(B[a+8>>2]<=c>>>0){c=4}else{if(!ic(a,b,2528,f,g)){c=-1;break b}Kb(a,e);c=y[b+16>>2];if(!c){break a}if(!(_[y[y[c>>2]+8>>2]](c)|0)){break a}y[a+24>>2]=y[a+24>>2]+1;c=3}y[a+52>>2]=c}Y=d+16|0;return c|0}c=y[a+24>>2]+1|0;y[a+24>>2]=c;continue}}o()}function Qd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;if(y[b+4>>2]==5604){b=y[a+12>>2];a:{if(b){a=5592;if(Bb(b,5480)){break a}}a=5600}y[c>>2]=a;return 1}e=y[a+8>>2];b:{c:{if(!(e&24)){d=Bb(b,5432);if(!d){break c}c=1;if(!Sa(a,b,(y[d+8>>2]&24)!=0)){break c}break b}c=1;if(Sa(a,b,1)){break b}}c=0;b=Bb(b,5532);if(!b){break b}d=y[b+8>>2];if(d&(e^-1)&7|(d^-1)&e&96|y[y[a+12>>2]+4>>2]!=y[y[b+12>>2]+4>>2]){break b}c=y[y[a+16>>2]+4>>2]==y[y[b+16>>2]+4>>2]}return c|0}function Wb(a,b){var c=0,d=0,e=0,f=0,g=0;e=Y-16|0;Y=e;a:{b:{f=y[a+4>>2];if(f-1>>>0<=65534){g=y[a+8>>2];if(g-1>>>0<65535){break b}}y[a+52>>2]=4;a=4;break a}y[a+52>>2]=2;c=y[b>>2];d=y[c>>2];if(!d){d=xa(f,g);y[e+12>>2]=0;oa(c,d);la(e+12|0);d=y[c>>2]}if(!qa(d)){oa(c,0);y[a+52>>2]=-1;a=-1;break a}Qa(y[c>>2],0);y[a+60>>2]=0;x[a+56>>1]=1;y[a+24>>2]=0;y[a+28>>2]=0;y[a+32>>2]=0;y[a+36>>2]=0;y[a+40>>2]=0;y[a+44>>2]=0;y[a+48>>2]=0;a=hd(a,b)}Y=e+16|0;return a}function Ba(){var a=0,b=0,c=0,d=0;c=Fb(8);y[c>>2]=5828;a=4883;b=0;a:{if(!z[4883]){break a}b:{c:{while(1){a=a+1|0;if(!(a&3)){break c}if(z[a|0]){continue}break}break b}while(1){b=a;a=a+4|0;d=y[b>>2];if(((16843008-d|d)&-2139062144)==-2139062144){continue}break}while(1){a=b;b=a+1|0;if(z[a|0]){continue}break}}b=a-4883|0}a=na(b+13|0);y[a+8>>2]=0;y[a+4>>2]=b;y[a>>2]=b;a=a+12|0;b=b+1|0;if(b){p(a,4883,b)}y[c>>2]=5876;y[c+4>>2]=a;P(c|0,5888,1);o()}function Gc(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if((a|0)!=(b|0)){f=y[b+4>>2];e=y[b>>2];d=f-e|0;c=y[a+8>>2];b=y[a>>2];if(d>>>0<=c-b>>>0){g=y[a+4>>2];c=g-b|0;if(c>>>0<d>>>0){if(!(!c|(b|0)==(g|0))){p(b,e,c)}Ec(a,c+e|0,f);return}if(!(!d|(e|0)==(f|0))){p(b,e,d)}y[a+4>>2]=b+d;return}if(b){y[a+4>>2]=b;ma(b);y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0;c=0}if((d|0)<0){break a}b=c<<1;jc(a,c>>>0>=1073741823?2147483647:b>>>0>d>>>0?b:d);Ec(a,e,f)}return}Ba();o()}function Dc(a){var b=0,c=0,d=0,e=0,f=0;e=255;b=y[a+16>>2];a:{if(z[a+1|0]==255){f=8;d=y[b+8>>2];c=d+1|0;if(c>>>0>=B[b+4>>2]){break a}c=z[c+y[b>>2]|0];if(c>>>0>143){break a}Cc(b);w[a+1|0]=c;y[a+4>>2]=(y[a+4>>2]-(c<<9)|0)+65024;b=y[a+16>>2];d=y[b+8>>2];f=7;break a}Cc(b);f=8;b=y[a+16>>2];d=y[b+8>>2];c=y[b>>2];e=B[b+4>>2]>d>>>0?z[c+d|0]:e;w[a+1|0]=e;y[a+4>>2]=(y[a+4>>2]-(e<<8)|0)+65280}y[a+12>>2]=f;if(B[b+4>>2]<=d>>>0){w[a|0]=1}}function Ib(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;f=b-1|0;g=y[d>>2];e=y[d+4>>2];a:{if((ia(a,f,g,e)|0)!=(c|0)){break a}if((ia(a,b,g,e)|0)!=(c|0)){break a}h=b+1|0;if((ia(a,h,g,e)|0)!=(c|0)){break a}g=y[d+8>>2];e=y[d+12>>2];if((ia(a,f,g,e)|0)!=(c|0)){break a}if((ia(a,h,g,e)|0)!=(c|0)){break a}e=f;f=y[d+16>>2];d=y[d+20>>2];if((ia(a,e,f,d)|0)!=(c|0)){break a}if((ia(a,b,f,d)|0)!=(c|0)){break a}i=(ia(a,h,f,d)|0)==(c|0)}return i}function ja(a,b,c){var d=0,e=0;d=Y-16|0;Y=d;a:{b:{c:{if(!(!(!qa(b)|(c|0)<0)&y[b+12>>2]>(c|0))){w[d+8|0]=0;break c}e=y[b+16>>2];if((e|0)<0){break b}c=se(e,0,c);if(Z){break b}y[d+8>>2]=c;e=1}w[d+12|0]=e;break a}o()}d:{e:{if(!z[d+12|0]){y[a>>2]=0;y[a+4>>2]=0;break e}Da(d,b);e=y[d+4>>2];c=y[d+8>>2];if(e>>>0<c>>>0){break d}b=y[b+16>>2];if(b>>>0>e-c>>>0){break d}e=y[d>>2];y[a+4>>2]=b;y[a>>2]=c+e}Y=d+16|0;return}o()}function nd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=a+8|0;t(d,0,36);b=E(b,12);c=y[b+3072>>2];y[a+4>>2]=c;w[a+1|0]=z[b+3064|0];ad(d,c);Gb(a+20|0,c);Gb(a+32|0,c);b=y[b+3068>>2];d=b+(c<<3)|0;g=y[a+32>>2];h=y[a+20>>2];c=y[a+8>>2];while(1){if((b|0)!=(d|0)){y[c+(e<<3)>>2]=z[b|0];f=e<<2;y[f+h>>2]=z[b+1|0];y[g+f>>2]=y[b+4>>2];b=b+8|0;e=e+1|0;continue}break}i=a,j=ob(c,y[a+12>>2]-c>>3),w[i|0]=j;return a}function bd(a,b,c,d,e,f,g,h,i,j){var k=0,l=0;La(y[b+8>>2],d,i,j,e);i=y[a+12>>2];j=y[c>>2];b=ia(y[b+8>>2],d+2|0,g,h);y[c+4>>2]=e;y[c>>2]=b|j<<1&2;e=y[c+8>>2];a=y[a+20>>2];b=(d-i|0)+2|0;k=c,l=ia(y[a+8>>2],b,y[f>>2],y[f+4>>2])|e<<1&2,y[k+8>>2]=l;d=y[c+12>>2];k=c,l=ia(y[a+8>>2],b,y[f+8>>2],y[f+12>>2])|d<<1&6,y[k+12>>2]=l;d=y[c+16>>2];k=c,l=ia(y[a+8>>2],b,y[f+16>>2],y[f+20>>2])|d<<1&6,y[k+16>>2]=l}function Fc(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;l=((b&536870911)<<3|a>>>29)&-8;h=1;while(1){a:{if(B[c>>2]>=l>>>0){break a}i=h&1;n=i?325:326;g=i?1056:1392;j=0;while(1){k=bc(g,n,a,b,c);if((k|0)<0){while(1){if(B[c>>2]>=l>>>0){break a}if(!Ka(a,b,c)){continue}break}break a}j=j+k|0;if(k>>>0>63){continue}break}g=j+m|0;if(!i){lb(d,e,f,m,g)}h=h^1;m=g;if((f|0)>(g|0)){continue}}break}}function Pd(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a:{if(Sa(a,y[b+8>>2],e)){if(y[b+28>>2]==1|y[b+4>>2]!=(c|0)){break a}y[b+28>>2]=d;return}if(!Sa(a,y[b>>2],e)){break a}if(!(y[b+16>>2]!=(c|0)&y[b+20>>2]!=(c|0))){if((d|0)!=1){break a}y[b+32>>2]=1;return}y[b+20>>2]=c;y[b+32>>2]=d;y[b+40>>2]=y[b+40>>2]+1;if(!(y[b+36>>2]!=1|y[b+24>>2]!=2)){w[b+54|0]=1}y[b+44>>2]=4}}function Vd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=Y+-64|0;Y=d;a:{e=1;b:{if(y[a+4>>2]==y[b+4>>2]){break b}b=Bb(b,5384);e=0;if(!b){break b}e=y[c>>2];if(!e){break a}t(d+8|0,0,56);w[d+59|0]=1;y[d+16>>2]=-1;y[d+12>>2]=a;y[d+4>>2]=b;y[d+52>>2]=1;_[y[y[b>>2]+28>>2]](b,d+4|0,e,1);a=y[d+28>>2];if((a|0)==1){y[c>>2]=y[d+20>>2]}e=(a|0)==1}Y=d- -64|0;return e|0}Qc();o()}function Pc(a,b,c,d){w[a+53|0]=1;a:{if(y[a+4>>2]!=(c|0)){break a}w[a+52|0]=1;c=y[a+16>>2];b:{if(!c){y[a+36>>2]=1;y[a+24>>2]=d;y[a+16>>2]=b;if((d|0)!=1){break a}if(y[a+48>>2]==1){break b}break a}if((b|0)==(c|0)){c=y[a+24>>2];if((c|0)==2){y[a+24>>2]=d;c=d}if(y[a+48>>2]!=1){break a}if((c|0)==1){break b}break a}y[a+36>>2]=y[a+36>>2]+1}w[a+54|0]=1}}function Cd(a,b){var c=0,d=0,e=0;d=a,e=Fa(),y[d>>2]=e;d=a,e=Fa(),y[d+4>>2]=e;d=a,e=Fa(),y[d+8>>2]=e;d=a,e=Fa(),y[d+12>>2]=e;d=a,e=Fa(),y[d+16>>2]=e;d=a,e=Fa(),y[d+20>>2]=e;d=a,e=Fa(),y[d+24>>2]=e;d=a,e=Fa(),y[d+28>>2]=e;d=a,e=Fa(),y[d+32>>2]=e;c=na(16);w[c+12|0]=b;y[c+8>>2]=0;y[c>>2]=0;y[c+4>>2]=0;kb(c,1<<b);y[a+36>>2]=c;return a}function kc(a){var b=0,c=0,d=0,e=0;b=Y-16|0;Y=b;c=na(20);w[c+4|0]=0;y[c>>2]=0;y[c+8>>2]=y[a+8>>2];d=y[a+12>>2];y[c+12>>2]=d;e=y[a+16>>2];y[c+16>>2]=e;Da(b+8|0,a);a:{b:{if(!y[b+12>>2]){break b}nb(c,td(e,d));Da(b,c);a=y[b+8>>2];e=0;d=y[b+12>>2];if(d>>>0>B[b+4>>2]){break a}if(!d|!(d|e)){break b}p(y[b>>2],a,d)}Y=b+16|0;return c}o()}function sd(a,b,c,d,e){var f=0,g=0,h=0,i=0;a:{if(!d){break a}if(e&1){f=b;g=d;if(c){e=32-c|0;f=d>>>0<e>>>0?d:e;y[b>>2]=y[b>>2]|-1<<c&-1>>>e-f;g=d-f|0;f=b+4|0}i=g>>>5|0;e=i;h=f;while(1){if(e){y[h>>2]=-1;e=e-1|0;h=h+4|0;continue}break}e=g&31;if(!e){break a}f=(i<<2)+f|0;y[f>>2]=y[f>>2]|-1>>>32-e;break a}Xc(b,c,d)}Pb(a,b,c,d)}function ed(a,b){var c=0,d=0,e=0;c=Y-32|0;Y=c;a:{d=y[a+40>>2];if(d){e=y[a+48>>2];y[c+24>>2]=y[a+44>>2];y[c+28>>2]=e;b=y[b+16>>2];if(b>>>0>d>>>0){break a}a=y[a+36>>2];y[c+20>>2]=b;y[c+16>>2]=a;a=y[c+28>>2];y[c+8>>2]=y[c+24>>2];y[c+12>>2]=a;a=y[c+20>>2];y[c>>2]=y[c+16>>2];y[c+4>>2]=a;Pa(c+8|0,c)}Y=c+32|0;return}o()}function ra(a,b){var c=0,d=0,e=0,f=0,g=0;a:{d=y[a+8>>2];f=d+3|0;c=y[a+4>>2];if(f>>>0<c>>>0){if(c>>>0<=d>>>0){break a}g=d+1|0;if(g>>>0>=c>>>0){break a}e=c;c=d+2|0;if(e>>>0<=c>>>0){break a}e=b;b=y[a>>2];y[e>>2]=z[b+g|0]<<16|z[b+d|0]<<24|z[b+c|0]<<8|z[b+f|0];y[a+8>>2]=y[a+8>>2]+4;a=0}else{a=-1}return a}o()}function dd(a,b,c){var d=0;d=Y-32|0;Y=d;ja(d+24|0,y[b+20>>2],(y[b+16>>2]^-1)+c|0);y[a>>2]=y[d+24>>2];y[a+4>>2]=y[d+28>>2];ja(d+16|0,y[b+20>>2],c-y[b+16>>2]|0);y[a+8>>2]=y[d+16>>2];y[a+12>>2]=y[d+20>>2];ja(d+8|0,y[b+20>>2],(c-y[b+16>>2]|0)+1|0);y[a+16>>2]=y[d+8>>2];y[a+20>>2]=y[d+12>>2];Y=d+32|0}function xa(a,b){var c=0,d=0;c=na(20);y[c+16>>2]=0;y[c+8>>2]=0;y[c+12>>2]=0;w[c+4|0]=0;y[c>>2]=0;a:{if(a-2147483617>>>0<2147483680|(b|0)<=0){break a}d=a+31&2147483616;if(2147483616/(d>>>0)>>>0<b>>>0){break a}y[c+12>>2]=b;y[c+8>>2]=a;a=d>>>3|0;y[c+16>>2]=a;nb(c,td(a,b))}return c}function Sa(a,b,c){var d=0;if(!c){return y[a+4>>2]==y[b+4>>2]}if((a|0)==(b|0)){return 1}c=y[a+4>>2];a=z[c|0];b=y[b+4>>2];d=z[b|0];a:{if(!a|(d|0)!=(a|0)){break a}while(1){d=z[b+1|0];a=z[c+1|0];if(!a){break a}b=b+1|0;c=c+1|0;if((a|0)==(d|0)){continue}break}}return(a|0)==(d|0)}function Pa(a,b){var c=0,d=0,e=0;a:{c=y[a+4>>2];b:{if(!c){break b}if(!y[b+4>>2]){a=y[a>>2];while(1){if((c|0)<=0){break b}w[a|0]=0;c=c-1|0;a=a+1|0;continue}}e=y[b>>2];d=y[b+4>>2];c=y[a>>2];b=0;if(1&B[a+4>>2]<d>>>0){break a}if(!(b|d)|!d){break b}p(c,e,d)}return}o()}function Ad(a){var b=0,c=0,d=0,e=0,f=0,g=0;d=Y-16|0;Y=d;e=lc();f=e+24|0;g=y[a+28>>2];c=y[a+24>>2];while(1){if((c|0)!=(g|0)){b=y[c>>2];if(b){b=kc(b)}else{b=0}y[d+12>>2]=b;b=d+12|0;Wc(f,b);c=c+4|0;la(b);continue}break}c=Sb(e,a);Sb(c+12|0,a+12|0);Y=d+16|0;return c}function Jb(a,b,c){var d=0;d=Y-32|0;Y=d;ja(d+24|0,y[b+20>>2],c-1|0);y[a>>2]=y[d+24>>2];y[a+4>>2]=y[d+28>>2];ja(d+16|0,y[b+20>>2],c);y[a+8>>2]=y[d+16>>2];y[a+12>>2]=y[d+20>>2];ja(d+8|0,y[b+20>>2],c+1|0);y[a+16>>2]=y[d+8>>2];y[a+20>>2]=y[d+12>>2];Y=d+32|0}function Oc(a,b,c){var d=0;d=y[a+36>>2];if(!d){y[a+24>>2]=c;y[a+16>>2]=b;y[a+36>>2]=1;y[a+20>>2]=y[a+56>>2];return}a:{if(!(y[a+20>>2]!=y[a+56>>2]|y[a+16>>2]!=(b|0))){if(y[a+24>>2]!=2){break a}y[a+24>>2]=c;return}w[a+54|0]=1;y[a+24>>2]=2;y[a+36>>2]=d+1}}function Ra(a){var b=0,c=0,d=0,e=0;b=na(20);y[b+16>>2]=a;w[b|0]=0;c=255;d=y[a>>2];e=y[a+4>>2];a=y[a+8>>2];if(e>>>0>a>>>0){c=z[a+d|0]}w[b+1|0]=c;y[b+4>>2]=((c^-1)&255)<<16;Dc(b);y[b+8>>2]=32768;y[b+4>>2]=y[b+4>>2]<<7;y[b+12>>2]=y[b+12>>2]-7;return b}function Xc(a,b,c){var d=0,e=0;if(b){d=32-b|0;e=c>>>0<d>>>0?c:d;y[a>>2]=y[a>>2]&(-1<<b&-1>>>d-e^-1);c=c-e|0;a=a+4|0}e=c>>>5|0;b=e;d=a;while(1){if(b){y[d>>2]=0;b=b-1|0;d=d+4|0;continue}break}b=c&31;if(b){a=(e<<2)+a|0;y[a>>2]=y[a>>2]&(-1>>>32-b^-1)}}function tb(a,b){var c=0;c=1;a:{if(ra(y[a+4>>2],b)){break a}if(ra(y[a+4>>2],b+4|0)){break a}if(ra(y[a+4>>2],b+8|0)){break a}if(ra(y[a+4>>2],b+12|0)){break a}if(va(y[a+4>>2],b+16|0)|(y[b>>2]>4096|y[b+4>>2]>4096)&z[a+112|0]==1){break a}c=0}return c}function zd(a,b,c){var d=0,e=0;d=na(32);e=y[b+12>>2];y[d+16>>2]=y[b+8>>2];y[d+20>>2]=e;e=y[b+4>>2];y[d+8>>2]=y[b>>2];y[d+12>>2]=e;b=y[c>>2];y[c>>2]=0;y[d>>2]=a;y[d+24>>2]=b;b=y[a+4>>2];y[d+4>>2]=b;y[b>>2]=d;y[a+4>>2]=d;y[a+8>>2]=y[a+8>>2]+1}function Ga(a,b,c){var d=0,e=0,f=0,g=0;d=y[b+8>>2];g=(d|0)>0?d:0;d=0;while(1){a:{if((d|0)==(g|0)){e=0;break a}e=Ma(a,y[y[b+12>>2]+(d<<2)>>2]);if(!(!e|(z[e+4|0]&63)!=53)){if((c|0)==(f|0)){break a}f=f+1|0}d=d+1|0;continue}break}return e}function Ub(a,b){var c=0;y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}c=b<<2;b=na(c);y[a>>2]=b;c=b+c|0;y[a+8>>2]=c;while(1){if((b|0)!=(c|0)){y[b>>2]=0;b=b+4|0;continue}break}y[a+4>>2]=c}return a}Ba();o()}function gb(a,b){var c=0;y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0;a:{if(b){if(b>>>0>=1073741824){break a}c=Lb(b);y[a>>2]=c;b=(b<<2)+c|0;y[a+8>>2]=b;while(1){if((b|0)!=(c|0)){y[c>>2]=0;c=c+4|0;continue}break}y[a+4>>2]=b}return a}Ba();o()}function od(a,b){var c=0,d=0;c=Y-16|0;Y=c;y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0;y[c+8>>2]=a;if(b){jc(a,b);d=b;b=y[a+4>>2];d=d+b|0;while(1){if((b|0)!=(d|0)){w[b|0]=0;b=b+1|0;continue}break}y[a+4>>2]=d}w[c+12|0]=1;fd(c+8|0);Y=c+16|0}function Kc(a,b){var c=0,d=0,e=0;c=Y-16|0;Y=c;d=z[a+4|0];if((d|0)==255){a=Fb(4);y[a>>2]=5288;P(a|0,5300,2);o()}y[c+4>>2]=c+3;e=y[b+4>>2];y[c+8>>2]=y[b>>2];y[c+12>>2]=e;a=_[y[(c+8|0)+(d<<2)>>2]](c+4|0,a)|0;Y=c+16|0;return a}function qb(){var a=0;a=na(80);x[a+56>>1]=0;y[a+12>>2]=0;y[a+24>>2]=0;y[a+28>>2]=0;y[a+32>>2]=0;y[a+36>>2]=0;y[a+40>>2]=0;y[a+44>>2]=0;y[a+48>>2]=0;y[a+60>>2]=0;y[a+64>>2]=0;y[a+68>>2]=0;y[a+72>>2]=0;y[a+76>>2]=0;return a}function Yb(){var a=0;a=na(96);y[a+44>>2]=0;y[a+48>>2]=0;y[a+36>>2]=0;y[a+40>>2]=0;y[a+28>>2]=0;y[a+32>>2]=0;y[a+60>>2]=0;y[a+64>>2]=0;y[a+68>>2]=0;y[a+72>>2]=0;y[a+76>>2]=0;y[a+80>>2]=0;y[a+84>>2]=0;y[a+88>>2]=0;return a}function La(a,b,c,d,e){a:{if(!(!d|(b|0)<0|(a|0)<=(b|0))){a=b>>>3|0;b=1<<((b^-1)&7);if(e){if(a>>>0>=d>>>0){break a}a=a+c|0;w[a|0]=b|z[a|0];return}if(a>>>0>=d>>>0){break a}a=a+c|0;w[a|0]=z[a|0]&(b^-1)}return}o()}function id(a){var b=0,c=0,d=0;y[a+56>>2]=2;c=1;b=4;d=y[a+52>>2];a:{b:{if((d|0)==5){break b}if((d|0)>=3){y[a+52>>2]=5;break b}b=yc(a);c=!b;if(y[a+56>>2]==3){break a}y[a+52>>2]=5;b=b?-1:4}y[a+56>>2]=b}return c}function se(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=c>>>16|0;d=a>>>16|0;h=E(e,d);f=c&65535;a=a&65535;g=E(f,a);d=(g>>>16|0)+E(d,f)|0;a=(d&65535)+E(a,e)|0;Z=h+E(b,c)+(d>>>16)+(a>>>16)|0;return g&65535|a<<16}function Ma(a,b){var c=0,d=0;c=y[a>>2];a:{if(c){c=Ma(c,b);if(c){break a}}d=y[a+12>>2];a=y[a+8>>2];while(1){if((a|0)==(d|0)){return 0}c=y[a>>2];a=a+4|0;if(y[c>>2]!=(b|0)){continue}break}}return c}function xd(a){var b=0;a:{if(z[a+16|0]!=3|z[a+17|0]!=255|(z[a+18|0]!=253|z[a+19|0]!=255)){break a}if(z[a+20|0]!=2|z[a+21|0]!=254|(z[a+22|0]!=254|z[a+23|0]!=254)){break a}b=z[a+2|0]^1}return b&1}function Wa(a,b){var c=0,d=0,e=0;a:{c=y[a+8>>2];e=c+1|0;d=y[a+4>>2];if(e>>>0<d>>>0){if(c>>>0>=d>>>0){break a}d=b;b=y[a>>2];x[d>>1]=z[b+c|0]<<8|z[b+e|0];y[a+8>>2]=c+2;a=0}else{a=-1}return a}o()}function Kb(a,b){var c=0;c=y[a+40>>2];y[a+28>>2]=y[a+36>>2];y[a+32>>2]=c;c=y[a+48>>2];b=y[b+16>>2];if(c>>>0<b>>>0){o()}y[a+40>>2]=c;y[a+48>>2]=c-b;c=y[a+44>>2];y[a+36>>2]=c;y[a+44>>2]=b+c}function cd(a,b,c,d,e,f,g,h){return y[c+16>>2]|y[c+12>>2]<<3|y[c+8>>2]<<6|ia(y[y[a+20>>2]+8>>2],w[a+26|0]+(d-y[a+12>>2]|0)|0,e,f)<<8|y[c+4>>2]<<9|y[c>>2]<<10|ia(b,w[a+24|0]+d|0,g,h)<<12}function sa(a,b){var c=0,d=0,e=0;d=Y-16|0;Y=d;e=b<<2;c=y[e+y[a+36>>2]>>2];if(!c){b=nd(na(44),b);c=y[a+36>>2];y[d+12>>2]=0;vb(c+e|0,b);pa(d+12|0);c=y[y[a+36>>2]+e>>2]}Y=d+16|0;return c}function bb(a,b){var c=0;c=y[a>>2];if(c){y[a+4>>2]=c;ma(c);y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0}y[a>>2]=y[b>>2];y[a+4>>2]=y[b+4>>2];y[a+8>>2]=y[b+8>>2];y[b+8>>2]=0;y[b>>2]=0;y[b+4>>2]=0}function Hc(a,b,c){var d=0,e=0;e=((b&536870911)<<3|a>>>29)&-8;d=y[c>>2];a:{while(1){if(B[c>>2]>=e>>>0){break a}if(!Ka(a,b,c)){continue}break}if(y[c>>2]-d>>>0>11){break a}y[c>>2]=d}}function Ed(a,b){var c=0;y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0;a:{if(b){if(b>>>0>=536870912){break a}c=yb(b);y[a+4>>2]=c;y[a>>2]=c;y[a+8>>2]=(b<<3)+c;ld(a,b)}return a}Ba();o()}function Jc(a,b){var c=0,d=0,e=0;c=Y-16|0;Y=c;d=z[a+4|0];if((d|0)!=255){e=y[b+4>>2];y[c+8>>2]=y[b>>2];y[c+12>>2]=e;_[y[(c+8|0)+(d<<2)>>2]](c+7|0,a)}w[a+4|0]=255;Y=c+16|0}function Tc(a,b){var c=0;c=Y-16|0;Y=c;y[c+8>>2]=0;a:{if(z[a+4|0]==1){oa(a,b);break a}mb(a);w[a+4|0]=1;y[a>>2]=b}y[c+12>>2]=0;la(c+12|0);la(c+8|0);Y=c+16|0;return a}function Db(a,b){var c=0;if(z[a|0]==1){c=y[a+4>>2];b=se(c,c>>31,b);c=Z;c=!(b- -2147483648>>>0<2147483648?c+1|0:c);b=c?b:0}else{b=0}y[a>>2]=c;y[a+4>>2]=b;return a}function Ac(a,b,c){var d=0,e=0,f=0;d=1;while(1){e=z[a+12|0];if(e>>>0<=(f&255)>>>0){y[c>>2]=(-1<<e)+d}else{d=ka(b,y[a>>2]+(d<<3)|0)|d<<1;f=f+1|0;continue}break}}function Hb(a,b,c,d,e,f,g){var h=0,i=0;h=Y-16|0;Y=h;if(qa(a)){i=y[a+12>>2];y[h+8>>2]=y[a+8>>2];y[h+12>>2]=i;y[h>>2]=0;y[h+4>>2]=0;Zc(a,b,c,d,e,f,g,h)}Y=h+16|0}function Cb(a,b,c,d){var e=0;e=Y-16|0;Y=e;y[e+12>>2]=d;d=1;w[e+8|0]=1;a:{if(!z[Na(e+8|0,b>>c)|0]){d=0;w[a|0]=0;break a}y[a>>2]=y[e+12>>2]}w[a+4|0]=d;Y=e+16|0}function qc(a){var b=0;b=y[a+36>>2];y[a+36>>2]=0;if(b){ma(Ja(b))}Ea(a+32|0);Ea(a+28|0);Ea(a+24|0);Ea(a+20|0);Ea(a+16|0);Ea(a+12|0);Ea(a+8|0);Ea(a+4|0);Ea(a)}function Qa(a,b){var c=0,d=0;c=Y-16|0;Y=c;Da(c+8|0,a);d=0-b|0;a=y[c+12>>2];b=y[c+8>>2];while(1){if((a|0)>0){w[b|0]=d;a=a-1|0;b=b+1|0;continue}break}Y=c+16|0}function md(a,b){var c=0;y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0;if(b>>>0>=1073741824){Ba();o()}c=Lb(b);y[a+4>>2]=c;y[a>>2]=c;y[a+8>>2]=(b<<2)+c;kd(a,b);return a}function pb(a,b){var c=0;c=y[a+4>>2];if(b){c=c+1|0;y[a+4>>2]=c}b=y[a+12>>2]-y[a+8>>2]>>3;if(b>>>0<=c>>>0){b=b+16|0;ad(a+8|0,b);Gb(a+20|0,b);Gb(a+32|0,b)}}function jc(a,b){var c=0;a:{if((b|0)>=0){if(b>>>0>2147479550){break a}c=Ya(b);if(!c){break a}y[a+4>>2]=c;y[a>>2]=c;y[a+8>>2]=b+c;return}Ba();o()}rb();o()}function _c(a,b){var c=0;a:{if(!z[a+4|0]){c=y[b>>2];if((c|0)==y[a>>2]){break a}y[b>>2]=0;y[a>>2]=c;return}ub(a);c=y[b>>2];y[b>>2]=0;w[a+4|0]=0;y[a>>2]=c}}function Ud(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Sa(a,y[b+8>>2],f)){Pc(b,c,d,e);return}a=y[a+8>>2];_[y[y[a>>2]+20>>2]](a,b,c,d,e,f)}function Eb(a,b,c){a:{switch(a|0){case 1:return b&c;case 2:return b^c;case 3:return b^c^-1;default:o();case 0:b=b|c;break;case 4:break a}}return b}function wc(a){var b=0,c=0,d=0;c=E(z[a+1|0],y[a+4>>2]+1|0);if(c>>>0<=65535){d=z[a+2|0];b=qb();a=z[a|0];y[b+8>>2]=d;y[b+4>>2]=c;w[b|0]=a}return b}function Tb(a){var b=0,c=0,d=0;a:{if(z[a|0]!=1){break a}b=y[a+4>>2];if((b|0)<0){break a}c=b>>>0<1073741824;d=b<<1}y[a>>2]=c;y[a+4>>2]=d;return a}function Vc(a,b,c){var d=0;if(!(b&1)|z[a|0]!=1){b=0;c=0}else{b=y[a+4>>2];d=b;b=b+c|0;c=((d^b)&(b^c))>=0;b=c?b:0}y[a>>2]=c;y[a+4>>2]=b;return a}function ld(a,b){var c=0;c=y[a+4>>2];b=c+(b<<3)|0;while(1){if((b|0)==(c|0)){y[a+4>>2]=b}else{y[c>>2]=0;y[c+4>>2]=0;c=c+8|0;continue}break}}function fe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=y[a+4>>2];a=y[a+8>>2];b=(a>>1)+b|0;c=y[c>>2];if(a&1){d=y[d+y[b>>2]>>2]}return _[d|0](b,c)|0}function Da(a,b){var c=0,d=0;d=Nb(b);a:{c=y[b+16>>2];if((c|0)>=0){b=y[b+12>>2];b=se(b,b>>31,c);if(!Z){break a}}o()}y[a+4>>2]=b;y[a>>2]=d}function Sd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(y[a+4>>2]==y[y[b+8>>2]+4>>2]){Oc(b,c,d);return}a=y[a+8>>2];_[y[y[a>>2]+28>>2]](a,b,c,d)}function vd(a,b,c,d){if(b>>>0<=d>>>0){b=(b<<2)+a|0;while(1){if((a|0)!=(b|0)){y[c>>2]=y[a>>2];c=c+4|0;a=a+4|0;continue}break}return}o()}function ia(a,b,c,d){a:{if(!d|(b|0)<0|(a|0)<=(b|0)){a=0}else{a=b>>>3|0;if(a>>>0>=d>>>0){break a}a=z[a+c|0]>>>((b^-1)&7)&1}return a}o()}function wb(a,b){var c=0,d=0;d=y[a>>2];c=y[a+8>>2];if(c>>>0<B[a+4>>2]){y[b>>2]=z[d+c|0]>>>7-y[a+12>>2]&1;_b(a);a=0}else{a=-1}return a}function Yc(a,b){var c=0,d=0;if(z[a|0]==1){c=y[a+4>>2];d=c-b|0;c=((c^d)&(b^c))>=0;b=c?d:0}else{b=0;c=0}y[a>>2]=c;y[a+4>>2]=b;return a}function Na(a,b){var c=0,d=0;if(z[a|0]==1){c=y[a+4>>2];d=c+b|0;c=((d^c)&(b^d))>=0;b=c?d:0}else{b=0;c=0}y[a>>2]=c;y[a+4>>2]=b;return a}function nb(a,b){var c=0;c=Y-16|0;Y=c;a:{if(z[a+4|0]==1){rc(a,b);break a}ub(a);w[a+4|0]=1;y[a>>2]=b}y[c+12>>2]=0;Ha(c+12|0);Y=c+16|0}function $a(a){var b=0,c=0;b=y[a>>2];if(b){c=y[a+4>>2];while(1){if((c|0)!=(b|0)){c=la(c-4|0);continue}break}y[a+4>>2]=b;ma(y[a>>2])}}function va(a,b){var c=0,d=0;d=y[a>>2];c=y[a+8>>2];if(c>>>0<B[a+4>>2]){w[b|0]=z[d+c|0];y[a+8>>2]=y[a+8>>2]+1;a=0}else{a=-1}return a}function re(){var a=0,b=0,c=0;while(1){b=a<<4;c=b+6080|0;y[b+6084>>2]=c;y[b+6088>>2]=c;a=a+1|0;if((a|0)!=64){continue}break}Fd(48)}function Sc(a){a=a|0;var b=0,c=0,d=0;y[a>>2]=5828;b=y[a+4>>2];c=b-4|0;d=y[c>>2]-1|0;y[c>>2]=d;if((d|0)<0){ma(b-12|0)}return a|0}function kd(a,b){var c=0;c=y[a+4>>2];b=c+(b<<2)|0;while(1){if((b|0)==(c|0)){y[a+4>>2]=b}else{y[c>>2]=0;c=c+4|0;continue}break}}function Ca(a,b,c){var d=0;d=Y-16|0;Y=d;ja(d+8|0,b,c);b=y[d+8>>2];if(b&3){o()}c=y[d+12>>2];y[a>>2]=b;y[a+4>>2]=c>>>2;Y=d+16|0}function Ec(a,b,c){var d=0;d=y[a+4>>2];while(1){if((b|0)!=(c|0)){w[d|0]=z[b|0];d=d+1|0;b=b+1|0;continue}break}y[a+4>>2]=d}function Pb(a,b,c,d){a:{if((d|0)>=0){d=c+d|0;c=d>>>5|0;break a}d=c+d|0;c=(d-31|0)/32|0}y[a+4>>2]=d&31;y[a>>2]=(c<<2)+b}function Ka(a,b,c){var d=0;d=c;c=y[c>>2];y[d>>2]=c+1;d=b;b=c>>>3|0;if(d>>>0<=b>>>0){o()}return z[a+b|0]>>>((c^-1)&7)&1}function ta(a){var b=0,c=0;if(y[a+12>>2]){b=y[a+8>>2]+1|0;if(b){c=y[a+4>>2];y[a+8>>2]=b>>>0<c>>>0?b:c}y[a+12>>2]=0}}function yd(a,b){var c=0;c=se(b,0,a);if(Z|c>>>0>2147479550){a=0}else{b=E(a,b);a=Ya(b);if(b?a:0){t(a,0,b)}}return a}function ib(a,b){var c=0;c=y[a>>2];y[a>>2]=b;if(c){pa(c+68|0);la(c- -64|0);Zb(c+60|0);Za(c+56|0);Ja(c+12|0);ma(c)}}function Bc(a,b,c){if(c>>>0>=536870912){Ba();o()}a=b-a|0;b=a>>2;return a>>>0>=2147483640?536870911:b>>>0>c>>>0?b:c}function pd(a,b){jd(a);y[a>>2]=y[b>>2];y[a+4>>2]=y[b+4>>2];y[a+8>>2]=y[b+8>>2];y[b+8>>2]=0;y[b>>2]=0;y[b+4>>2]=0}function gd(a){var b=0;a:{b=a;a=y[a+16>>2];if((b|0)==(a|0)){b=16}else{if(!a){break a}b=20}_[y[b+y[a>>2]>>2]](a)}}function Vb(a,b){var c=0;c=y[a+52>>2];if((c|0)==3){if(A[a+56>>1]!=1){y[a+52>>2]=-1;return-1}c=hd(a,b)}return c}function ie(a){a=a|0;var b=0,c=0;b=na(12);y[b>>2]=2600;c=y[a+8>>2];y[b+4>>2]=y[a+4>>2];y[b+8>>2]=c;return b|0}function _b(a){var b=0;b=y[a+12>>2];a:{if((b|0)==7){y[a+8>>2]=y[a+8>>2]+1;b=0;break a}b=b+1|0}y[a+12>>2]=b}function _a(a){var b=0,c=0;b=y[a+4>>2];if(!b){o()}c=y[a>>2];y[a>>2]=c+4;y[a+4>>2]=b-1;return y[c>>2]}function Uc(a,b){a:{b:{if(!z[a+4|0]){if(y[a>>2]!=(b|0)){break b}break a}mb(a);w[a+4|0]=0}y[a>>2]=b}}function Od(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(Sa(a,y[b+8>>2],f)){Pc(b,c,d,e)}}function gc(a){var b=0,c=0;b=y[a+4>>2];if(!b){o()}c=y[a>>2];y[a>>2]=c+4;y[a+4>>2]=b-1;return c}function he(a,b){a=a|0;b=b|0;var c=0;y[b>>2]=2600;c=y[a+8>>2];y[b+4>>2]=y[a+4>>2];y[b+8>>2]=c}function rd(a,b){var c=0;c=Y-16|0;Y=c;y[c+12>>2]=b;b=a+24|0;a=c+12|0;Wc(b,a);la(a);Y=c+16|0}function jd(a){var b=0;b=y[a>>2];if(b){y[a+4>>2]=b;ma(b);y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0}}function Cc(a){var b=0,c=0;b=y[a+8>>2]+1|0;if(b){c=a;a=y[a+4>>2];y[c+8>>2]=a>>>0>b>>>0?b:a}}function tc(a,b,c,d,e,f,g,h){a:{if(!qa(a)){break a}if(!qa(f)){break a}Zc(f,a,b,c,d,e,h,g)}}function vb(a,b){var c=0;c=y[a>>2];y[a>>2]=b;if(c){ya(c+32|0);ya(c+20|0);ya(c+8|0);ma(c)}}function te(a,b){var c=0,d=0;c=b&31;d=(-1<<c&a)>>>c|0;c=a;a=0-b&31;return d|(c&-1>>>a)<<a}function Rd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(y[a+4>>2]==y[y[b+8>>2]+4>>2]){Oc(b,c,d)}}function Jd(a){a=a|0;var b=0;b=y[a+60>>2];a=y[a+48>>2]+7>>>3|0;return(a>>>0>b>>>0?b:a)|0}function Ic(a,b){b=b-a|0;while(1){if((b|0)>0){w[a|0]=255;b=b-1|0;a=a+1|0;continue}break}}function Rb(a,b){var c=0;c=y[a>>2];y[a>>2]=b;if(c){$a(c+24|0);Ja(c+12|0);ma(Ja(c))}}function Fa(){var a=0;a=na(12);y[a+8>>2]=0;y[a>>2]=0;y[a+4>>2]=0;kb(a,512);return a}function Nc(a){a=a|0;y[a+36>>2]=0;y[a+40>>2]=0;ya(a+76|0);ya(a- -64|0);return a|0}function td(a,b){if(4294967295/(b>>>0)>>>0<=a>>>0){rb();o()}return ab(E(a,b),1)}function Lc(a,b){var c=0;return(z[a+16|0]!=(b|0)|z[a+17|0]!=255?c:z[a+2|0]^1)&1}function pc(a){var b=0;b=y[a>>2];y[a>>2]=0;if(b){ya(b+40|0);ya(b+28|0);ma(b)}}function Id(a){a=a|0;Ic(y[a+76>>2],y[a+80>>2]);y[a+48>>2]=0;return 1}function Xb(a,b){var c=0;c=y[a>>2];y[a>>2]=b;if(c){$a(c+4|0);ma(c)}}function Ja(a){var b=0;b=y[a>>2];if(b){y[a+4>>2]=b;ma(b)}return a}function oa(a,b){var c=0;c=y[a>>2];y[a>>2]=b;if(c){ub(c);ma(c)}}function $b(a){var b=0;b=y[a>>2];y[a>>2]=0;if(b){ma(b)}return a}function vc(a){var b=0;b=na(16);y[b>>2]=a;gb(b+4|0,a);return b}function ee(a,b){a=a|0;b=b|0;return(y[b+4>>2]==2888?a+4|0:0)|0}function Lb(a){if(a>>>0>=1073741824){jb();o()}return na(a<<2)}function yb(a){if(a>>>0>=536870912){jb();o()}return na(a<<3)}function jb(){var a=0;a=Fb(4);y[a>>2]=5724;P(a|0,5780,2);o()}function Ea(a){var b=0;b=y[a>>2];y[a>>2]=0;if(b){ma(Ja(b))}}function na(a){a=Ya(a>>>0<=1?1:a);if(!a){Qc();o()}return a}function ya(a){var b=0;b=y[a>>2];if(b){y[a+4>>2]=b;ma(b)}}function Va(a,b){var c=0;c=y[a>>2];y[a>>2]=b;if(c){ma(c)}}function fb(a,b,c,d,e,f,g){if(qa(a)){Hb(f,a,b,c,d,e,g)}}function Ua(a){var b=0;b=y[a>>2];y[a>>2]=0;if(b){ma(b)}}function ue(a){if(a){return 31-H(a-1^a)|0}return 32}+function db(){var a=0;a=na(28);y[a+20>>2]=0;return a}function ab(a,b){a=yd(a,b);if(!a){rb();o()}return a}function rc(a,b){var c=0;c=y[a>>2];y[a>>2]=b;ma(c)}function qd(a){var b=0;b=na(4);y[b>>2]=a;return b}function lc(){var a=0;a=na(36);t(a,0,36);return a}function rb(){y[(Y-16|0)+12>>2]=6036;sc();o()}function Wd(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function Oa(a,b,c,d){return(Eb(a,b,c)^c)&d^c}function Mb(a,b){a=a|0;b=b|0;return y[b>>2]}function ge(a){a=a|0;_[y[y[a>>2]+4>>2]](a)}function fd(a){if(!z[a+4|0]){ya(y[a>>2])}}function Zd(a){a=a|0;T();S(a+128|0);o()}function Ob(a){a=y[a>>2];if(a){ma(a)}}function Md(a){a=a|0;return y[a+4>>2]}function Gd(a){a=a|0;return Ya(a)|0}function Fb(a){return Ya(a|80)+80|0}function wa(a){return nd(na(44),a)}function ce(a,b){a=a|0;b=b|0;Ha(b)}function be(a,b){a=a|0;b=b|0;la(b)}function qa(a){return(Nb(a)|0)!=0}function fc(a){return(Xa(a)|0)!=0}function de(a){a=a|0;return 2868}function Yd(a){a=a|0;return 4890}function Xd(a){a=a|0;return 4864}function Xa(a){return Kc(a,4944)}function Nd(a){a=a|0;return 4913}function Nb(a){return Kc(a,2416)}function xb(a){a=a|0;return a|0}function pa(a){vb(a,0);return a}function oc(a){Za(a+24|0);ma(a)}function la(a){oa(a,0);return a}function ac(a){ib(a,0);return a}function Ab(a){zb(a,0);return a}function Mc(a){a=a|0;ma(Sc(a))}function Kd(a){a=a|0;ma(Nc(a))}function wd(a){return Lc(a,3)}function _d(a){a=a|0;sc();o()}function Qb(a){return Lc(a,2)}function $c(a,b){a=a|0;b=b|0}function Ta(a){a=a|0;ma(a)}function ub(a){Jc(a,4856)}function mb(a){Jc(a,4936)}function ua(a){Va(a,0)}function Zb(a){Xb(a,0)}function Za(a){Rb(a,0)}function Qc(){sc();o()}function Ha(a){rc(a,0)}function sc(){U();o()}function hc(a){a=a|0}+// EMSCRIPTEN_END_FUNCS+a=z;m(n);var _=[null,Sc,xb,qe,pe,oe,ne,me,le,ke,je,xb,Nc,Kd,Jd,Id,Hd,Mb,Mb,xb,Ta,ie,he,hc,ge,fe,ee,de,$c,ce,$c,be,Mb,Mb,Zd,_d,Ta,Yd,Ta,Xd,xb,Ta,hc,hc,Wd,Ta,Qd,Ta,Nd,Mc,Md,Mc,Ta,Vd,Od,Pd,Rd,Ta,Ud,Td,Sd];function $(){return v.byteLength>>16}function ea(fa){fa=fa|0;var aa=$()|0;var ba=aa+fa|0;if(aa<ba&&ba<65536&&ba<=32768){var ca=new ArrayBuffer(ba<<16);var da=new Int8Array(ca);da.set(w);w=new Int8Array(ca);x=new Int16Array(ca);y=new Int32Array(ca);z=new Uint8Array(ca);A=new Uint16Array(ca);B=new Uint32Array(ca);C=new Float32Array(ca);D=new Float64Array(ca);v=ca;a=z}return aa}return{j:Object.create(Object.prototype,{grow:{value:ea},buffer:{get:function(){return v}}}),k:re,l:Gd,m:ma,n:$d,o:ae,p:Ld}}return ga(ha)}+// EMSCRIPTEN_END_ASM+++)(info)},instantiate:function(binary,info){return{then:function(ok){var module=new WebAssembly.Module(binary);ok({instance:new WebAssembly.Instance(module,info)})}}},RuntimeError:Error,isWasm2js:true};if(WebAssembly.isWasm2js){wasmBinary=[]}var ABORT=false;var EXITSTATUS;class EmscriptenEH{}class EmscriptenSjLj extends EmscriptenEH{}var readyPromiseResolve,readyPromiseReject;var runtimeInitialized=false;function updateMemoryViews(){var b=wasmMemory.buffer;HEAP8=new Int8Array(b);HEAP16=new Int16Array(b);HEAPU8=new Uint8Array(b);HEAPU16=new Uint16Array(b);HEAP32=new Int32Array(b);HEAPU32=new Uint32Array(b);HEAPF32=new Float32Array(b);HEAPF64=new Float64Array(b)}function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=true;wasmExports["k"]()}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(onPostRuns)}function abort(what){Module["onAbort"]?.(what);what=`Aborted(${what})`;err(what);ABORT=true;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject?.(e);throw e}var wasmBinaryFile;function findWasmBinary(file){}function getBinarySync(file){}function instantiateSync(file,info){var module;var binary=getBinarySync(file);module=new WebAssembly.Module(binary);var instance=new WebAssembly.Instance(module,info);return[instance,module]}function getWasmImports(){var imports={a:wasmImports};return imports}function createWasm(){function receiveInstance(instance,module){wasmExports=instance.exports;assignWasmExports(wasmExports);updateMemoryViews();return wasmExports}var info=getWasmImports();if(Module["instantiateWasm"]){return new Promise((resolve,reject)=>{Module["instantiateWasm"](info,(inst,mod)=>{resolve(receiveInstance(inst,mod))})})}wasmBinaryFile??=findWasmBinary();var result=instantiateSync(wasmBinaryFile,info);return receiveInstance(result[0])}class ExitStatus{name="ExitStatus";constructor(status){this.message=`Program terminated with exit(${status})`;this.status=status}}var HEAP16;var HEAP32;var HEAP8;var HEAPF32;var HEAPF64;var HEAPU16;var HEAPU32;var HEAPU8;var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var onPostRuns=[];var addOnPostRun=cb=>onPostRuns.push(cb);var onPreRuns=[];var addOnPreRun=cb=>onPreRuns.push(cb);var noExitRuntime=true;class ExceptionInfo{constructor(excPtr){this.excPtr=excPtr;this.ptr=excPtr-24}set_type(type){HEAPU32[this.ptr+4>>2]=type}get_type(){return HEAPU32[this.ptr+4>>2]}set_destructor(destructor){HEAPU32[this.ptr+8>>2]=destructor}get_destructor(){return HEAPU32[this.ptr+8>>2]}set_caught(caught){caught=caught?1:0;HEAP8[this.ptr+12]=caught}get_caught(){return HEAP8[this.ptr+12]!=0}set_rethrown(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+13]=rethrown}get_rethrown(){return HEAP8[this.ptr+13]!=0}init(type,destructor){this.set_adjusted_ptr(0);this.set_type(type);this.set_destructor(destructor)}set_adjusted_ptr(adjustedPtr){HEAPU32[this.ptr+16>>2]=adjustedPtr}get_adjusted_ptr(){return HEAPU32[this.ptr+16>>2]}}var uncaughtExceptionCount=0;var ___cxa_throw=(ptr,type,destructor)=>{var info=new ExceptionInfo(ptr);info.init(type,destructor);uncaughtExceptionCount++;abort()};var __abort_js=()=>abort("");var runtimeKeepaliveCounter=0;var __emscripten_runtime_keepalive_clear=()=>{noExitRuntime=false;runtimeKeepaliveCounter=0};var timers={};var handleException=e=>{if(e instanceof ExitStatus||e=="unwind"){return EXITSTATUS}quit_(1,e)};var keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0;var _proc_exit=code=>{EXITSTATUS=code;if(!keepRuntimeAlive()){Module["onExit"]?.(code);ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=(status,implicit)=>{EXITSTATUS=status;_proc_exit(status)};var _exit=exitJS;var maybeExit=()=>{if(!keepRuntimeAlive()){try{_exit(EXITSTATUS)}catch(e){handleException(e)}}};var callUserCallback=func=>{if(ABORT){return}try{return func()}catch(e){handleException(e)}finally{maybeExit()}};var _emscripten_get_now=()=>performance.now();var __setitimer_js=(which,timeout_ms)=>{if(timers[which]){clearTimeout(timers[which].id);delete timers[which]}if(!timeout_ms)return 0;var id=setTimeout(()=>{delete timers[which];callUserCallback(()=>__emscripten_timeout(which,_emscripten_get_now()))},timeout_ms);timers[which]={id,timeout_ms};return 0};function _createImageData(size){Module.imageData=new Uint8Array(size)}var getHeapMax=()=>2147483648;var alignMemory=(size,alignment)=>Math.ceil(size/alignment)*alignment;var growMemory=size=>{var oldHeapSize=wasmMemory.buffer.byteLength;var pages=(size-oldHeapSize+65535)/65536|0;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignMemory(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};function _setImageData(array_ptr,pitch8,pitch32,height){if(pitch32===pitch8){Module.imageData=new Uint8ClampedArray(HEAPU8.subarray(array_ptr,array_ptr+pitch32*height));return}const destSize=pitch8*height;const imageData=Module.imageData=new Uint8ClampedArray(destSize);for(let srcStart=array_ptr,destStart=0;destStart<destSize;srcStart+=pitch32,destStart+=pitch8){imageData.set(HEAPU8.subarray(srcStart,srcStart+pitch8),destStart)}}function _setLineData(line_ptr,pitch8,offset){Module.imageData.set(HEAPU8.subarray(line_ptr,line_ptr+pitch8),offset)}var writeArrayToMemory=(array,buffer)=>{HEAP8.set(array,buffer)};{if(Module["noExitRuntime"])noExitRuntime=Module["noExitRuntime"];if(Module["print"])out=Module["print"];if(Module["printErr"])err=Module["printErr"];if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].shift()()}}}Module["writeArrayToMemory"]=writeArrayToMemory;var _malloc,_free,_jbig2_decode,_ccitt_decode,__emscripten_timeout,memory,__indirect_function_table,wasmMemory;function assignWasmExports(wasmExports){_malloc=Module["_malloc"]=wasmExports["l"];_free=Module["_free"]=wasmExports["m"];_jbig2_decode=Module["_jbig2_decode"]=wasmExports["n"];_ccitt_decode=Module["_ccitt_decode"]=wasmExports["o"];__emscripten_timeout=wasmExports["p"];memory=wasmMemory=wasmExports["j"];__indirect_function_table=wasmExports["__indirect_function_table"]}var wasmImports={a:___cxa_throw,f:__abort_js,e:__emscripten_runtime_keepalive_clear,b:__setitimer_js,h:_createImageData,c:_emscripten_resize_heap,d:_proc_exit,i:_setImageData,g:_setLineData};function run(){preRun();function doRun(){Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve?.(Module);Module["onRuntimeInitialized"]?.();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(()=>{setTimeout(()=>Module["setStatus"](""),1);doRun()},1)}else{doRun()}}var wasmExports;wasmExports=createWasm();run();if(runtimeInitialized){moduleRtn=Module}else{moduleRtn=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject})}+;return moduleRtn}export default JBig2;diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/openjpeg.wasm b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/openjpeg.wasmnew file mode 100644index 00000000..5acce73fBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/openjpeg.wasm differdiff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/openjpeg_nowasm_fallback.js b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/openjpeg_nowasm_fallback.jsnew file mode 100644index 00000000..0df96aed--- /dev/null+++ b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/openjpeg_nowasm_fallback.js@@ -0,0 +1,17 @@+/* THIS FILE IS GENERATED - DO NOT EDIT */+async function OpenJPEG(moduleArg={}){var moduleRtn;var Module=moduleArg;var ENVIRONMENT_IS_WEB=true;var ENVIRONMENT_IS_WORKER=false;var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var _scriptName=import.meta.url;var scriptDirectory="";var readAsync;if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}{readAsync=async url=>{var response=await fetch(url,{credentials:"same-origin"});if(response.ok){return response.arrayBuffer()}throw new Error(response.status+" : "+response.url)}}}else{}var out=console.log.bind(console);var err=console.error.bind(console);var wasmBinary;var WebAssembly={Memory:function(opts){this.buffer=new ArrayBuffer(opts["initial"]*65536)},Module:function(binary){},Instance:function(module,info){this.exports=(+// EMSCRIPTEN_START_ASM+function instantiate(Aa){var a;var b=new Uint8Array(123);for(var c=25;c>=0;--c){b[48+c]=52+c;b[65+c]=c;b[97+c]=26+c}b[43]=62;b[47]=63;function i(j,k,l){var d,e,c=0,f=k,g=l.length,h=k+(g*3>>2)-(l[g-2]=="=")-(l[g-1]=="=");for(;c<g;c+=4){d=b[l.charCodeAt(c+1)];e=b[l.charCodeAt(c+2)];j[f++]=b[l.charCodeAt(c)]<<2|d>>4;if(f<h)j[f++]=d<<4|e>>2;if(f<h)j[f++]=e<<6|b[l.charCodeAt(c+3)]}return j}function m(n){i(a,1024,"Y2Fubm90IGFsbG9jYXRlIG9wal90Y2Rfc2VnX2RhdGFfY2h1bmtfdCogYXJyYXkALSsgICAwWDB4AC0wWCswWCAwWC0weCsweCAweABVbmtub3duIGZvcm1hdABGYWlsZWQgdG8gc2V0dXAgdGhlIHJlZHVjdGlvbiBmYWN0b3IARmFpbGVkIHRvIHNldHVwIHRoZSBkZWNvZGVyAEZhaWxlZCB0byByZWFkIHRoZSBoZWFkZXIAbmFuACpsX3RpbGVfbGVuID4gVUlOVF9NQVggLSBPUEpfQ09NTU9OX0NCTEtfREFUQV9FWFRSQSAtIHBfajJrLT5tX3NwZWNpZmljX3BhcmFtLm1fZGVjb2Rlci5tX3NvdF9sZW5ndGgAaW5mAEZhaWxlZCB0byBkZWNvZGUgdGhlIGltYWdlAEludmFsaWQgYWNjZXNzIHRvIHBpLT5pbmNsdWRlAC90bXAvb3BlbmpwZWcvc3JjL2Jpbi9jb21tb24vY29sb3IuYwBBTExfQ1BVUwBPUEpfTlVNX1RIUkVBRFMATkFOAE9KUF9ET19OT1RfRElTUExBWV9USUxFX0lOREVYX0lGX1RMTQBJTkYAcF9qMmstPm1fc3BlY2lmaWNfcGFyYW0ubV9kZWNvZGVyLm1fc290X2xlbmd0aCA+IFVJTlRfTUFYIC0gT1BKX0NPTU1PTl9DQkxLX0RBVEFfRVhUUkEACQkJIHByZWNjaW50c2l6ZSAodyxoKT0ACQkJIHN0ZXBzaXplcyAobSxlKT0AU09UIG1hcmtlciBmb3IgdGlsZSAldSBkZWNsYXJlcyBtb3JlIHRpbGUtcGFydHMgdGhhbiBmb3VuZCBpbiBUTE0gbWFya2VyLgAobnVsbCkAKCVkLCVkKSAAJXN9CgAJCSB9CgBbREVWXSBEdW1wIGFuIGltYWdlX2NvbXBfaGVhZGVyIHN0cnVjdCB7CgBbREVWXSBEdW1wIGFuIGltYWdlX2hlYWRlciBzdHJ1Y3QgewoASW1hZ2UgaW5mbyB7CgAJIGRlZmF1bHQgdGlsZSB7CgAlcwkgY29tcG9uZW50ICVkIHsKAAkJIGNvbXAgJWQgewoACSBUaWxlIGluZGV4OiB7CgAJIE1hcmtlciBsaXN0OiB7CgBDb2Rlc3RyZWFtIGluZGV4IGZyb20gbWFpbiBoZWFkZXI6IHsKAENvZGVzdHJlYW0gaW5mbyBmcm9tIG1haW4gaGVhZGVyOiB7CgBTdHJlYW0gZXJyb3Igd2hpbGUgcmVhZGluZyBKUDIgSGVhZGVyIGJveAoARm91bmQgYSBtaXNwbGFjZWQgJyVjJWMlYyVjJyBib3ggb3V0c2lkZSBqcDJoIGJveAoATWFsZm9ybWVkIEpQMiBmaWxlIGZvcm1hdDogZmlyc3QgYm94IG11c3QgYmUgSlBFRyAyMDAwIHNpZ25hdHVyZSBib3gKAE1hbGZvcm1lZCBKUDIgZmlsZSBmb3JtYXQ6IHNlY29uZCBib3ggbXVzdCBiZSBmaWxlIHR5cGUgYm94CgBOb3QgZW5vdWdoIG1lbW9yeSB0byBoYW5kbGUganBlZzIwMDAgYm94CgBOb3QgZW5vdWdoIG1lbW9yeSB3aXRoIEZUWVAgQm94CgBBIG1hcmtlciBJRCB3YXMgZXhwZWN0ZWQgKDB4ZmYtLSkgaW5zdGVhZCBvZiAlLjh4CgAJCSBtY3Q9JXgKAAkJCSBjYmxrc3R5PSUjeAoACQkJIGNzdHk9JSN4CgAJCSBwcmc9JSN4CgBJbnRlZ2VyIG92ZXJmbG93CgAJIHRkeD0ldSwgdGR5PSV1CgAJIHR3PSV1LCB0aD0ldQoACSB0eDA9JXUsIHR5MD0ldQoASW52YWxpZCBjb21wb25lbnQgaW5kZXg6ICV1CgBTdHJlYW0gdG9vIHNob3J0CgBNYXJrZXIgaGFuZGxlciBmdW5jdGlvbiBmYWlsZWQgdG8gcmVhZCB0aGUgbWFya2VyIHNlZ21lbnQKAE5vdCBlbm91Z2ggbWVtb3J5IGZvciBjdXJyZW50IHByZWNpbmN0IGNvZGVibG9jayBlbGVtZW50CgBFcnJvciByZWFkaW5nIFNQQ29kIFNQQ29jIGVsZW1lbnQKAEVycm9yIHJlYWRpbmcgU1FjZCBvciBTUWNjIGVsZW1lbnQKAEEgQlBDQyBoZWFkZXIgYm94IGlzIGF2YWlsYWJsZSBhbHRob3VnaCBCUEMgZ2l2ZW4gYnkgdGhlIElIRFIgYm94ICglZCkgaW5kaWNhdGUgY29tcG9uZW50cyBiaXQgZGVwdGggaXMgY29uc3RhbnQKAEVycm9yIHdpdGggU0laIG1hcmtlcjogaWxsZWdhbCB0aWxlIG9mZnNldAoASW52YWxpZCBwcmVjaW5jdAoATm90IGVub3VnaCBtZW1vcnkgdG8gaGFuZGxlIGJhbmQgcHJlY2ludHMKAEZhaWxlZCB0byBkZWNvZGUgYWxsIHVzZWQgY29tcG9uZW50cwoAU2l6ZSBvZiBjb2RlIGJsb2NrIGRhdGEgZXhjZWVkcyBzeXN0ZW0gbGltaXRzCgBTaXplIG9mIHRpbGUgZGF0YSBleGNlZWRzIHN5c3RlbSBsaW1pdHMKAENhbm5vdCB0YWtlIGluIGNoYXJnZSBtdWx0aXBsZSBNQ1QgbWFya2VycwoAQ29ycnVwdGVkIFBQTSBtYXJrZXJzCgBOb3QgZW5vdWdoIG1lbW9yeSBmb3IgdGlsZSByZXNvbHV0aW9ucwoAQ2Fubm90IHRha2UgaW4gY2hhcmdlIG11bHRpcGxlIGNvbGxlY3Rpb25zCgBJbnZhbGlkIFBDTFIgYm94LiBSZXBvcnRzIDAgcGFsZXR0ZSBjb2x1bW5zCgBXZSBkbyBub3Qgc3VwcG9ydCBST0kgaW4gZGVjb2RpbmcgSFQgY29kZWJsb2NrcwoAQ2Fubm90IGhhbmRsZSBib3ggb2YgdW5kZWZpbmVkIHNpemVzCgBDYW5ub3QgdGFrZSBpbiBjaGFyZ2UgY29sbGVjdGlvbnMgd2l0aG91dCBzYW1lIG51bWJlciBvZiBpbmRpeGVzCgBJbnZhbGlkIHRpbGVjLT53aW5feHh4IHZhbHVlcwoAQ2Fubm90IGhhbmRsZSBib3ggb2YgbGVzcyB0aGFuIDggYnl0ZXMKAENhbm5vdCBoYW5kbGUgWEwgYm94IG9mIGxlc3MgdGhhbiAxNiBieXRlcwoAQ29tcG9uZW50IGluZGV4ICV1IHVzZWQgc2V2ZXJhbCB0aW1lcwoASW52YWxpZCBQQ0xSIGJveC4gUmVwb3J0cyAlZCBlbnRyaWVzCgBOb3QgZW5vdWdoIG1lbW9yeSB0byBjcmVhdGUgVGFnLXRyZWUgbm9kZXMKAENhbm5vdCB0YWtlIGluIGNoYXJnZSBtY3QgZGF0YSB3aXRoaW4gbXVsdGlwbGUgTUNUIHJlY29yZHMKAENhbm5vdCBkZWNvZGUgdGlsZSwgbWVtb3J5IGVycm9yCgBvcGpfajJrX2FwcGx5X25iX3RpbGVfcGFydHNfY29ycmVjdGlvbiBlcnJvcgoAUHJvYmxlbSB3aXRoIHNraXBwaW5nIEpQRUcyMDAwIGJveCwgc3RyZWFtIGVycm9yCgBQcm9ibGVtIHdpdGggcmVhZGluZyBKUEVHMjAwMCBib3gsIHN0cmVhbSBlcnJvcgoAVW5rbm93biBtYXJrZXIKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIGFkZCB0bCBtYXJrZXIKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIGFkZCBtaCBtYXJrZXIKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIHRha2UgaW4gY2hhcmdlIFNJWiBtYXJrZXIKAEVycm9yIHJlYWRpbmcgUFBUIG1hcmtlcgoATm90IGVub3VnaCBtZW1vcnkgdG8gcmVhZCBQUFQgbWFya2VyCgBFcnJvciByZWFkaW5nIFNPVCBtYXJrZXIKAERpZCBub3QgZ2V0IGV4cGVjdGVkIFNPVCBtYXJrZXIKAEVycm9yIHJlYWRpbmcgUExUIG1hcmtlcgoARXJyb3IgcmVhZGluZyBNQ1QgbWFya2VyCgBOb3QgZW5vdWdoIG1lbW9yeSB0byByZWFkIE1DVCBtYXJrZXIKAE5vdCBlbm91Z2ggc3BhY2UgZm9yIGV4cGVjdGVkIFNPUCBtYXJrZXIKAEV4cGVjdGVkIFNPUCBtYXJrZXIKAEVycm9yIHJlYWRpbmcgTUNPIG1hcmtlcgoARXJyb3IgcmVhZGluZyBSR04gbWFya2VyCgBFcnJvciByZWFkaW5nIFBQTSBtYXJrZXIKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIHJlYWQgUFBNIG1hcmtlcgoARXJyb3IgcmVhZGluZyBQTE0gbWFya2VyCgBFeHBlY3RlZCBFUEggbWFya2VyCgBOb3QgZW5vdWdoIHNwYWNlIGZvciByZXF1aXJlZCBFUEggbWFya2VyCgBFcnJvciByZWFkaW5nIENSRyBtYXJrZXIKAFVua25vd24gcHJvZ3Jlc3Npb24gb3JkZXIgaW4gQ09EIG1hcmtlcgoAVW5rbm93biBTY29kIHZhbHVlIGluIENPRCBtYXJrZXIKAEVycm9yIHJlYWRpbmcgQ09EIG1hcmtlcgoARXJyb3IgcmVhZGluZyBRQ0QgbWFya2VyCgBDcnJvciByZWFkaW5nIENCRCBtYXJrZXIKAEVycm9yIHJlYWRpbmcgUE9DIG1hcmtlcgoARXJyb3IgcmVhZGluZyBDT0MgbWFya2VyCgBFcnJvciByZWFkaW5nIFFDQyBtYXJrZXIKAEVycm9yIHJlYWRpbmcgTUNDIG1hcmtlcgoATm90IGVub3VnaCBtZW1vcnkgdG8gcmVhZCBNQ0MgbWFya2VyCgByZXF1aXJlZCBTSVogbWFya2VyIG5vdCBmb3VuZCBpbiBtYWluIGhlYWRlcgoAcmVxdWlyZWQgQ09EIG1hcmtlciBub3QgZm91bmQgaW4gbWFpbiBoZWFkZXIKAHJlcXVpcmVkIFFDRCBtYXJrZXIgbm90IGZvdW5kIGluIG1haW4gaGVhZGVyCgBOb3QgZW5vdWdoIG1lbW9yeSB0byBoYW5kbGUganBlZzIwMDAgZmlsZSBoZWFkZXIKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIHJlYWQgaGVhZGVyCgBFcnJvciB3aXRoIEpQIFNpZ25hdHVyZSA6IGJhZCBtYWdpYyBudW1iZXIKAEluIFNPVCBtYXJrZXIsIFRQU290ICglZCkgaXMgbm90IHZhbGlkIHJlZ2FyZHMgdG8gdGhlIGN1cnJlbnQgbnVtYmVyIG9mIHRpbGUtcGFydCAoJWQpLCBnaXZpbmcgdXAKAEluIFNPVCBtYXJrZXIsIFRQU290ICglZCkgaXMgbm90IHZhbGlkIHJlZ2FyZHMgdG8gdGhlIHByZXZpb3VzIG51bWJlciBvZiB0aWxlLXBhcnQgKCVkKSwgZ2l2aW5nIHVwCgBJbiBTT1QgbWFya2VyLCBUUFNvdCAoJWQpIGlzIG5vdCB2YWxpZCByZWdhcmRzIHRvIHRoZSBjdXJyZW50IG51bWJlciBvZiB0aWxlLXBhcnQgKGhlYWRlcikgKCVkKSwgZ2l2aW5nIHVwCgB0aWxlcyByZXF1aXJlIGF0IGxlYXN0IG9uZSByZXNvbHV0aW9uCgBNYXJrZXIgaXMgbm90IGNvbXBsaWFudCB3aXRoIGl0cyBwb3NpdGlvbgoAUHJvYmxlbSB3aXRoIHNlZWsgZnVuY3Rpb24KAEVycm9yIHJlYWRpbmcgU1BDb2QgU1BDb2MgZWxlbWVudCwgSW52YWxpZCBjYmxrdy9jYmxraCBjb21iaW5hdGlvbgoASW52YWxpZCBtdWx0aXBsZSBjb21wb25lbnQgdHJhbnNmb3JtYXRpb24KAENhbm5vdCB0YWtlIGluIGNoYXJnZSBjb2xsZWN0aW9ucyBvdGhlciB0aGFuIGFycmF5IGRlY29ycmVsYXRpb24KAFRvbyBsYXJnZSB2YWx1ZSBmb3IgTnBwbQoATm90IGVub3VnaCBieXRlcyB0byByZWFkIE5wcG0KAGJhZCBwbGFjZWQganBlZyBjb2Rlc3RyZWFtCgAJIE1haW4gaGVhZGVyIHN0YXJ0IHBvc2l0aW9uPSVsbGkKCSBNYWluIGhlYWRlciBlbmQgcG9zaXRpb249JWxsaQoATWFya2VyIHNpemUgaW5jb25zaXN0ZW50IHdpdGggc3RyZWFtIGxlbmd0aAoAVGlsZSBwYXJ0IGxlbmd0aCBzaXplIGluY29uc2lzdGVudCB3aXRoIHN0cmVhbSBsZW5ndGgKAENhbm5vdCB0YWtlIGluIGNoYXJnZSBtdWx0aXBsZSBkYXRhIHNwYW5uaW5nCgBXcm9uZyBmbGFnCgBFcnJvciB3aXRoIEZUWVAgc2lnbmF0dXJlIEJveCBzaXplCgBFcnJvciB3aXRoIEpQIHNpZ25hdHVyZSBCb3ggc2l6ZQoASW52YWxpZCBwcmVjaW5jdCBzaXplCgBJbmNvbnNpc3RlbnQgbWFya2VyIHNpemUKAEludmFsaWQgbWFya2VyIHNpemUKAEVycm9yIHdpdGggU0laIG1hcmtlciBzaXplCgBOb3QgZW5vdWdoIG1lbW9yeSB0byBhZGQgYSBuZXcgdmFsaWRhdGlvbiBwcm9jZWR1cmUKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIGRlY29kZSB0aWxlCgBGYWlsZWQgdG8gZGVjb2RlIHRoZSBjb2Rlc3RyZWFtIGluIHRoZSBKUDIgZmlsZQoAQ2Fubm90IHRha2UgaW4gY2hhcmdlIGNvbGxlY3Rpb25zIHdpdGggaW5kaXggc2h1ZmZsZQoAQ2Fubm90IGFsbG9jYXRlIFRpZXIgMSBoYW5kbGUKAE5vIGRlY29kZWQgYXJlYSBwYXJhbWV0ZXJzLCBzZXQgdGhlIGRlY29kZWQgYXJlYSB0byB0aGUgd2hvbGUgaW1hZ2UKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIGNyZWF0ZSBUYWctdHJlZQoATm90IGVub3VnaCBtZW1vcnkgdG8gcmVpbml0aWFsaXplIHRoZSB0YWcgdHJlZQoARXJyb3IgcmVhZGluZyBTUENvZCBTUENvYyBlbGVtZW50LCBJbnZhbGlkIHRyYW5zZm9ybWF0aW9uIGZvdW5kCgBFcnJvciByZWFkaW5nIFNQQ29kIFNQQ29jIGVsZW1lbnQuIFVuc3VwcG9ydGVkIE1peGVkIEhUIGNvZGUtYmxvY2sgc3R5bGUgZm91bmQKAFRpbGUgWSBjb29yZGluYXRlcyBhcmUgbm90IHN1cHBvcnRlZAoAVGlsZSBYIGNvb3JkaW5hdGVzIGFyZSBub3Qgc3VwcG9ydGVkCgBJbWFnZSBjb29yZGluYXRlcyBhYm92ZSBJTlRfTUFYIGFyZSBub3Qgc3VwcG9ydGVkCgBKUEVHMjAwMCBIZWFkZXIgYm94IG5vdCByZWFkIHlldCwgJyVjJWMlYyVjJyBib3ggd2lsbCBiZSBpZ25vcmVkCgBvcGpfajJrX21lcmdlX3BwdCgpIGhhcyBhbHJlYWR5IGJlZW4gY2FsbGVkCgBvcGpfajJrX2J1aWxkX3RwX2luZGV4X2Zyb21fdGxtKCk6IHRpbGUgaW5kZXggYWxsb2NhdGlvbiBmYWlsZWQKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIHJlYWQgU09UIG1hcmtlci4gVGlsZSBpbmRleCBhbGxvY2F0aW9uIGZhaWxlZAoASWdub3JpbmcgaWhkciBib3guIEZpcnN0IGloZHIgYm94IGFscmVhZHkgcmVhZAoAWnBwdCAldSBhbHJlYWR5IHJlYWQKAFpwcG0gJXUgYWxyZWFkeSByZWFkCgBQVEVSTSBjaGVjayBmYWlsdXJlOiAlZCBzeW50aGVzaXplZCAweEZGIG1hcmtlcnMgcmVhZAoACQkJIGNibGt3PTJeJWQKAAkJCSBjYmxraD0yXiVkCgAJCQkgcW50c3R5PSVkCgAlcyBkeD0lZCwgZHk9JWQKAAkJCSByb2lzaGlmdD0lZAoACQkJIG51bWdiaXRzPSVkCgAJCSBudW1sYXllcnM9JWQKACVzIG51bWNvbXBzPSVkCgBvcGpfanAyX2FwcGx5X2NkZWY6IGFjbj0lZCwgbnVtY29tcHM9JWQKAG9wal9qcDJfYXBwbHlfY2RlZjogY249JWQsIG51bWNvbXBzPSVkCgAJCQkgbnVtcmVzb2x1dGlvbnM9JWQKAAkJIHR5cGU9JSN4LCBwb3M9JWxsaSwgbGVuPSVkCgAlcyBzZ25kPSVkCgAJCQkgcW1mYmlkPSVkCgAlcyBwcmVjPSVkCgAJCSBuYiBvZiB0aWxlLXBhcnQgaW4gdGlsZSBbJWRdPSVkCgAlcyB4MT0lZCwgeTE9JWQKACVzIHgwPSVkLCB5MD0lZAoARmFpbGVkIHRvIGRlY29kZSB0aWxlICVkLyVkCgBTZXR0aW5nIGRlY29kaW5nIGFyZWEgdG8gJWQsJWQsJWQsJWQKAEZhaWxlZCB0byBkZWNvZGUgY29tcG9uZW50ICVkCgBJbnZhbGlkIHZhbHVlIGZvciBudW1yZXNvbHV0aW9ucyA6ICVkLCBtYXggdmFsdWUgaXMgc2V0IGluIG9wZW5qcGVnLmggYXQgJWQKAEludmFsaWQgY29tcG9uZW50IG51bWJlcjogJWQsIHJlZ2FyZGluZyB0aGUgbnVtYmVyIG9mIGNvbXBvbmVudHMgJWQKAFRvbyBtYW55IFBPQ3MgJWQKAG9wal9qMmtfcmVhZF90bG0oKTogaW52YWxpZCB0aWxlIG51bWJlciAlZAoASW52YWxpZCB0aWxlIG51bWJlciAlZAoASW52YWxpZCB0aWxlIHBhcnQgaW5kZXggZm9yIHRpbGUgbnVtYmVyICVkLiBHb3QgJWQsIGV4cGVjdGVkICVkCgBFcnJvciB3aXRoIFNJWiBtYXJrZXI6IG51bWJlciBvZiBjb21wb25lbnQgaXMgaWxsZWdhbCAtPiAlZAoATm90IGVub3VnaCBtZW1vcnkgZm9yIGNpZWxhYgoAQ2Fubm90IGFsbG9jYXRlIGNibGstPmRlY29kZWRfZGF0YQoARmFpbGVkIHRvIG1lcmdlIFBQVCBkYXRhCgBGYWlsZWQgdG8gbWVyZ2UgUFBNIGRhdGEKAEludmFsaWQgbnVtYmVyIG9mIGxheWVycyBpbiBDT0QgbWFya2VyIDogJWQgbm90IGluIHJhbmdlIFsxLTY1NTM1XQoAJXM6JWQ6Y29sb3JfY215a190b19yZ2IKCUNBTiBOT1QgQ09OVkVSVAoAJXM6JWQ6Y29sb3JfZXN5Y2NfdG9fcmdiCglDQU4gTk9UIENPTlZFUlQKACVzOiVkOmNvbG9yX3N5Y2NfdG9fcmdiCglDQU4gTk9UIENPTlZFUlQKAFN0cmVhbSB0b28gc2hvcnQsIGV4cGVjdGVkIFNPVAoAVW5hYmxlIHRvIHNldCB0MSBoYW5kbGUgYXMgVExTCgBTb3QgbGVuZ3RoIGlzIGxlc3MgdGhhbiBtYXJrZXIgc2l6ZSArIG1hcmtlciBJRAoAU3RyZWFtIGRvZXMgbm90IGVuZCB3aXRoIEVPQwoAQ2Fubm90IGhhbmRsZSBib3ggc2l6ZXMgaGlnaGVyIHRoYW4gMl4zMgoAb3BqX3BpX25leHRfbHJjcCgpOiBpbnZhbGlkIGNvbXBubzAvY29tcG5vMQoAb3BqX3BpX25leHRfcmxjcCgpOiBpbnZhbGlkIGNvbXBubzAvY29tcG5vMQoAb3BqX3BpX25leHRfY3BybCgpOiBpbnZhbGlkIGNvbXBubzAvY29tcG5vMQoAb3BqX3BpX25leHRfcGNybCgpOiBpbnZhbGlkIGNvbXBubzAvY29tcG5vMQoAb3BqX3BpX25leHRfcnBjbCgpOiBpbnZhbGlkIGNvbXBubzAvY29tcG5vMQoAb3BqX3QxX2RlY29kZV9jYmxrKCk6IHVuc3VwcG9ydGVkIGJwbm9fcGx1c19vbmUgPSAlZCA+PSAzMQoARmFpbGVkIHRvIGRlY29kZSB0aWxlIDEvMQoASW5zdWZmaWNpZW50IGRhdGEgZm9yIENNQVAgYm94LgoATmVlZCB0byByZWFkIGEgUENMUiBib3ggYmVmb3JlIHRoZSBDTUFQIGJveC4KAEluc3VmZmljaWVudCBkYXRhIGZvciBDREVGIGJveC4KAE51bWJlciBvZiBjaGFubmVsIGRlc2NyaXB0aW9uIGlzIGVxdWFsIHRvIHplcm8gaW4gQ0RFRiBib3guCgBTdHJlYW0gZXJyb3Igd2hpbGUgcmVhZGluZyBKUDIgSGVhZGVyIGJveDogbm8gJ2loZHInIGJveC4KAE5vbiBjb25mb3JtYW50IGNvZGVzdHJlYW0gVFBzb3Q9PVROc290LgoAU3RyZWFtIGVycm9yIHdoaWxlIHJlYWRpbmcgSlAyIEhlYWRlciBib3g6IGJveCBsZW5ndGggaXMgaW5jb25zaXN0ZW50LgoAQm94IGxlbmd0aCBpcyBpbmNvbnNpc3RlbnQuCgBSZXNvbHV0aW9uIGZhY3RvciBpcyBncmVhdGVyIHRoYW4gdGhlIG1heGltdW0gcmVzb2x1dGlvbiBpbiB0aGUgY29tcG9uZW50LgoAQ29tcG9uZW50IG1hcHBpbmcgc2VlbXMgd3JvbmcuIFRyeWluZyB0byBjb3JyZWN0LgoAb3BqX2oya19idWlsZF90cF9pbmRleF9mcm9tX3RsbSgpOiB0aWxlICVkIGhhcyBubyByZWdpc3RlcmVkIHRpbGUtcGFydCBpbiBUTE0gbWFya2VyIHNlZ21lbnRzLgoAb3BqX2oya19yZWFkX3RsbSgpOiB0b28gbWFueSBUTE0gbWFya2Vycy4KAG9wal9qMmtfcmVhZF90bG0oKTogY2Fubm90IGFsbG9jYXRlIG1fdGlsZV9wYXJ0X2luZm9zLgoASW5jb21wbGV0ZSBjaGFubmVsIGRlZmluaXRpb25zLgoATWFsZm9ybWVkIEhUIGNvZGVibG9jay4gSW52YWxpZCBjb2RlYmxvY2sgbGVuZ3RoIHZhbHVlcy4KAFdlIGRvIG5vdCBzdXBwb3J0IG1vcmUgdGhhbiAzIGNvZGluZyBwYXNzZXMgaW4gYW4gSFQgY29kZWJsb2NrOyBUaGlzIGNvZGVibG9ja3MgaGFzICVkIHBhc3Nlcy4KAE1hbGZvcm1lZCBIVCBjb2RlYmxvY2suIERlY29kaW5nIHRoaXMgY29kZWJsb2NrIGlzIHN0b3BwZWQuIFRoZXJlIGFyZSAlZCB6ZXJvIGJpdHBsYW5lcyBpbiAlZCBiaXRwbGFuZXMuCgBDYW5ub3QgdGFrZSBpbiBjaGFyZ2UgbXVsdGlwbGUgdHJhbnNmb3JtYXRpb24gc3RhZ2VzLgoAVW5rbm93biBtYXJrZXIgaGFzIGJlZW4gZGV0ZWN0ZWQgYW5kIGdlbmVyYXRlZCBlcnJvci4KAENvZGVjIHByb3ZpZGVkIHRvIHRoZSBvcGpfc2V0dXBfZGVjb2RlciBmdW5jdGlvbiBpcyBub3QgYSBkZWNvbXByZXNzb3IgaGFuZGxlci4KAENvZGVjIHByb3ZpZGVkIHRvIHRoZSBvcGpfcmVhZF9oZWFkZXIgZnVuY3Rpb24gaXMgbm90IGEgZGVjb21wcmVzc29yIGhhbmRsZXIuCgBFcnJvciByZWFkaW5nIFRMTSBtYXJrZXIuCgBUaWxlcyBkb24ndCBhbGwgaGF2ZSB0aGUgc2FtZSBkaW1lbnNpb24uIFNraXAgdGhlIE1DVCBzdGVwLgoATnVtYmVyIG9mIGNvbXBvbmVudHMgKCVkKSBpcyBpbmNvbnNpc3RlbnQgd2l0aCBhIE1DVC4gU2tpcCB0aGUgTUNUIHN0ZXAuCgBKUDIgYm94IHdoaWNoIGFyZSBhZnRlciB0aGUgY29kZXN0cmVhbSB3aWxsIG5vdCBiZSByZWFkIGJ5IHRoaXMgZnVuY3Rpb24uCgBNYWxmb3JtZWQgSFQgY29kZWJsb2NrLiBXaGVuIHRoZSBudW1iZXIgb2YgemVybyBwbGFuZXMgYml0cGxhbmVzIGlzIGVxdWFsIHRvIHRoZSBudW1iZXIgb2YgYml0cGxhbmVzLCBvbmx5IHRoZSBjbGVhbnVwIHBhc3MgbWFrZXMgc2Vuc2UsIGJ1dCB3ZSBoYXZlICVkIHBhc3NlcyBpbiB0aGlzIGNvZGVibG9jay4gVGhlcmVmb3JlLCBvbmx5IHRoZSBjbGVhbnVwIHBhc3Mgd2lsbCBiZSBkZWNvZGVkLiBUaGlzIG1lc3NhZ2Ugd2lsbCBub3QgYmUgZGlzcGxheWVkIGFnYWluLgoASW1hZ2UgaGFzIGxlc3MgY29tcG9uZW50cyB0aGFuIGNvZGVzdHJlYW0uCgBOZWVkIHRvIGRlY29kZSB0aGUgbWFpbiBoZWFkZXIgYmVmb3JlIGJlZ2luIHRvIGRlY29kZSB0aGUgcmVtYWluaW5nIGNvZGVzdHJlYW0uCgBQc290IHZhbHVlIG9mIHRoZSBjdXJyZW50IHRpbGUtcGFydCBpcyBlcXVhbCB0byB6ZXJvLCB3ZSBhc3N1bWluZyBpdCBpcyB0aGUgbGFzdCB0aWxlLXBhcnQgb2YgdGhlIGNvZGVzdHJlYW0uCgBBIG1hbGZvcm1lZCBjb2RlYmxvY2sgdGhhdCBoYXMgbW9yZSB0aGFuIG9uZSBjb2RpbmcgcGFzcywgYnV0IHplcm8gbGVuZ3RoIGZvciAybmQgYW5kIHBvdGVudGlhbGx5IHRoZSAzcmQgcGFzcyBpbiBhbiBIVCBjb2RlYmxvY2suCgAJCQkgdGlsZS1wYXJ0WyVkXTogc3Rhcl9wb3M9JWxsaSwgZW5kX2hlYWRlcj0lbGxpLCBlbmRfcG9zPSVsbGkuCgBUaWxlICV1IGhhcyBUUHNvdCA9PSAwIGFuZCBUTnNvdCA9PSAwLCBidXQgbm8gb3RoZXIgdGlsZS1wYXJ0cyB3ZXJlIGZvdW5kLiBFT0MgaXMgYWxzbyBtaXNzaW5nLgoAQ29tcG9uZW50ICVkIGRvZXNuJ3QgaGF2ZSBhIG1hcHBpbmcuCgBvcGpfajJrX3JlYWRfdGxtKCk6IFRMTSBtYXJrZXIgbm90IG9mIGV4cGVjdGVkIHNpemUuCgBBIGNvbmZvcm1pbmcgSlAyIHJlYWRlciBzaGFsbCBpZ25vcmUgYWxsIENvbG91ciBTcGVjaWZpY2F0aW9uIGJveGVzIGFmdGVyIHRoZSBmaXJzdCwgc28gd2UgaWdub3JlIHRoaXMgb25lLgoAVGhlIHNpZ25hdHVyZSBib3ggbXVzdCBiZSB0aGUgZmlyc3QgYm94IGluIHRoZSBmaWxlLgoAVGhlICBib3ggbXVzdCBiZSB0aGUgZmlyc3QgYm94IGluIHRoZSBmaWxlLgoAVGhlIGZ0eXAgYm94IG11c3QgYmUgdGhlIHNlY29uZCBib3ggaW4gdGhlIGZpbGUuCgBGYWlsZWQgdG8gZGVjb2RlLgoATWFsZm9ybWVkIEhUIGNvZGVibG9jay4gSW5jb3JyZWN0IE1FTCBzZWdtZW50IHNlcXVlbmNlLgoAQ29tcG9uZW50ICVkIGlzIG1hcHBlZCB0d2ljZS4KAG9wal9qMmtfcmVhZF90bG0oKTogU1QgPSAzIGlzIGludmFsaWQuCgBPbmx5IG9uZSBDTUFQIGJveCBpcyBhbGxvd2VkLgoAV2UgbmVlZCBhbiBpbWFnZSBwcmV2aW91c2x5IGNyZWF0ZWQuCgBJSERSIGJveF9taXNzaW5nLiBSZXF1aXJlZC4KAEpQMkggYm94IG1pc3NpbmcuIFJlcXVpcmVkLgoATm90IHN1cmUgaG93IHRoYXQgaGFwcGVuZWQuCgBNYWluIGhlYWRlciBoYXMgYmVlbiBjb3JyZWN0bHkgZGVjb2RlZC4KAFRpbGUgJWQvJWQgaGFzIGJlZW4gZGVjb2RlZC4KAEhlYWRlciBvZiB0aWxlICVkIC8gJWQgaGFzIGJlZW4gcmVhZC4KAEVtcHR5IFNPVCBtYXJrZXIgZGV0ZWN0ZWQ6IFBzb3Q9JWQuCgBEaXJlY3QgdXNlIGF0ICMlZCBob3dldmVyIHBjb2w9JWQuCgBJbXBsZW1lbnRhdGlvbiBsaW1pdGF0aW9uOiBmb3IgcGFsZXR0ZSBtYXBwaW5nLCBwY29sWyVkXSBzaG91bGQgYmUgZXF1YWwgdG8gJWQsIGJ1dCBpcyBlcXVhbCB0byAlZC4KAEludmFsaWQgY29tcG9uZW50L3BhbGV0dGUgaW5kZXggZm9yIGRpcmVjdCBtYXBwaW5nICVkLgoASW52YWxpZCB2YWx1ZSBmb3IgY21hcFslZF0ubXR5cCA9ICVkLgoAUHNvdCB2YWx1ZSBpcyBub3QgY29ycmVjdCByZWdhcmRzIHRvIHRoZSBKUEVHMjAwMCBub3JtOiAlZC4KAE1hbGZvcm1lZCBIVCBjb2RlYmxvY2suIFZMQyBjb2RlIHByb2R1Y2VzIHNpZ25pZmljYW50IHNhbXBsZXMgb3V0c2lkZSB0aGUgY29kZWJsb2NrIGFyZWEuCgBVbmV4cGVjdGVkIE9PTS4KADMyIGJpdHMgYXJlIG5vdCBlbm91Z2ggdG8gZGVjb2RlIHRoaXMgY29kZWJsb2NrLCBzaW5jZSB0aGUgbnVtYmVyIG9mIGJpdHBsYW5lLCAlZCwgaXMgbGFyZ2VyIHRoYW4gMzAuCgBCb3R0b20gcG9zaXRpb24gb2YgdGhlIGRlY29kZWQgYXJlYSAocmVnaW9uX3kxPSVkKSBzaG91bGQgYmUgPiAwLgoAUmlnaHQgcG9zaXRpb24gb2YgdGhlIGRlY29kZWQgYXJlYSAocmVnaW9uX3gxPSVkKSBzaG91bGQgYmUgPiAwLgoAVXAgcG9zaXRpb24gb2YgdGhlIGRlY29kZWQgYXJlYSAocmVnaW9uX3kwPSVkKSBzaG91bGQgYmUgPj0gMC4KAExlZnQgcG9zaXRpb24gb2YgdGhlIGRlY29kZWQgYXJlYSAocmVnaW9uX3gwPSVkKSBzaG91bGQgYmUgPj0gMC4KAEVycm9yIHJlYWRpbmcgUFBUIG1hcmtlcjogcGFja2V0IGhlYWRlciBoYXZlIGJlZW4gcHJldmlvdXNseSBmb3VuZCBpbiB0aGUgbWFpbiBoZWFkZXIgKFBQTSBtYXJrZXIpLgoAU3RhcnQgdG8gcmVhZCBqMmsgbWFpbiBoZWFkZXIgKCVsbGQpLgoAQm90dG9tIHBvc2l0aW9uIG9mIHRoZSBkZWNvZGVkIGFyZWEgKHJlZ2lvbl95MT0lZCkgaXMgb3V0c2lkZSB0aGUgaW1hZ2UgYXJlYSAoWXNpej0lZCkuCgBVcCBwb3NpdGlvbiBvZiB0aGUgZGVjb2RlZCBhcmVhIChyZWdpb25feTA9JWQpIGlzIG91dHNpZGUgdGhlIGltYWdlIGFyZWEgKFlzaXo9JWQpLgoAUmlnaHQgcG9zaXRpb24gb2YgdGhlIGRlY29kZWQgYXJlYSAocmVnaW9uX3gxPSVkKSBpcyBvdXRzaWRlIHRoZSBpbWFnZSBhcmVhIChYc2l6PSVkKS4KAExlZnQgcG9zaXRpb24gb2YgdGhlIGRlY29kZWQgYXJlYSAocmVnaW9uX3gwPSVkKSBpcyBvdXRzaWRlIHRoZSBpbWFnZSBhcmVhIChYc2l6PSVkKS4KAEJvdHRvbSBwb3NpdGlvbiBvZiB0aGUgZGVjb2RlZCBhcmVhIChyZWdpb25feTE9JWQpIGlzIG91dHNpZGUgdGhlIGltYWdlIGFyZWEgKFlPc2l6PSVkKS4KAFVwIHBvc2l0aW9uIG9mIHRoZSBkZWNvZGVkIGFyZWEgKHJlZ2lvbl95MD0lZCkgaXMgb3V0c2lkZSB0aGUgaW1hZ2UgYXJlYSAoWU9zaXo9JWQpLgoAUmlnaHQgcG9zaXRpb24gb2YgdGhlIGRlY29kZWQgYXJlYSAocmVnaW9uX3gxPSVkKSBpcyBvdXRzaWRlIHRoZSBpbWFnZSBhcmVhIChYT3Npej0lZCkuCgBMZWZ0IHBvc2l0aW9uIG9mIHRoZSBkZWNvZGVkIGFyZWEgKHJlZ2lvbl94MD0lZCkgaXMgb3V0c2lkZSB0aGUgaW1hZ2UgYXJlYSAoWE9zaXo9JWQpLgoAU2l6ZSB4IG9mIHRoZSBkZWNvZGVkIGNvbXBvbmVudCBpbWFnZSBpcyBpbmNvcnJlY3QgKGNvbXBbJWRdLnc9JWQpLgoAU2l6ZSB5IG9mIHRoZSBkZWNvZGVkIGNvbXBvbmVudCBpbWFnZSBpcyBpbmNvcnJlY3QgKGNvbXBbJWRdLmg9JWQpLgoAVGlsZSByZWFkLCBkZWNvZGVkIGFuZCB1cGRhdGVkIGlzIG5vdCB0aGUgZGVzaXJlZCBvbmUgKCVkIHZzICVkKS4KAEludmFsaWQgY29tcG9uZW50IGluZGV4ICVkICg+PSAlZCkuCgBvcGpfcmVhZF9oZWFkZXIoKSBzaG91bGQgYmUgY2FsbGVkIGJlZm9yZSBvcGpfc2V0X2RlY29kZWRfY29tcG9uZW50cygpLgoATWVtb3J5IGFsbG9jYXRpb24gZmFpbHVyZSBpbiBvcGpfanAyX2FwcGx5X3BjbHIoKS4KAGltYWdlLT5jb21wc1slZF0uZGF0YSA9PSBOVUxMIGluIG9wal9qcDJfYXBwbHlfcGNscigpLgoAaW52YWxpZCBib3ggc2l6ZSAlZCAoJXgpCgBGYWlsIHRvIHJlYWQgdGhlIGN1cnJlbnQgbWFya2VyIHNlZ21lbnQgKCUjeCkKAEVycm9yIHdpdGggU0laIG1hcmtlcjogSUhEUiB3KCV1KSBoKCV1KSB2cy4gU0laIHcoJXUpIGgoJXUpCgBFcnJvciByZWFkaW5nIENPQyBtYXJrZXIgKGJhZCBudW1iZXIgb2YgY29tcG9uZW50cykKAEludmFsaWQgbnVtYmVyIG9mIHRpbGVzIDogJXUgeCAldSAobWF4aW11bSBmaXhlZCBieSBqcGVnMjAwMCBub3JtIGlzIDY1NTM1IHRpbGVzKQoASW52YWxpZCBudW1iZXIgb2YgY29tcG9uZW50cyAoaWhkcikKAE5vdCBlbm91Z2ggbWVtb3J5IHRvIGhhbmRsZSBpbWFnZSBoZWFkZXIgKGloZHIpCgBXcm9uZyB2YWx1ZXMgZm9yOiB3KCVkKSBoKCVkKSBudW1jb21wcyglZCkgKGloZHIpCgBJbnZhbGlkIHZhbHVlcyBmb3IgY29tcCA9ICVkIDogZHg9JXUgZHk9JXUgKHNob3VsZCBiZSBiZXR3ZWVuIDEgYW5kIDI1NSBhY2NvcmRpbmcgdG8gdGhlIEpQRUcyMDAwIG5vcm0pCgBCYWQgaW1hZ2UgaGVhZGVyIGJveCAoYmFkIHNpemUpCgBCYWQgQ09MUiBoZWFkZXIgYm94IChiYWQgc2l6ZSkKAEJhZCBCUENDIGhlYWRlciBib3ggKGJhZCBzaXplKQoARXJyb3Igd2l0aCBTSVogbWFya2VyOiBuZWdhdGl2ZSBvciB6ZXJvIGltYWdlIHNpemUgKCVsbGQgeCAlbGxkKQoAc2tpcDogc2VnbWVudCB0b28gbG9uZyAoJWQpIHdpdGggbWF4ICglZCkgZm9yIGNvZGVibG9jayAlZCAocD0lZCwgYj0lZCwgcj0lZCwgYz0lZCkKAHJlYWQ6IHNlZ21lbnQgdG9vIGxvbmcgKCVkKSB3aXRoIG1heCAoJWQpIGZvciBjb2RlYmxvY2sgJWQgKHA9JWQsIGI9JWQsIHI9JWQsIGM9JWQpCgBEZXNwaXRlIEpQMiBCUEMhPTI1NSwgcHJlY2lzaW9uIGFuZC9vciBzZ25kIHZhbHVlcyBmb3IgY29tcFslZF0gaXMgZGlmZmVyZW50IHRoYW4gY29tcFswXToKICAgICAgICBbMF0gcHJlYyglZCkgc2duZCglZCkgWyVkXSBwcmVjKCVkKSBzZ25kKCVkKQoAYmFkIGNvbXBvbmVudCBudW1iZXIgaW4gUkdOICglZCB3aGVuIHRoZXJlIGFyZSBvbmx5ICVkKQoARXJyb3Igd2l0aCBTSVogbWFya2VyOiBudW1iZXIgb2YgY29tcG9uZW50IGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdGhlIHJlbWFpbmluZyBudW1iZXIgb2YgcGFyYW1ldGVycyAoICVkIHZzICVkKQoARXJyb3Igd2l0aCBTSVogbWFya2VyOiBpbnZhbGlkIHRpbGUgc2l6ZSAodGR4OiAlZCwgdGR5OiAlZCkKAEJhZCBDT0xSIGhlYWRlciBib3ggKGJhZCBzaXplOiAlZCkKAEJhZCBDT0xSIGhlYWRlciBib3ggKENJRUxhYiwgYmFkIHNpemU6ICVkKQoAUFRFUk0gY2hlY2sgZmFpbHVyZTogJWQgcmVtYWluaW5nIGJ5dGVzIGluIGNvZGUgYmxvY2sgKCVkIHVzZWQgLyAlZCkKAE1hbGZvcm1lZCBIVCBjb2RlYmxvY2suIE9uZSBvZiB0aGUgZm9sbG93aW5nIGNvbmRpdGlvbiBpcyBub3QgbWV0OiAyIDw9IFNjdXAgPD0gbWluKExjdXAsIDQwNzkpCgBJbnZhbGlkIHZhbHVlcyBmb3IgY29tcCA9ICVkIDogcHJlYz0ldSAoc2hvdWxkIGJlIGJldHdlZW4gMSBhbmQgMzggYWNjb3JkaW5nIHRvIHRoZSBKUEVHMjAwMCBub3JtLiBPcGVuSnBlZyBvbmx5IHN1cHBvcnRzIHVwIHRvIDMxKQoASW52YWxpZCBiaXQgbnVtYmVyICVkIGluIG9wal90Ml9yZWFkX3BhY2tldF9oZWFkZXIoKQoAU3RyZWFtIGVycm9yIQoARXJyb3Igb24gd3JpdGluZyBzdHJlYW0hCgBTdHJlYW0gcmVhY2hlZCBpdHMgZW5kICEKAEV4cGVjdGVkIGEgU09DIG1hcmtlciAKAEludmFsaWQgYm94IHNpemUgJWQgZm9yIGJveCAnJWMlYyVjJWMnLiBOZWVkICVkIGJ5dGVzLCAlZCBieXRlcyByZW1haW5pbmcgCgBNYWxmb3JtZWQgSFQgY29kZWJsb2NrLiBEZWNvZGluZyB0aGlzIGNvZGVibG9jayBpcyBzdG9wcGVkLiBVX3EgaXMgbGFyZ2VyIHRoYW4gemVybyBiaXRwbGFuZXMgKyAxIAoATWFsZm9ybWVkIEhUIGNvZGVibG9jay4gRGVjb2RpbmcgdGhpcyBjb2RlYmxvY2sgaXMgc3RvcHBlZC4gVV9xIGlzbGFyZ2VyIHRoYW4gYml0cGxhbmVzICsgMSAKAENPTFIgQk9YIG1ldGggdmFsdWUgaXMgbm90IGEgcmVndWxhciB2YWx1ZSAoJWQpLCBzbyB3ZSB3aWxsIGlnbm9yZSB0aGUgZW50aXJlIENvbG91ciBTcGVjaWZpY2F0aW9uIGJveC4gCgBXaGlsZSByZWFkaW5nIENDUF9RTlRTVFkgZWxlbWVudCBpbnNpZGUgUUNEIG9yIFFDQyBtYXJrZXIgc2VnbWVudCwgbnVtYmVyIG9mIHN1YmJhbmRzICglZCkgaXMgZ3JlYXRlciB0byBPUEpfSjJLX01BWEJBTkRTICglZCkuIFNvIHdlIGxpbWl0IHRoZSBudW1iZXIgb2YgZWxlbWVudHMgc3RvcmVkIHRvIE9QSl9KMktfTUFYQkFORFMgKCVkKSBhbmQgc2tpcCB0aGUgcmVzdC4gCgBKUDIgSUhEUiBib3g6IGNvbXByZXNzaW9uIHR5cGUgaW5kaWNhdGUgdGhhdCB0aGUgZmlsZSBpcyBub3QgYSBjb25mb3JtaW5nIEpQMiBmaWxlICglZCkgCgBUaWxlIGluZGV4IHByb3ZpZGVkIGJ5IHRoZSB1c2VyIGlzIGluY29ycmVjdCAlZCAobWF4ID0gJWQpIAoARXJyb3IgZGVjb2RpbmcgY29tcG9uZW50ICVkLgpUaGUgbnVtYmVyIG9mIHJlc29sdXRpb25zIHRvIHJlbW92ZSAoJWQpIGlzIGdyZWF0ZXIgb3IgZXF1YWwgdGhhbiB0aGUgbnVtYmVyIG9mIHJlc29sdXRpb25zIG9mIHRoaXMgY29tcG9uZW50ICglZCkKTW9kaWZ5IHRoZSBjcF9yZWR1Y2UgcGFyYW1ldGVyLgoKAEltYWdlIGRhdGEgaGFzIGJlZW4gdXBkYXRlZCB3aXRoIHRpbGUgJWQuCgo=");i(a,16656,"IwClAEMAZgCDAO6oFADf2CMAvhBDAP/1gwB+IFUAX1EjADUAQwBORIMAzsQUAM/MIwD+4kMA/5mDAJYAxQA/MSMApQBDAF5EgwDOyBQA3xEjAP70QwD//IMAngBVAHcAIwA1AEMA//GDAK6IFAC3ACMA/vhDAO/kgwCOiMUAHxEjAKUAQwBmAIMA7qgUAN9UIwC+EEMA7yKDAH4gVQB/IiMANQBDAE5EgwDOxBQAvxEjAP7iQwD3AIMAlgDFAD8iIwClAEMAXkSDAM7IFADXACMA/vRDAP+6gwCeAFUAbwAjADUAQwD/5oMArogUAK+iIwD++EMA5wCDAI6IxQAvIgIAxQCEAH4gAgDOxCQA9wACAP6iRABWAAIAngAUANcAAgC+EIQAZgACAK6IJADfEQIA7qhEADYAAgCOiBQAHxECAMUAhABuAAIAzogkAP+IAgD+uEQATkQCAJYAFAC3AAIA/uSEAF5EAgCmACQA5wACAN5URAAuIgIAPgAUAHcAAgDFAIQAfiACAM7EJAD/8QIA/qJEAFYAAgCeABQAvxECAL4QhABmAAIArogkAO8iAgDuqEQANgACAI6IFAB/IgIAxQCEAG4AAgDOiCQA7+QCAP64RABORAIAlgAUAK+iAgD+5IQAXkQCAKYAJADf2AIA3lREAC4iAgA+ABQAX1ECAFUAhABmAAIA3ogkAP8yAgD+EUQATkQCAK4AFAC3AAIAfjGEAF5RAgDGACQA1wACAO4gRAAeEQIAngAUAHcAAgBVAIQAXlQCAM5EJADnAAIA/vFEADYAAgCmABQAX1UCAP50hAA+EQIAviAkAH90AgDexEQA//gCAJYAFAAvIgIAVQCEAGYAAgDeiCQA9wACAP4RRABORAIArgAUAI+IAgB+MYQAXlECAMYAJADPyAIA7iBEAB4RAgCeABQAbwACAFUAhABeVAIAzkQkAN/RAgD+8UQANgACAKYAFAB/IgIA/nSEAD4RAgC+ICQAvyICAN7ERADvIgIAlgAUAD8yAwDe1P30//wUAD4RVQCPiAMAvjKFAOcAJQBeUf6qf3IDAM5E/fjvRBQAfmRFAK+iAwCmAF1V35n98TYA/vVvYgMA3tH99P/mFAB+cVUAv7EDAK6IhQDf1SUATkT+8n9mAwDGAP347+IUAF5URQCfEQMAlgBdVc/I/fEeEe7IZwADAN7U/fT/8xQAPhFVAL8RAwC+MoUA39glAF5R/qovIgMAzkT9+PcAFAB+ZEUAn5gDAKYAXVXXAP3xNgD+9W9EAwDe0f30/7kUAH5xVQC3AAMAroiFAN/cJQBORP7ydwADAMYA/fjv5BQAXlRFAH9zAwCWAF1Vv7j98R4R7sg/MgIApQCEAH5AAgDeECQA3xECAP5yRABWAAIArqgUAL+yAgCWAIQAZgACAMYAJADnAAIA7shEAC4iAgCOiBQAdwACAKUAhABuAAIAzogkAPcAAgD+kUQANgACAK6iFACvqgIA/riEAF4AAgC+ACQAz8QCAO5ERAD/9AIAPiIUAB8RAgClAIQAfkACAN4QJAD/mQIA/nJEAFYAAgCuqBQAtwACAJYAhABmAAIAxgAkANcAAgDuyEQALiICAI6IFABPRAIApQCEAG4AAgDOiCQA7+ICAP6RRAA2AAIArqIUAH9EAgD+uIQAXgACAL4AJACfAAIA7kREAP92AgA+IhQAPzEDAMYAhQD/2f3yfmT+8b+ZAwCuoiUA72b99FYA7uJ/cwMAvphFAPcA/fhmAP52n4gDAI6IFQDf1aUALiLemE9EAwC+soUA//z98m4ilgC3AAMArqolAN/R/fQ2AN7Ub2QDAK6oRQDv6v34XkTu6H9xAwA+MhUAz8SlAP/6zog/MQMAxgCFAP93/fJ+ZP7xv7MDAK6iJQDnAP30VgDu4ncAAwC+mEUA7+T9+GYA/nZ/ZgMAjogVANcApQAuIt6YPzMDAL6yhQD/df3ybiKWAJ+RAwCuqiUA35n99DYA3tRfUQMArqhFAO/s/fheRO7of3IDAD4yFQC/saUA//POiB8RAwDeVP3yHhEUAH5k/vjPzAMAvpFFAO8iJQAuIv7zj4gDAMYAhQD3ABQAXhH+/K+oAwCmADUA38j98T4x/mZvZAMAzsj98v/1FABmAP70v7oDAK4iRQDnACUAPjL+6n9zAwC+soUA31UUAFYAfnGfEQMAlgA1AM/E/fE+M+7oT0QDAN5U/fIeERQAfmT++L+ZAwC+kUUA7+IlAC4i/vN/ZgMAxgCFAO/kFABeEf78n5gDAKYANQDXAP3xPjH+Zm8iAwDOyP3y/7kUAGYA/vS3AAMAriJFAN/RJQA+Mv7qdwADAL6yhQDv7BQAVgB+cX9yAwCWADUAv7j98T4z7uhfVPzx3tH9+tcA/PgWAP3/f3T89H5x/fO/s/zy7+ru6E9E/PGuIgUAv7j8+PcA/vx3APz0XhH99X91/PLf2O7iPzP88b6y/frPiPz4//v9/39z/PRuAP3ztwD88u9m/vk/MfzxngAFAL+6/Pj//f72ZwD89CYA/fWPiPzy39ze1C8i/PHe0f36z8T8+BYA/f9/cvz0fnH987+Z/PLv7O7oRwD88a4iBQCnAPz4//f+/FcA/PReEf31lwD88t/V7uI3APzxvrL9+scA/Pj//v3/f2b89G4A/fOvqPzy5wD++T8y/PGeAAUAv7H8+O/k/vZfVPz0JgD99YcA/PLfmd7UHxETAGUAQwDeAIMAjYgjAE5EEwClAEMAroiDADUAIwDXABMAxQBDAJ4AgwBVACMALiITAJUAQwB+AIMA/hAjAHcAEwBlAEMAzoiDAI2IIwAeERMApQBDAF4AgwA1ACMA5wATAMUAQwC+AIMAVQAjAP8REwCVAEMAPgCDAO5AIwCvohMAZQBDAN4AgwCNiCMATkQTAKUAQwCuiIMANQAjAO9EEwDFAEMAngCDAFUAIwAuIhMAlQBDAH4AgwD+ECMAtwATAGUAQwDOiIMAjYgjAB4REwClAEMAXgCDADUAIwDPxBMAxQBDAL4AgwBVACMA9wATAJUAQwA+AIMA7kAjAG8AAQCEAAEAVgABABQAAQDXAAEAJAABAJYAAQBFAAEAdwABAIQAAQDGAAEAFAABAI+IAQAkAAEA9wABADUAAQAvIgEAhAABAP5AAQAUAAEAtwABACQAAQC/AAEARQABAGcAAQCEAAEApgABABQAAQBPRAEAJAABAOcAAQA1AAEAPxEBAIQAAQBWAAEAFAABAM8AAQAkAAEAlgABAEUAAQBvAAEAhAABAMYAAQAUAAEAnwABACQAAQDvAAEANQABAD8yAQCEAAEA/kABABQAAQCvAAEAJAABAP9EAQBFAAEAXwABAIQAAQCmAAEAFAABAH8AAQAkAAEA3wABADUAAQAfEQEAJAABAFYAAQCFAAEAvwABABQAAQD3AAEAxgABAHcAAQAkAAEA//gBAEUAAQB/AAEAFAABAN8AAQCmAAEAPzEBACQAAQAuIgEAhQABALcAAQAUAAEA70QBAK6iAQBnAAEAJAABAP9RAQBFAAEAlwABABQAAQDPAAEANgABAD8iAQAkAAEAVgABAIUAAQC/sgEAFAABAO9AAQDGAAEAbwABACQAAQD/cgEARQABAJ8AAQAUAAEA1wABAKYAAQBPRAEAJAABAC4iAQCFAAEAr6gBABQAAQDnAAEArqIBAF8AAQAkAAEA/0QBAEUAAQCPiAEAFAABAK+qAQA2AAEAHxECAP74JABWAAIAtgCFAP9mAgDOABQAHhECAJYANQCvqAIA9gAkAD4xAgCmAEUAv7MCAL6yFAD/9QIAZgB+UV9UAgD+8iQALiICAK4ihQDvRAIAxgAUAP/0AgB2ADUAf0QCAN5AJAA+MgIAngBFANcAAgC+iBQA//oCAF4R/vFPRAIA/vgkAFYAAgC2AIUA78gCAM4AFAAeEQIAlgA1AI+IAgD2ACQAPjECAKYARQDfRAIAvrIUAP+oAgBmAH5RbwACAP7yJAAuIgIAriKFAOcAAgDGABQA7+ICAHYANQB/cgIA3kAkAD4yAgCeAEUAv7ECAL6IFAD/cwIAXhH+8T8zAQCEAAEA7iABAMUAAQDPxAEARAABAP8yAQAVAAEAj4gBAIQAAQBmAAEAJQABAK8AAQBEAAEA7yIBAKYAAQBfAAEAhAABAE5EAQDFAAEAz8wBAEQAAQD3AAEAFQABAG8AAQCEAAEAVgABACUAAQCfAAEARAABAN8AAQD+MAEALyIBAIQAAQDuIAEAxQABAM/IAQBEAAEA/xEBABUAAQB3AAEAhAABAGYAAQAlAAEAfwABAEQAAQDnAAEApgABADcAAQCEAAEATkQBAMUAAQC3AAEARAABAL8AAQAVAAEAPwABAIQAAQBWAAEAJQABAJcAAQBEAAEA1wABAP4wAQAfEQIA7qhEAI6IAgDWAMUA//MCAP78JQA+AAIAtgBVAN/YAgD++EQAZgACAH4ghQD/mQIA5gD1ADYAAgCmABUAnwACAP7yRAB2AAIAzkTFAP92AgD+8SUATkQCAK4AVQDPyAIA/vREAF5EAgC+EIUA7+QCAN5U9QAeEQIAlgAVAC8iAgDuqEQAjogCANYAxQD/+gIA/vwlAD4AAgC2AFUAvxECAP74RABmAAIAfiCFAO8iAgDmAPUANgACAKYAFQB/IgIA/vJEAHYAAgDORMUA/9UCAP7xJQBORAIArgBVAG8AAgD+9EQAXkQCAL4QhQDfEQIA3lT1AB4RAgCWABUAX1EDAPYAFAAeEUQAjoilAN/UAwCuolUA/3YkAD4itgCvqgMA5gAUAP/1RABmAIUAz8wDAJ4AxQDvRCQANgD++H8xAwDu6BQA//FEAHYApQDPxAMAfiJVAN/RJABORP70X1EDANYAFADv4kQAXkSFAL8iAwCWAMUA38gkAC4i/vJvIgMA9gAUAB4RRACOiKUAv7EDAK6iVQD/MyQAPiK2AK+oAwDmABQA/7lEAGYAhQC/qAMAngDFAO/kJAA2AP74b2QDAO7oFAD//EQAdgClAM/IAwB+IlUA7+okAE5E/vR/dAMA1gAUAP/6RABeRIUAv7IDAJYAxQDfRCQALiL+8j8x8wD++v3xNgAEAL4ydQDfEfMA3lT98u/k1QB+cf78f3PzAP7z/fgeEQQAlgBVAL+x8wDOALUA39j99GYA/rlfVPMA/nb98SYABACmAHUAnwDzAK4A/fL/99UARgD+9X908wDmAP34FgAEAIYAVQCPiPMAxgC1AO/i/fReEe6oPxHzAP76/fE2AAQAvjJ1AN/R8wDeVP3y//vVAH5x/vx/RPMA/vP9+B4RBACWAFUAf3LzAM4AtQDvIv30ZgD+uU9E8wD+dv3xJgAEAKYAdQC/EfMArgD98v//1QBGAP71PzLzAOYA/fgWAAQAhgBVAG8A8wDGALUAv7j99F4R7qgvIg==");i(a,20764,"AQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAwAAAAMAAAAEAAAABQAAALchQiFnIUIhERERETMzMzN3d3d3AAAAAAAAAAABVgAAAAAAAIBRAACQUQAAAVYAAAEAAACQUQAAgFEAAAE0AAAAAAAAoFEAACBSAAABNAAAAQAAALBRAAAwUgAAARgAAAAAAADAUQAAgFIAAAEYAAABAAAA0FEAAJBSAADBCgAAAAAAAOBRAADgUgAAwQoAAAEAAADwUQAA8FIAACEFAAAAAAAAAFIAAABVAAAhBQAAAQAAABBSAAAQVQAAIQIAAAAAAAAgVgAAgFUAACECAAABAAAAMFYAAJBVAAABVgAAAAAAAEBSAAAwUgAAAVYAAAEAAABQUgAAIFIAAAFUAAAAAAAAYFIAACBTAAABVAAAAQAAAHBSAAAwUwAAAUgAAAAAAACAUgAAIFMAAAFIAAABAAAAkFIAADBTAAABOAAAAAAAAKBSAAAgUwAAATgAAAEAAACwUgAAMFMAAAEwAAAAAAAAwFIAAIBTAAABMAAAAQAAANBSAACQUwAAASQAAAAAAADgUgAAoFMAAAEkAAABAAAA8FIAALBTAAABHAAAAAAAAABTAADgUwAAARwAAAEAAAAQUwAA8FMAAAEWAAAAAAAAAFUAAABUAAABFgAAAQAAABBVAAAQVAAAAVYAAAAAAABAUwAAMFMAAAFWAAABAAAAUFMAACBTAAABVAAAAAAAAGBTAAAgUwAAAVQAAAEAAABwUwAAMFMAAAFRAAAAAAAAgFMAAEBTAAABUQAAAQAAAJBTAABQUwAAAUgAAAAAAACgUwAAYFMAAAFIAAABAAAAsFMAAHBTAAABOAAAAAAAAMBTAACAUwAAATgAAAEAAADQUwAAkFMAAAE0AAAAAAAA4FMAAKBTAAABNAAAAQAAAPBTAACwUwAAATAAAAAAAAAAVAAAwFMAAAEwAAABAAAAEFQAANBTAAABKAAAAAAAACBUAADAUwAAASgAAAEAAAAwVAAA0FMAAAEkAAAAAAAAQFQAAOBTAAABJAAAAQAAAFBUAADwUwAAASIAAAAAAABgVAAAAFQAAAEiAAABAAAAcFQAABBUAAABHAAAAAAAAIBUAAAgVAAAARwAAAEAAACQVAAAMFQAAAEYAAAAAAAAoFQAAEBUAAABGAAAAQAAALBUAABQVAAAARYAAAAAAADAVAAAYFQAAAEWAAABAAAA0FQAAHBUAAABFAAAAAAAAOBUAACAVAAAARQAAAEAAADwVAAAkFQAAAESAAAAAAAAAFUAAKBUAAABEgAAAQAAABBVAACwVAAAAREAAAAAAAAgVQAAwFQAAAERAAABAAAAMFUAANBUAADBCgAAAAAAAEBVAADgVAAAwQoAAAEAAABQVQAA8FQAAMEJAAAAAAAAYFUAAABVAADBCQAAAQAAAHBVAAAQVQAAoQgAAAAAAACAVQAAIFUAAKEIAAABAAAAkFUAADBVAAAhBQAAAAAAAKBVAABAVQAAIQUAAAEAAACwVQAAUFUAAEEEAAAAAAAAwFUAAGBVAABBBAAAAQAAANBVAABwVQAAoQIAAAAAAADgVQAAgFUAAKECAAABAAAA8FUAAJBVAAAhAgAAAAAAAABWAACgVQAAIQIAAAEAAAAQVgAAsFUAAEEBAAAAAAAAIFYAAMBVAABBAQAAAQAAADBWAADQVQAAEQEAAAAAAABAVgAA4FUAABEBAAABAAAAUFYAAPBVAACFAAAAAAAAAGBWAAAAVgAAhQAAAAEAAABwVgAAEFYAAEkAAAAAAAAAgFYAACBWAABJAAAAAQAAAJBWAAAwVgAAJQAAAAAAAACgVgAAQFYAACUAAAABAAAAsFYAAFBWAAAVAAAAAAAAAMBWAABgVgAAFQAAAAEAAADQVgAAcFYAAAkAAAAAAAAA4FYAAIBWAAAJAAAAAQAAAPBWAACQVgAABQAAAAAAAAAAVwAAoFYAAAUAAAABAAAAEFcAALBWAAABAAAAAAAAAABXAADAVgAAAQAAAAEAAAAQVwAA0FYAAAFWAAAAAAAAIFcAACBXAAABVgAAAQAAADBXAAAwVwAAAAEDAwECAwMFBgcHBgYHBwABAwMBAgMDBQYHBwYGBwcFBgcHBgYHBwgICAgICAgIBQYHBwYGBwcICAgICAgICAECAwMCAgMDBgYHBwYGBwcBAgMDAgIDAwYGBwcGBgcHBgYHBwYGBwcICAgICAgICAYGBwcGBgcHCAgICAgICAgDAwQEAwMEBAcHBwcHBwcHAwMEBAMDBAQHBwcHBwcHBwcHBwcHBwcHCAgICAgICAgHBwcHBwcHBwgICAgICAgIAwMEBAMDBAQHBwcHBwcHBwMDBAQDAwQEBwcHBwcHBwcHBwcHBwcHBwgICAgICAgIBwcHBwcHBwcICAgICAgICAECAwMCAgMDBgYHBwYGBwcBAgMDAgIDAwYGBwcGBgcHBgYHBwYGBwcICAgICAgICAYGBwcGBgcHCAgICAgICAgCAgMDAgIDAwYGBwcGBgcHAgIDAwICAwMGBgcHBgYHBwYGBwcGBgcHCAgICAgICAgGBgcHBgYHBwgICAgICAgIAwMEBAMDBAQHBwcHBwcHBwMDBAQDAwQEBwcHBwcHBwcHBwcHBwcHBwgICAgICAgIBwcHBwcHBwcICAgICAgICAMDBAQDAwQEBwcHBwcHBwcDAwQEAwMEBAcHBwcHBwcHBwcHBwcHBwcICAgICAgICAcHBwcHBwcHCAgICAgICAgAAQUGAQIGBgMDBwcDAwcHAAEFBgECBgYDAwcHAwMHBwMDBwcDAwcHBAQHBwQEBwcDAwcHAwMHBwQEBwcEBAcHAQIGBgICBgYDAwcHAwMHBwECBgYCAgYGAwMHBwMDBwcDAwcHAwMHBwQEBwcEBAcHAwMHBwMDBwcEBAcHBAQHBwUGCAgGBggIBwcICAcHCAgFBggIBgYICAcHCAgHBwgIBwcICAcHCAgHBwgIBwcICAcHCAgHBwgIBwcICAcHCAgGBggIBgYICAcHCAgHBwgIBgYICAYGCAgHBwgIBwcICAcHCAgHBwgIBwcICAcHCAgHBwgIBwcICAcHCAgHBwgIAQIGBgICBgYDAwcHAwMHBwECBgYCAgYGAwMHBwMDBwcDAwcHAwMHBwQEBwcEBAcHAwMHBwMDBwcEBAcHBAQHBwICBgYCAgYGAwMHBwMDBwcCAgYGAgIGBgMDBwcDAwcHAwMHBwMDBwcEBAcHBAQHBwMDBwcDAwcHBAQHBwQEBwcGBggIBgYICAcHCAgHBwgIBgYICAYGCAgHBwgIBwcICAcHCAgHBwgIBwcICAcHCAgHBwgIBwcICAcHCAgHBwgIBgYICAYGCAgHBwgIBwcICAYGCAgGBggIBwcICAcHCAgHBwgIBwcICAcHCAgHBwgIBwcICAcHCAgHBwgIBwcICAABAwMBAgMDBQYHBwYGBwcAAQMDAQIDAwUGBwcGBgcHBQYHBwYGBwcICAgICAgICAUGBwcGBgcHCAgICAgICAgBAgMDAgIDAwYGBwcGBgcHAQIDAwICAwMGBgcHBgYHBwYGBwcGBgcHCAgICAgICAgGBgcHBgYHBwgICAgICAgIAwMEBAMDBAQHBwcHBwcHBwMDBAQDAwQEBwcHBwcHBwcHBwcHBwcHBwgICAgICAgIBwcHBwcHBwcICAgICAgICAMDBAQDAwQEBwcHBwcHBwcDAwQEAwMEBAcHBwcHBwcHBwcHBwcHBwcICAgICAgICAcHBwcHBwcHCAgICAgICAgBAgMDAgIDAwYGBwcGBgcHAQIDAwICAwMGBgcHBgYHBwYGBwcGBgcHCAgICAgICAgGBgcHBgYHBwgICAgICAgIAgIDAwICAwMGBgcHBgYHBwICAwMCAgMDBgYHBwYGBwcGBgcHBgYHBwgICAgICAgIBgYHBwYGBwcICAgICAgICAMDBAQDAwQEBwcHBwcHBwcDAwQEAwMEBAcHBwcHBwcHBwcHBwcHBwcICAgICAgICAcHBwcHBwcHCAgICAgICAgDAwQEAwMEBAcHBwcHBwcHAwMEBAMDBAQHBwcHBwcHBwcHBwcHBwcHCAgICAgICAgHBwcHBwcHBwgICAgICAgIAAMBBAMGBAcBBAIFBAcFBwADAQQDBgQHAQQCBQQHBQcBBAIFBAcFBwIFAgUFBwUHAQQCBQQHBQcCBQIFBQcFBwMGBAcGCAcIBAcFBwcIBwgDBgQHBggHCAQHBQcHCAcIBAcFBwcIBwgFBwUHBwgHCAQHBQcHCAcIBQcFBwcIBwgBBAIFBAcFBwIFAgUFBwUHAQQCBQQHBQcCBQIFBQcFBwIFAgUFBwUHAgUCBQUHBQcCBQIFBQcFBwIFAgUFBwUHBAcFBwcIBwgFBwUHBwgHCAQHBQcHCAcIBQcFBwcIBwgFBwUHBwgHCAUHBQcHCAcIBQcFBwcIBwgFBwUHBwgHCAMGBAcGCAcIBAcFBwcIBwgDBgQHBggHCAQHBQcHCAcIBAcFBwcIBwgFBwUHBwgHCAQHBQcHCAcIBQcFBwcIBwgGCAcICAgICAcIBwgICAgIBggHCAgICAgHCAcICAgICAcIBwgICAgIBwgHCAgICAgHCAcICAgICAcIBwgICAgIBAcFBwcIBwgFBwUHBwgHCAQHBQcHCAcIBQcFBwcIBwgFBwUHBwgHCAUHBQcHCAcIBQcFBwcIBwgFBwUHBwgHCAcIBwgICAgIBwgHCAgICAgHCAcICAgICAcIBwgICAgIBwgHCAgICAgHCAcICAgICAcIBwgICAgIBwgHCAgICAgJCQoKCQkKCgwMDQsMDA0LCQkKCgkJCgoMDAsNDAwLDQwMDQ0MDAsLDAkNCgkMCgsMDAsLDAwNDQwJCwoJDAoNCQkKCgkJCgoMDA0LDAwNCwkJCgoJCQoKDAwLDQwMCw0MDA0NDAwLCwwJDQoJDAoLDAwLCwwMDQ0MCQsKCQwKDQoKCgoKCgoKDQsNCw0LDQsKCgkJCgoJCQ0LDAwNCwwMDQ0NDQsLCwsNCg0KCgsKCw0NDAwLCwwMDQoMCQoLCQwKCgkJCgoJCQsNDAwLDQwMCgoKCgoKCgoLDQsNCw0LDQsLDAwNDQwMCwoMCQoNCQwLCwsLDQ0NDQsKCwoKDQoN");i(a,24649,"AQABAAEAAQAAAQEAAAEBAAEAAQABAAEAAAAAAQEBAQAAAAAAAQABAAAAAAEBAQEAAAABAAEBAQ==");i(a,24713,"AQABAAEAAQAAAQEAAAEBAAEAAQABAAEAAAAAAQEBAQAAAAAAAQABAAAAAAEBAQEAAAABAAEBAQ==");i(a,24777,"AQABAAEAAQ==");i(a,24793,"AQABAAEAAQAAAAABAQEBAAAAAAABAAEAAAAAAQEBAQAAAAAAAQABAQEAAAEBAAAAAQABAAEAAQEBAQEBAQEBAAEAAQABAAEAAAAAAQEBAQABAAABAQABAAAAAAEBAQEAAQABAQEBAQIAAAAEAAAABAAAAAgAAACQ/wAADAAAABkAAABS/wAAFAAAABoAAABT/wAAFAAAABsAAABe/wAAFAAAABwAAABc/wAAFAAAAB0AAABd/wAAFAAAAB4AAABf/wAAFAAAAB8AAABR/wAAAgAAACAAAABV/wAABAAAACEAAABX/wAABAAAACIAAABY/wAAEAAAACMAAABg/wAABAAAACQAAABh/wAAEAAAACUAAACR/w==");i(a,25080,"Y/8AAAQAAAAmAAAAZP8AABQAAAAnAAAAdP8AABQAAAAoAAAAeP8AAAQAAAApAAAAUP8AAAQAAAAqAAAAWf8AAAQAAAArAAAAdf8AABQAAAAsAAAAd/8AABQAAAAtAAAAAAAAABQ=");i(a,25200,"LgAAAC8AAAAwAAAAMQAAADIAAAAzAAAANAAAADUAAAAgIFBqNwAAAHB5dGY4AAAAaDJwajk=");i(a,25264,"cmRoaToAAABybG9jOwAAAGNjcGI8AAAAcmxjcD0AAABwYW1jPgAAAGZlZGM/AAAAAAAAAGoAAABqAAAAawAAAGsAAABrAAAAawAAAGsAAABrAAAAagAAAGoAAABrAAAAagAAAGoAAABqAAAAag==");i(a,25408,"awAAAGsAAABqAAAAagAAAAAAAABqAAAAAAAAAGs=");i(a,25572,"aGY=");i(a,25584,"GQALABkZGQAAAAAFAAAAAAAACQAAAAALAAAAAAAAAAAZAAoKGRkZAwoHAAEACQsYAAAJBgsAAAsABhkAAAAZGRk=");i(a,25665,"DgAAAAAAAAAAGQALDRkZGQANAAACAAkOAAAACQAOAAAO");i(a,25723,"DA==");i(a,25735,"EwAAAAATAAAAAAkMAAAAAAAMAAAM");i(a,25781,"EA==");i(a,25793,"DwAAAAQPAAAAAAkQAAAAAAAQAAAQ");i(a,25839,"Eg==");i(a,25851,"EQAAAAARAAAAAAkSAAAAAAASAAASAAAaAAAAGhoa");i(a,25906,"GgAAABoaGgAAAAAAAAk=");i(a,25955,"FA==");i(a,25967,"FwAAAAAXAAAAAAkUAAAAAAAUAAAU");i(a,26013,"Fg==");i(a,26025,"FQAAAAAVAAAAAAkWAAAAAAAWAAAWAAAwMTIzNDU2Nzg5QUJDREVG");i(a,26064,"IHABAAAAAAAF");i(a,26084,"bA==");i(a,26108,"bQAAAG4AAADIaw==");i(a,26132,"Ag==");i(a,26148,"//////////8=");i(a,26216,"BQ==");i(a,26228,"bw==");i(a,26252,"bQAAAHAAAADYawAAAAQ=");i(a,26276,"AQ==");i(a,26292,"/////wo=")}var o=new ArrayBuffer(16);var p=new Int32Array(o);var q=new Float32Array(o);var r=new Float64Array(o);function s(t){return p[t]}function u(t,v){p[t]=v}function w(){return r[0]}function x(v){r[0]=v}function y(z,v,A){z=z>>>0;A=A>>>0;if(z+A>a.length)throw"trap: invalid memory.fill";a.fill(v,z,z+A)}function B(z,C,A){a.copyWithin(z,C,C+A)}function D(){throw new Error("abort")}function za(n){var E=new ArrayBuffer(16777216);var F=new Int8Array(E);var G=new Int16Array(E);var H=new Int32Array(E);var I=new Uint8Array(E);var J=new Uint16Array(E);var K=new Uint32Array(E);var L=new Float32Array(E);var M=new Float64Array(E);var N=Math.imul;var O=Math.fround;var P=Math.abs;var Q=Math.clz32;var R=Math.min;var S=Math.max;var T=Math.floor;var U=Math.ceil;var V=Math.trunc;var W=Math.sqrt;var X=n.a;var Y=X.a;var Z=X.b;var _=X.c;var $=X.d;var aa=X.e;var ba=X.f;var ca=X.g;var da=X.h;var ea=X.i;var fa=X.j;var ga=X.k;var ha=X.l;var ia=X.m;var ja=X.n;var ka=X.o;var la=X.p;var ma=X.q;var na=94240;var oa=0;var pa=0;var qa=0;+// EMSCRIPTEN_START_FUNCS+function Zc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,z=0,A=0,C=0,D=0,E=0,M=0,P=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=O(0),ha=0,ia=0,ja=0,ka=0,la=0,ma=0,oa=0,pa=0,qa=0,sa=0,ta=0,ua=0,va=0,wa=0;Y=na-96|0;na=Y;C=H[a+8>>2];a:{b:{c:{if(!H[a>>2]){g=N(H[C+16>>2]-H[C+8>>2]|0,H[C+20>>2]-H[C+12>>2]|0)<<2;c=Ia(g);H[C+60>>2]=c;if(!c){Ba(H[a+32>>2],1,8023,0);d=a+28|0;break b}if(!g){break c}y(c,0,g);break c}c=H[C+60>>2];if(!c){break c}Ca(c);H[C+60>>2]=0}if(!H[H[a+28>>2]>>2]){break a}oa=H[a+16>>2];c=H[oa+28>>2]+N(H[oa+24>>2],152)|0;va=H[c-152>>2];wa=H[c-144>>2];pa=H[a+20>>2];qa=H[a+12>>2];ua=H[a+4>>2];d=a+28|0;d:{q=H[b+4>>2];f=0;e:{if((q|0)<=0){break e}k=H[b>>2];c=0;f:{while(1){g=k+N(c,12)|0;if(!H[g>>2]){break f}c=c+1|0;if((q|0)!=(c|0)){continue}break}f=0;break e}f=H[g+4>>2]}if(f){break d}f=Ea(1,156);if(!f){Ba(H[a+32>>2],1,6313,0);break b}H[f+140>>2]=0;c=0;k=H[b+4>>2];g:{if((k|0)==2147483647){break g}g=H[b>>2];if((k|0)>0){while(1){q=g+N(c,12)|0;if(!H[q>>2]){k=H[q+8>>2];if(k){ra[k|0](H[q+4>>2]);g=H[b>>2]}b=g+N(c,12)|0;H[b+8>>2]=15;H[b+4>>2]=f;c=1;break g}c=c+1|0;if((k|0)!=(c|0)){continue}break}}g=Ha(g,N(k,12)+12|0);c=0;if(!g){break g}H[b>>2]=g;c=H[b+4>>2];g=g+N(c,12)|0;H[g+8>>2]=15;H[g+4>>2]=f;H[g>>2]=0;H[b+4>>2]=c+1;c=1}if(c){break d}Ba(H[a+32>>2],1,8338,0);b=H[f+116>>2];if(b){Ca(b);H[f+116>>2]=0}b=H[f+120>>2];if(b){Ca(b);H[f+120>>2]=0}Ca(H[f+148>>2]);Ca(f);break b}H[f+144>>2]=H[a+24>>2];E=H[a+40>>2];_=H[a+36>>2];S=H[a+32>>2];j=H[pa+808>>2];b=H[qa+16>>2];h:{V=H[pa+16>>2];i:{if(V&64){k=na-304|0;na=k;j:{if(j){if(_){Ba(S,1,3219,0);break j}Ba(S,1,3219,0);break j}i=H[f+116>>2];c=H[C+20>>2]-H[C+12>>2]|0;b=H[C+16>>2]-H[C+8>>2]|0;g=N(c,b);k:{l:{if(g>>>0>K[f+132>>2]){Ca(i);j=g<<2;i=Ia(j);H[f+116>>2]=i;if(!i){i=0;break j}H[f+132>>2]=g;break l}if(!i){break k}j=g<<2}if(!j){break k}y(i,0,j)}i=H[f+120>>2];m:{if(K[f+136>>2]>2639){break m}Ca(i);i=Ia(10560);H[f+120>>2]=i;if(i){break m}i=0;break j}H[f+136>>2]=2640;y(i,0,10560);H[f+128>>2]=c;H[f+124>>2]=b;n=H[C+24>>2];if(!n){i=1;break j}q=H[C+28>>2];i=1;n:{o:{p:{q:{j=H[C+52>>2];r:{if(j){g=j&3;c=H[C+4>>2];i=0;s:{if(j>>>0>=4){b=j&-4;while(1){o=c+(i<<3)|0;h=H[o+28>>2]+(H[o+20>>2]+(H[o+12>>2]+(H[o+4>>2]+h|0)|0)|0)|0;i=i+4|0;z=z+4|0;if((b|0)!=(z|0)){continue}break}if(!g){break s}}while(1){h=H[(c+(i<<3)|0)+4>>2]+h|0;i=i+1|0;l=l+1|0;if((g|0)!=(l|0)){continue}break}}if(!H[f+144>>2]&(j|0)==1){break o}if(K[f+152>>2]>=h>>>0){break r}z=Ha(H[f+148>>2],h);if(z){break q}i=0;break j}if(!H[f+144>>2]){break j}}z=H[f+148>>2];if(z){break p}i=0;break j}H[f+152>>2]=h;H[f+148>>2]=z}if(!H[C+52>>2]){h=0;break n}j=H[C+4>>2];h=0;i=0;while(1){g=i<<3;c=g+j|0;b=H[c+4>>2];if(b){B(h+z|0,H[c>>2],b)}j=H[C+4>>2];h=H[(g+j|0)+4>>2]+h|0;i=i+1|0;if(i>>>0<K[C+52>>2]){continue}break}break n}z=H[H[C+4>>2]>>2]}i=0;j=0;c=H[C+40>>2];g=0;t:{if(!c){break t}b=H[C>>2];j=H[b+8>>2];g=0;if((c|0)==1){break t}g=H[b+32>>2]}c=n-q|0;j=g+j|0;u:{if(!j){l=0;break u}i=1;b=H[C>>2];p=H[b>>2];l=0;if((j|0)==1){i=0;break u}l=H[b+24>>2]}P=c+1|0;ha=H[f+116>>2];s=H[f+120>>2];X=H[C+12>>2];x=H[C+20>>2];ca=H[C+8>>2];D=H[C+16>>2];v:{w:{x:{y:{z:{A:{B:{C:{if(!(!i|l)){if(!_){break C}Ba(S,2,10806,0);j=1;break B}if(j>>>0<4){break B}if(_){H[k+112>>2]=j;Ba(S,1,9590,k+112|0);break v}H[k+96>>2]=j;Ba(S,1,9590,k+96|0);i=0;break j}Ba(S,2,10806,0);i=H[C+24>>2];if(i>>>0>30){break A}e=1;if(i>>>0>=P>>>0){break y}break w}i=H[C+24>>2];if(i>>>0<=30){break z}if(!_){break A}H[k+32>>2]=H[C+24>>2];Ba(S,1,12302,k+32|0);break v}H[k>>2]=i;Ba(S,1,12302,k);i=0;break j}if(i>>>0<P>>>0){break x}if(j>>>0<2){e=j;break y}if((i|0)!=(P|0)){e=j;break y}e=1;if(I[26384]){break y}if(!_){F[26384]=1;H[k+64>>2]=j;Ba(S,2,10299,k- -64|0);break y}if(!I[26384]){F[26384]=1;H[k+80>>2]=j;Ba(S,2,10299,k+80|0)}}if(!(!(p>>>0<2|h>>>0<p>>>0)&l+p>>>0<=h>>>0)){if(_){i=0;Ba(S,1,9532,0);break j}i=0;Ba(S,1,9532,0);break j}U=p+z|0;b=I[U-1|0];i=b<<4|I[U-2|0]&15;if(!(!(i>>>0<2|(b|0)==255)&(i|0)<=(p|0))){if(_){i=0;Ba(S,1,15305,0);break j}i=0;Ba(S,1,15305,0);break j}sa=H[C+28>>2];H[k+272>>2]=0;H[k+280>>2]=0;H[k+264>>2]=0;H[k+268>>2]=0;H[k+296>>2]=0;H[k+300>>2]=0;H[k+284>>2]=0;H[k+288>>2]=0;b=i-1|0;H[k+276>>2]=b;o=(p+z|0)-i|0;H[k+256>>2]=o;q=I[o|0];c=8;H[k+272>>2]=8;j=o+1|0;H[k+256>>2]=j;g=i-2|0;H[k+276>>2]=g;n=(b|0)==1?q|15:q;b=0;q=b;H[k+264>>2]=n;H[k+268>>2]=b;H[k+280>>2]=!b&(n|0)==255;u=o&3;D:{E:{if((u|0)==3){break E}v=0;if(!((n|0)!=255|(b|0)!=0|I[j|0]<=143)){break D}b=255;b=i>>>0>=3?I[j|0]:b;h=i-3|0;H[k+276>>2]=h;o=!q&(n|0)==255;c=o?15:16;H[k+272>>2]=c;R=j+(i>>>0>2)|0;H[k+256>>2]=R;b=(g|0)==1?b|15:b;g=0;H[k+280>>2]=!g&(b|0)==255;g=b;j=n;b=o?7:8;o=b&31;if((b&63)>>>0>=32){m=j<<o;b=0}else{m=(1<<o)-1&j>>>32-o|q<<o;b=j<<o}n=b|g;b=m|r;q=b;H[k+264>>2]=n;H[k+268>>2]=b;if((u|0)==2){break E}o=255;v=0;if(!((g|0)!=255|(r|0)!=0|I[R|0]<=143)){break D}o=i>>>0>=4?I[R|0]:o;j=i-4|0;H[k+276>>2]=j;R=R+(i>>>0>3)|0;H[k+256>>2]=R;b=(h|0)==1?o|15:o;o=0;m=o;H[k+280>>2]=!m&(b|0)==255;o=!r&(g|0)==255;c=(o?7:8)+c|0;H[k+272>>2]=c;g=b;h=n;b=o?7:8;r=b&31;if((b&63)>>>0>=32){o=h<<r;b=0}else{o=(1<<r)-1&h>>>32-r|q<<r;b=h<<r}n=b|g;b=m|o;q=b;H[k+264>>2]=n;H[k+268>>2]=b;if((u|0)==1){break E}v=0;if(!((g|0)!=255|(m|0)!=0|I[R|0]<=143)){break D}b=255;b=i>>>0>=5?I[R|0]:b;H[k+276>>2]=i-5;H[k+256>>2]=R+(i>>>0>4);o=0;b=(j|0)==1?b|15:b;H[k+280>>2]=1&(b|0)==255;g=!m&(g|0)==255;c=(g?7:8)+c|0;H[k+272>>2]=c;j=n;g=g?7:8;h=g&31;if((g&63)>>>0>=32){E=j<<h;g=0}else{E=(1<<h)-1&j>>>32-h|q<<h;g=j<<h}n=g|b;b=o|E;q=b;H[k+264>>2]=n;H[k+268>>2]=b}b=n;c=64-c|0;g=c&31;if((c&63)>>>0>=32){w=b<<g;b=0}else{w=(1<<g)-1&b>>>32-g|q<<g;b=b<<g}H[k+264>>2]=b;H[k+268>>2]=w;v=1}if(!v){if(_){i=0;Ba(S,1,11470,0);break j}i=0;Ba(S,1,11470,0);break j}A=D-ca|0;o=0;m=i;r=i-2|0;H[k+244>>2]=r;c=p+z|0;b=c-3|0;H[k+224>>2]=b;g=I[c-2|0];c=g>>>0>143;H[k+248>>2]=c;q=0;n=g>>>4|0;H[k+232>>2]=n;H[k+236>>2]=0;h=(n&7)==7?3:4;H[k+240>>2]=h;g=(b&3)+1|0;R=g>>>0<r>>>0?g:r;F:{G:{if(r){while(1){i=c;u=b;b=b-1|0;H[k+224>>2]=b;g=I[u|0];c=g>>>0>143;H[k+248>>2]=c;j=h&31;if((h&63)>>>0>=32){E=g<<j;j=0}else{E=(1<<j)-1&g>>>32-j;j=g<<j}n=j|n;H[k+232>>2]=n;q=q|E;H[k+236>>2]=q;h=(i&1?(g&127)==127?7:8:8)+h|0;H[k+240>>2]=h;o=o+1|0;if((R|0)!=(o|0)){continue}break}j=r-R|0;H[k+244>>2]=j;if(h>>>0>32){break F}if((j|0)>=4){o=H[u-4>>2];H[k+224>>2]=u-5;H[k+244>>2]=j-4;break G}if((j|0)<=0){o=0;break G}H:{if((R|0)==(m-3|0)){i=24;o=0;break H}E=j&1;r=j&2147483646;i=24;o=0;g=0;while(1){u=b-1|0;H[k+224>>2]=u;R=I[b|0];b=b-2|0;H[k+224>>2]=b;H[k+244>>2]=j-1;u=I[u|0];j=j-2|0;H[k+244>>2]=j;o=R<<i|o|u<<i-8;i=i-16|0;g=g+2|0;if((r|0)!=(g|0)){continue}break}if(!E){break G}}H[k+224>>2]=b-1;b=I[b|0];H[k+244>>2]=j-1;o=b<<i|o;break G}H[k+244>>2]=r-R}u=o&255;H[k+248>>2]=u>>>0>143;g=c?(o&2130706432)==2130706432?7:8:8;c=g+(o>>>0<=2415919103?8:(o&8323072)==8323072?7:8)|0;i=o>>>16&255;b=c+(i>>>0<=143?8:(o&32512)==32512?7:8)|0;j=o>>>8&255;H[k+240>>2]=b+((j>>>0<=143?8:(o&127)==127?7:8)+h|0);b=i<<g|o>>>24|j<<c|u<<b;c=h&31;if((h&63)>>>0>=32){o=b<<c;b=0}else{o=(1<<c)-1&b>>>32-c;b=b<<c}H[k+232>>2]=b|n;H[k+236>>2]=o|q}Zb(k+192|0,z,p-m|0,255);b=0;I:{if(e>>>0<2){break I}Zb(k+160|0,U,l,0);b=0;if((e|0)==2){break I}n=0;q=0;o=0;H[k+152>>2]=1;H[k+144>>2]=0;H[k+136>>2]=0;H[k+140>>2]=0;c=l;i=c-1|0;H[k+148>>2]=i;b=(p+z|0)+c|0;g=b-1|0;H[k+128>>2]=g;R=g&3;J:{if((c|0)<=0){b=g;break J}b=b-2|0;H[k+128>>2]=b;n=I[g|0]}H[k+136>>2]=n;H[k+140>>2]=0;p=n>>>0>143;H[k+152>>2]=p;l=(n&127)==127?7:8;H[k+144>>2]=l;K:{if(!R){break K}u=c-2|0;H[k+148>>2]=u;L:{if((c|0)<2){g=b;break L}g=b-1|0;H[k+128>>2]=g;o=I[b|0]}p=o>>>0>143;H[k+152>>2]=p;b=l&31;if((l&63)>>>0>=32){m=o<<b;b=0}else{m=(1<<b)-1&o>>>32-b;b=o<<b}q=b|n;H[k+136>>2]=q;H[k+140>>2]=m;l=(n>>>0<=143?8:(o&127)==127?7:8)+l|0;H[k+144>>2]=l;if((R|0)==1){b=g;n=q;q=m;c=i;i=u;break K}h=c-3|0;H[k+148>>2]=h;M:{if((c|0)<3){j=g;break M}j=g-1|0;H[k+128>>2]=j;aa=I[g|0]}p=aa>>>0>143;H[k+152>>2]=p;b=l&31;if((l&63)>>>0>=32){E=aa<<b;b=0}else{E=(1<<b)-1&aa>>>32-b;b=aa<<b}n=b|q;b=m|E;q=b;H[k+136>>2]=n;H[k+140>>2]=b;l=(o>>>0<=143?8:(aa&127)==127?7:8)+l|0;H[k+144>>2]=l;if((R|0)==2){b=j;c=u;i=h;break K}i=c-4|0;H[k+148>>2]=i;o=0;N:{if((c|0)<4){b=j;break N}b=j-1|0;H[k+128>>2]=b;o=I[j|0]}p=o>>>0>143;H[k+152>>2]=p;c=l&31;if((l&63)>>>0>=32){w=o<<c;c=0}else{w=(1<<c)-1&o>>>32-c;c=o<<c}n=c|n;c=q|w;q=c;H[k+136>>2]=n;H[k+140>>2]=c;l=(aa>>>0<=143?8:(o&127)==127?7:8)+l|0;H[k+144>>2]=l;c=h}if(l>>>0<=32){O:{if((c|0)>=5){g=H[b-3>>2];H[k+148>>2]=c-5;H[k+128>>2]=b-4;break O}g=0;if((c|0)<2){break O}c=24;while(1){j=b-1|0;H[k+128>>2]=j;b=I[b|0];o=i-1|0;H[k+148>>2]=o;g=b<<c|g;h=i>>>0>1;b=j;c=c-8|0;i=o;if(h){continue}break}}h=g&255;H[k+152>>2]=h>>>0>143;i=p?(g&2130706432)==2130706432?7:8:8;c=i+(g>>>0<=2415919103?8:(g&8323072)==8323072?7:8)|0;o=g>>>16&255;b=c+(o>>>0<=143?8:(g&32512)==32512?7:8)|0;j=g>>>8&255;H[k+144>>2]=b+((j>>>0<=143?8:(g&127)==127?7:8)+l|0);b=o<<i|g>>>24|j<<c|h<<b;c=l&31;if((l&63)>>>0>=32){m=b<<c;b=0}else{m=(1<<c)-1&b>>>32-c;b=b<<c}H[k+136>>2]=b|n;H[k+140>>2]=m|q}b=1}aa=b;$=x-X|0;ta=P+1|0;F[s+2112|0]=0;u=s+2112|0;g=Ya(k+256|0);if((A|0)>0){P=sa-1|0;l=s;j=u;b=0;c=ha;z=0;while(1){R=z;h=J[(b<<8|(lb(k+224|0)&127)<<1)+16656>>1];P:{if(b){break P}b=g-2|0;h=(b|0)==-1?h:0;if((g|0)>1){g=b;break P}g=Ya(k+256|0)}q=H[k+236>>2];n=H[k+232>>2];i=H[k+240>>2];x=h>>>4|0;p=H[l>>2]|(x&3|h>>>2&48)<<Z;H[l>>2]=p;E=h&16;b=h>>>5&7|E>>>4;o=i;i=h&7;z=o-i|0;n=((1<<i)-1&q)<<32-i|n>>>i;q=q>>>i|0;o=n;i=0;if((A|0)>(R|2)){i=J[(b<<8|(n&127)<<1)+16656>>1];Q:{if(b){break Q}b=g-2|0;i=(b|0)==-1?i:0;if((g|0)>1){g=b;break Q}g=Ya(k+256|0)}b=i&7;z=z-b|0;n=((1<<b)-1&q)<<32-b|n>>>b;q=q>>>b|0;o=n;b=i>>>4&1|i>>>5&7}H[l>>2]=p|(i<<2&768|i&48)<<Z+4;p=i>>>2&2|h>>>3&1;R:{if((p|0)!=3){break R}m=g-2|0;p=(m|0)==-1?4:3;if((g|0)>1){g=m;break R}g=Ya(k+256|0)}S:{if(!p){H[k+120>>2]=1;H[k+124>>2]=1;o=0;break S}if(p>>>0<=2){m=I[(o&7)+20804|0];w=m>>>2&7;r=m&3;m=(((-1<<w^-1)&o>>>r)+(m>>>5|0)|0)+1|0;o=(p|0)==1;H[k+124>>2]=o?1:m;H[k+120>>2]=o?m:1;o=r+w|0;break S}v=o;o=I[(o&7)+20804|0];U=o&3;m=v>>>U|0;if((p|0)==3){X=(o>>>5|0)+1|0;if((U|0)==3){H[k+124>>2]=m&1|2;o=o>>>2&7;H[k+120>>2]=X+((-1<<o^-1)&m>>>1);o=o+4|0;break S}r=I[(m&7)+20804|0];p=r&3;m=m>>>p|0;w=o>>>2&7;H[k+120>>2]=X+(m&(-1<<w^-1));o=r>>>2&7;H[k+124>>2]=(((-1<<o^-1)&m>>>w)+(r>>>5|0)|0)+1;o=o+(p+(w+U|0)|0)|0;break S}r=I[(m&7)+20804|0];p=r&3;m=m>>>p|0;w=o>>>2&7;H[k+120>>2]=((m&(-1<<w^-1))+(o>>>5|0)|0)+3;o=r>>>2&7;H[k+124>>2]=(((-1<<o^-1)&m>>>w)+(r>>>5|0)|0)+3;o=o+(w+(p+U|0)|0)|0}T:{X=H[k+120>>2];if(X>>>0<=ta>>>0){w=H[k+124>>2];if(w>>>0<=ta>>>0){break T}}if(_){i=0;Ba(S,1,15756,0);break j}i=0;Ba(S,1,15756,0);break j}H[k+240>>2]=z-o;m=o&31;if((o&63)>>>0>=32){o=0;q=q>>>m|0}else{o=q>>>m|0;q=((1<<m)-1&q)<<32-m|n>>>m}H[k+232>>2]=q;H[k+236>>2]=o;o=i&240|x&15;z=R+4|0;q=(z|0)<=(A|0)?255:255>>>(z-A<<1)|0;x=($|0)>1?q:q&85;if(o&(x^-1)){if(_){i=0;Ba(S,1,12194,0);break j}i=0;Ba(S,1,12194,0);break j}U:{V:{if(E){n=Ma(k+192|0);p=X+(h<<19>>31)|0;H[k+208>>2]=H[k+208>>2]-p;m=H[k+204>>2];q=H[k+200>>2];r=p&31;if((p&63)>>>0>=32){o=0;q=m>>>r|0}else{o=m>>>r|0;q=((1<<r)-1&m)<<32-r|q>>>r}H[k+200>>2]=q;H[k+204>>2]=o;T=(n&(-1<<p^-1)|(h>>>8&1)<<p|1)+2<<P|n<<31;break V}T=0;if(!(x&1)){break U}}H[c>>2]=T}W:{if(h&32){n=Ma(k+192|0);p=X+(h<<18>>31)|0;H[k+208>>2]=H[k+208>>2]-p;m=H[k+204>>2];q=H[k+200>>2];r=p&31;if((p&63)>>>0>=32){o=0;q=m>>>r|0}else{o=m>>>r|0;q=((1<<r)-1&m)<<32-r|q>>>r}H[k+200>>2]=q;H[k+204>>2]=o;q=n&(-1<<p^-1)|(h>>>9&1)<<p|1;H[(A<<2)+c>>2]=q+2<<P|n<<31;n=32-Q(q)|0;q=I[j|0]&127;F[j|0]=(n>>>0>q>>>0?n:q)|128;break W}if(!(x&2)){break W}H[(A<<2)+c>>2]=0}p=c+4|0;X:{Y:{if(h&64){n=Ma(k+192|0);r=X+(h<<17>>31)|0;H[k+208>>2]=H[k+208>>2]-r;m=H[k+204>>2];q=H[k+200>>2];E=r&31;if((r&63)>>>0>=32){o=0;q=m>>>E|0}else{o=m>>>E|0;q=((1<<E)-1&m)<<32-E|q>>>E}H[k+200>>2]=q;H[k+204>>2]=o;q=(n&(-1<<r^-1)|(h>>>10&1)<<r|1)+2<<P|n<<31;break Y}q=0;if(!(x&4)){break X}}H[p>>2]=q}F[j+1|0]=0;Z:{if(h&128){n=Ma(k+192|0);r=X-(h>>>15|0)|0;H[k+208>>2]=H[k+208>>2]-r;m=H[k+204>>2];q=H[k+200>>2];E=r&31;if((r&63)>>>0>=32){o=0;q=m>>>E|0}else{o=m>>>E|0;q=((1<<E)-1&m)<<32-E|q>>>E}H[k+200>>2]=q;H[k+204>>2]=o;q=n&(-1<<r^-1)|(h>>>11&1)<<r|1;H[p+(A<<2)>>2]=q+2<<P|n<<31;F[j+1|0]=-96-Q(q);break Z}if(!(x&8)){break Z}H[p+(A<<2)>>2]=0}m=c+8|0;_:{$:{if(i&16){n=Ma(k+192|0);p=w+(i<<19>>31)|0;H[k+208>>2]=H[k+208>>2]-p;h=H[k+204>>2];q=H[k+200>>2];r=p&31;if((p&63)>>>0>=32){o=0;q=h>>>r|0}else{o=h>>>r|0;q=((1<<r)-1&h)<<32-r|q>>>r}H[k+200>>2]=q;H[k+204>>2]=o;p=(n&(-1<<p^-1)|(i>>>8&1)<<p|1)+2<<P|n<<31;break $}p=0;if(!(x&16)){break _}}H[m>>2]=p}aa:{if(i&32){n=Ma(k+192|0);p=w+(i<<18>>31)|0;H[k+208>>2]=H[k+208>>2]-p;h=H[k+204>>2];q=H[k+200>>2];r=p&31;if((p&63)>>>0>=32){o=0;q=h>>>r|0}else{o=h>>>r|0;q=((1<<r)-1&h)<<32-r|q>>>r}H[k+200>>2]=q;H[k+204>>2]=o;q=n&(-1<<p^-1)|(i>>>9&1)<<p|1;H[m+(A<<2)>>2]=q+2<<P|n<<31;n=32-Q(q)|0;q=I[j+1|0]&127;F[j+1|0]=(n>>>0>q>>>0?n:q)|128;break aa}if(!(x&32)){break aa}H[m+(A<<2)>>2]=0}m=c+12|0;ba:{ca:{if(i&64){n=Ma(k+192|0);p=w+(i<<17>>31)|0;H[k+208>>2]=H[k+208>>2]-p;h=H[k+204>>2];q=H[k+200>>2];r=p&31;if((p&63)>>>0>=32){o=0;q=h>>>r|0}else{o=h>>>r|0;q=((1<<r)-1&h)<<32-r|q>>>r}H[k+200>>2]=q;H[k+204>>2]=o;p=(n&(-1<<p^-1)|(i>>>10&1)<<p|1)+2<<P|n<<31;break ca}p=0;if(!(x&64)){break ba}}H[m>>2]=p}j=j+2|0;F[j|0]=0;da:{if(i&128){n=Ma(k+192|0);p=w-(i>>>15|0)|0;H[k+208>>2]=H[k+208>>2]-p;h=H[k+204>>2];q=H[k+200>>2];r=p&31;if((p&63)>>>0>=32){o=0;q=h>>>r|0}else{o=h>>>r|0;q=((1<<r)-1&h)<<32-r|q>>>r}H[k+200>>2]=q;H[k+204>>2]=o;i=n&(-1<<p^-1)|(i>>>11&1)<<p|1;H[m+(A<<2)>>2]=i+2<<P|n<<31;F[j|0]=-96-Q(i);break da}if(x>>>0<128){break da}H[m+(A<<2)>>2]=0}Z=Z^16;l=(R&4)+l|0;c=c+16|0;if((z|0)<(A|0)){continue}break}}ia=V&8;ja=s+1584|0;ka=s+1056|0;fa=s+528|0;if(($|0)>=3){la=N(A,12);ma=A<<3;da=sa-1|0;b=sa-2|0;t=3<<b;W=1<<b;ea=(A+7>>>1&2147483644)+4|0;r=2;while(1){R=r;T=I[u|0];F[u|0]=0;Z=Z&-17^2;ea:{if((A|0)<=0){r=r+2|0;break ea}b=R&4?fa:s;r=R+2|0;j=ha+(N(A,R)<<2)|0;p=0;c=u;E=0;while(1){V=p;P=T&255;i=I[c+1|0]>>>5&4|(P>>>7|E);h=J[(i<<8|(lb(k+224|0)&127)<<1)+18704>>1];fa:{if(i){break fa}i=g-2|0;h=(i|0)==-1?h:0;if((g|0)>1){g=i;break fa}g=Ya(k+256|0)}q=H[k+236>>2];n=H[k+232>>2];i=H[k+240>>2];l=H[b>>2]|(h>>>4&3|h>>>2&48)<<Z;H[b>>2]=l;U=h&64;X=h&128;E=U>>>5|X>>>6;o=i;i=h&7;x=o-i|0;n=((1<<i)-1&q)<<32-i|n>>>i;q=q>>>i|0;p=n;i=0;if((A|0)>(V|2)){o=I[c+2|0]>>>5&4|I[c+1|0]>>>7|E;i=J[(o<<8|(n&127)<<1)+18704>>1];ga:{if(o){break ga}o=g-2|0;i=(o|0)==-1?i:0;if((g|0)>1){g=o;break ga}g=Ya(k+256|0)}o=i&7;x=x-o|0;E=(i>>>5|i>>>6)&2;n=((1<<o)-1&q)<<32-o|n>>>o;p=n;q=q>>>o|0}H[b>>2]=l|(i<<2&768|i&48)<<Z+4;o=1;l=1;ha:{ia:{ja:{z=i>>>2&2|h>>>3&1;switch(z|0){case 0:break ha;case 3:break ia;default:break ja}}o=I[(p&7)+20804|0];w=o>>>2&7;v=p;p=o&3;l=(((-1<<w^-1)&v>>>p)+(o>>>5|0)|0)+1|0;m=(z|0)==1;o=m?1:l;l=m?l:1;z=p+w|0;break ha}v=I[(p&7)+20804|0];m=v&3;o=p>>>m|0;w=I[(o&7)+20804|0];l=w&3;p=v>>>2&7;M=p+(l+m|0)|0;m=w>>>2&7;z=M+m|0;o=o>>>l|0;l=((o&(-1<<p^-1))+(v>>>5|0)|0)+1|0;o=(((-1<<m^-1)&o>>>p)+(w>>>5|0)|0)+1|0}H[k+240>>2]=x-z;m=z&31;if((z&63)>>>0>=32){w=0;q=q>>>m|0}else{w=q>>>m|0;q=((1<<m)-1&q)<<32-m|n>>>m}H[k+232>>2]=q;H[k+236>>2]=w;p=h&240;if(p-1&p){n=P&127;q=I[c+1|0]&127;n=n>>>0>q>>>0?n:q;q=n-2|0;l=(n>>>0>=q>>>0?q:0)+l|0}m=i&240;if(m-1&m){n=I[c+1|0]&127;q=I[c+2|0]&127;q=n>>>0>q>>>0?n:q;o=(q>>>0>2?q-2|0:0)+o|0}if(!(l>>>0<=ta>>>0&o>>>0<=ta>>>0)){if(_){i=0;Ba(S,1,15856,0);break j}i=0;Ba(S,1,15856,0);break j}T=I[c+2|0];F[c+1|0]=0;F[c+2|0]=0;n=m|p>>>4;p=V+4|0;q=(p|0)<=(A|0)?255:255>>>(p-A<<1)|0;P=(r|0)>($|0)?q&85:q;if(n&(P^-1)){if(_){i=0;Ba(S,1,12194,0);break j}i=0;Ba(S,1,12194,0);break j}ka:{la:{if(h&16){n=Ma(k+192|0);x=(h<<19>>31)+l|0;H[k+208>>2]=H[k+208>>2]-x;m=H[k+204>>2];q=H[k+200>>2];z=x&31;if((x&63)>>>0>=32){w=0;q=m>>>z|0}else{w=m>>>z|0;q=((1<<z)-1&m)<<32-z|q>>>z}H[k+200>>2]=q;H[k+204>>2]=w;x=(n&(-1<<x^-1)|(h>>>8&1)<<x|1)+2<<da|n<<31;break la}x=0;if(!(P&1)){break ka}}H[j>>2]=x}ma:{if(h&32){n=Ma(k+192|0);x=(h<<18>>31)+l|0;H[k+208>>2]=H[k+208>>2]-x;m=H[k+204>>2];q=H[k+200>>2];z=x&31;if((x&63)>>>0>=32){w=0;q=m>>>z|0}else{w=m>>>z|0;q=((1<<z)-1&m)<<32-z|q>>>z}H[k+200>>2]=q;H[k+204>>2]=w;q=n&(-1<<x^-1)|(h>>>9&1)<<x|1;H[(A<<2)+j>>2]=q+2<<da|n<<31;n=32-Q(q)|0;q=I[c|0]&127;F[c|0]=(n>>>0>q>>>0?n:q)|128;break ma}if(!(P&2)){break ma}H[(A<<2)+j>>2]=0}x=j+4|0;na:{oa:{if(U){n=Ma(k+192|0);z=(h<<17>>31)+l|0;H[k+208>>2]=H[k+208>>2]-z;m=H[k+204>>2];q=H[k+200>>2];U=z&31;if((z&63)>>>0>=32){w=0;q=m>>>U|0}else{w=m>>>U|0;q=((1<<U)-1&m)<<32-U|q>>>U}H[k+200>>2]=q;H[k+204>>2]=w;m=(n&(-1<<z^-1)|(h>>>10&1)<<z|1)+2<<da|n<<31;break oa}m=0;if(!(P&4)){break na}}H[x>>2]=m}pa:{if(X){n=Ma(k+192|0);l=l-(h>>>15|0)|0;H[k+208>>2]=H[k+208>>2]-l;m=H[k+204>>2];q=H[k+200>>2];z=l&31;if((l&63)>>>0>=32){w=0;q=m>>>z|0}else{w=m>>>z|0;q=((1<<z)-1&m)<<32-z|q>>>z}H[k+200>>2]=q;H[k+204>>2]=w;q=n&(-1<<l^-1)|(h>>>11&1)<<l|1;H[x+(A<<2)>>2]=q+2<<da|n<<31;F[c+1|0]=-96-Q(q);break pa}if(!(P&8)){break pa}H[x+(A<<2)>>2]=0}m=j+8|0;qa:{ra:{if(i&16){n=Ma(k+192|0);l=(i<<19>>31)+o|0;H[k+208>>2]=H[k+208>>2]-l;h=H[k+204>>2];q=H[k+200>>2];x=l&31;if((l&63)>>>0>=32){w=0;q=h>>>x|0}else{w=h>>>x|0;q=((1<<x)-1&h)<<32-x|q>>>x}H[k+200>>2]=q;H[k+204>>2]=w;l=(n&(-1<<l^-1)|(i>>>8&1)<<l|1)+2<<da|n<<31;break ra}l=0;if(!(P&16)){break qa}}H[m>>2]=l}sa:{if(i&32){n=Ma(k+192|0);l=(i<<18>>31)+o|0;H[k+208>>2]=H[k+208>>2]-l;h=H[k+204>>2];q=H[k+200>>2];x=l&31;if((l&63)>>>0>=32){w=0;q=h>>>x|0}else{w=h>>>x|0;q=((1<<x)-1&h)<<32-x|q>>>x}H[k+200>>2]=q;H[k+204>>2]=w;q=n&(-1<<l^-1)|(i>>>9&1)<<l|1;H[m+(A<<2)>>2]=q+2<<da|n<<31;n=32-Q(q)|0;q=I[c+1|0]&127;F[c+1|0]=(n>>>0>q>>>0?n:q)|128;break sa}if(!(P&32)){break sa}H[m+(A<<2)>>2]=0}m=j+12|0;ta:{ua:{if(i&64){n=Ma(k+192|0);l=(i<<17>>31)+o|0;H[k+208>>2]=H[k+208>>2]-l;h=H[k+204>>2];q=H[k+200>>2];x=l&31;if((l&63)>>>0>=32){w=0;q=h>>>x|0}else{w=h>>>x|0;q=((1<<x)-1&h)<<32-x|q>>>x}H[k+200>>2]=q;H[k+204>>2]=w;l=(n&(-1<<l^-1)|(i>>>10&1)<<l|1)+2<<da|n<<31;break ua}l=0;if(!(P&64)){break ta}}H[m>>2]=l}c=c+2|0;va:{if(i&128){n=Ma(k+192|0);h=o-(i>>>15|0)|0;H[k+208>>2]=H[k+208>>2]-h;o=H[k+204>>2];q=H[k+200>>2];l=h&31;if((h&63)>>>0>=32){w=0;o=o>>>l|0}else{w=o>>>l|0;o=((1<<l)-1&o)<<32-l|q>>>l}H[k+200>>2]=o;H[k+204>>2]=w;i=n&(-1<<h^-1)|(i>>>11&1)<<h|1;H[m+(A<<2)>>2]=i+2<<da|n<<31;F[c|0]=-96-Q(i);break va}if(P>>>0<128){break va}H[m+(A<<2)>>2]=0}Z=Z^16;b=(V&4)+b|0;j=j+16|0;if((p|0)<(A|0)){continue}break}}wa:{if(!(R&2)|e>>>0<2){break wa}m=r&4;xa:{ya:{za:{Aa:{Ba:{if(aa){x=m?s:fa;z=0;if((A|0)<=0){break Ba}q=ha+(N(A,R-2|0)<<2)|0;while(1){i=lb(k+128|0);h=0;j=H[x>>2];if(j){h=q+(z<<2)|0;o=0;c=15;while(1){Ca:{if(!(c&j)){break Ca}n=c&286331153;if(n&j){H[h>>2]=W|H[h>>2]^((i^-1)&1)<<da;i=i>>>1|0}if(j&n<<1){b=(A<<2)+h|0;H[b>>2]=W|H[b>>2]^((i^-1)&1)<<da;i=i>>>1|0}if(j&n<<2){b=h+ma|0;H[b>>2]=W|H[b>>2]^((i^-1)&1)<<da;i=i>>>1|0}if(!(j&n<<3)){break Ca}b=h+la|0;H[b>>2]=W|H[b>>2]^((i^-1)&1)<<da;i=i>>>1|0}h=h+4|0;c=c<<4;o=o+1|0;if((o|0)!=8){continue}break}h=xe(j)}x=x+4|0;H[k+144>>2]=H[k+144>>2]-h;c=H[k+140>>2];b=H[k+136>>2];i=h&31;if((h&63)>>>0>=32){w=0;b=c>>>i|0}else{w=c>>>i|0;b=((1<<i)-1&c)<<32-i|b>>>i}H[k+136>>2]=b;H[k+140>>2]=w;z=z+8|0;if((A|0)>(z|0)){continue}break}}l=0;i=0;ba=m?ka:ja;h=ba;x=m?s:fa;c=x;if((A|0)>0){break za}b=!m;break Aa}ba=m?ka:ja;b=!m}if(R>>>0<=5){break wa}q=b?s:fa;if((A|0)<=0){break xa}c=b?ka:ja;break ya}while(1){b=i>>>28|0;i=H[c>>2];b=i|(b|i<<4|i>>>4);H[h>>2]=b;b=b|H[c+4>>2]<<28;H[h>>2]=(b>>>1&2004318071|b<<1&-286331154|b)&(i^-1);h=h+4|0;c=c+4|0;l=l+8|0;if((A|0)>(l|0)){continue}break}if(R>>>0<6){break wa}q=m?fa:s;c=m?ja:ka}b=0;o=0;h=x;m=c;i=c;c=q;while(1){j=h+4|0;n=H[i>>2];h=H[h>>2];if(!ia){n=n|(h|(h<<4|b>>>28|h>>>4|H[j>>2]<<28))<<3&-2004318072}H[i>>2]=n&(H[c>>2]^-1);c=c+4|0;i=i+4|0;b=h;h=j;o=o+8|0;if((A|0)>(o|0)){continue}break}if((A|0)<=0){break xa}U=ha+(N(A,R-6|0)<<2)|0;T=0;b=q;while(1){j=0;c=H[m>>2];if(c){X=A-T|0;R=(T<<2)+U|0;i=0;E=0;while(1){n=i;i=Ma(k+160|0);o=E+4|0;P=(A|0)>(o+T|0)?o:X;Da:{if((P|0)<=(E|0)){h=0;break Da}M=H[b>>2]^-1;w=E<<2;z=R+w|0;h=0;o=E;p=15<<w;l=p;while(1){Ea:{if(!(c&l)){break Ea}v=l&286331153;if(v&c){if(i&1){j=j|v;c=M&50<<(o<<2)|c}h=h+1|0;i=i>>>1|0}V=v<<1;if(V&c){if(i&1){j=j|V;c=M&116<<(o<<2)|c}h=h+1|0;i=i>>>1|0}V=v<<2;if(V&c){if(i&1){j=j|V;c=M&232<<(o<<2)|c}h=h+1|0;i=i>>>1|0}V=v<<3;if(!(V&c)){break Ea}if(i&1){j=j|V;c=M&192<<(o<<2)|c}h=h+1|0;i=i>>>1|0}l=l<<4;o=o+1|0;if((P|0)>(o|0)){continue}break}if(!(j>>>w&65535)){break Da}while(1){Fa:{if(!(j&p)){break Fa}l=p&286331153;if(l&j){H[z>>2]=t|(H[z>>2]|i<<31);h=h+1|0;i=i>>>1|0}if(l<<1&j){o=(A<<2)+z|0;H[o>>2]=t|(H[o>>2]|i<<31);h=h+1|0;i=i>>>1|0}if(l<<2&j){o=z+ma|0;H[o>>2]=t|(H[o>>2]|i<<31);h=h+1|0;i=i>>>1|0}if(!(l<<3&j)){break Fa}o=z+la|0;H[o>>2]=t|(H[o>>2]|i<<31);h=h+1|0;i=i>>>1|0}p=p<<4;z=z+4|0;E=E+1|0;if((P|0)>(E|0)){continue}break}}H[k+176>>2]=H[k+176>>2]-h;o=H[k+172>>2];i=H[k+168>>2];l=h&31;if((h&63)>>>0>=32){w=0;i=o>>>l|0}else{w=o>>>l|0;i=((1<<l)-1&o)<<32-l|i>>>l}H[k+168>>2]=i;H[k+172>>2]=w;i=1;E=4;if(!(n&1)){continue}break}H[m+4>>2]=H[m+4>>2]|(j>>>27&14|j>>>29|j>>>28)&(H[b+4>>2]^-1)}n=H[b>>2]|j;o=n>>>3&286331153;i=o>>>4|o<<4|o;if(T){c=ba-4|0;H[c>>2]=H[c>>2]|(H[x-4>>2]^-1)&o<<28}H[ba>>2]=H[ba>>2]|i&(H[x>>2]^-1);H[ba+4>>2]=H[ba+4>>2]|(H[x+4>>2]^-1)&n>>>31;m=m+4|0;b=b+4|0;ba=ba+4|0;x=x+4|0;T=T+8|0;if((A|0)>(T|0)){continue}break}}if(!ea){break wa}y(q,0,ea)}if((r|0)<($|0)){continue}break}}Ga:{if(e>>>0<2){break Ga}e=($&3)-1|0;Ha:{if(aa&e>>>0<2){if((A|0)<=0){break Ha}p=1<<sa-2;j=ha+(N(A,$&16777212)<<2)|0;q=$&4?fa:s;n=N(A,12);g=A<<3;l=sa-1|0;E=0;while(1){i=lb(k+128|0);h=0;u=H[q>>2];if(u){h=j+(E<<2)|0;c=15;o=0;while(1){Ia:{if(!(c&u)){break Ia}m=c&286331153;if(m&u){H[h>>2]=p|H[h>>2]^((i^-1)&1)<<l;i=i>>>1|0}if(u&m<<1){b=(A<<2)+h|0;H[b>>2]=p|H[b>>2]^((i^-1)&1)<<l;i=i>>>1|0}if(u&m<<2){b=h+g|0;H[b>>2]=p|H[b>>2]^((i^-1)&1)<<l;i=i>>>1|0}if(!(u&m<<3)){break Ia}b=h+n|0;H[b>>2]=p|H[b>>2]^((i^-1)&1)<<l;i=i>>>1|0}h=h+4|0;c=c<<4;o=o+1|0;if((o|0)!=8){continue}break}h=xe(u)}q=q+4|0;H[k+144>>2]=H[k+144>>2]-h;c=H[k+140>>2];b=H[k+136>>2];i=h&31;if((h&63)>>>0>=32){w=0;b=c>>>i|0}else{w=c>>>i|0;b=((1<<i)-1&c)<<32-i|b>>>i}H[k+136>>2]=b;H[k+140>>2]=w;E=E+8|0;if((A|0)>(E|0)){continue}break}}if((A|0)<=0|e>>>0>1){break Ha}b=$&4;h=b?fa:s;c=b?ja:ka;l=0;i=0;while(1){b=i>>>28|0;i=H[h>>2];b=i|(b|i<<4|i>>>4);H[c>>2]=b;b=b|H[h+4>>2]<<28;H[c>>2]=(b>>>1&2004318071|b<<1&-286331154|b)&(i^-1);c=c+4|0;h=h+4|0;l=l+8|0;if((A|0)>(l|0)){continue}break}}b=($|0)>6?($-($+1&3)|0)-3|0:0;if(($|0)<=(b|0)){break Ga}r=N(A,12);R=A<<3;ea=3<<sa-2;X=(A|0)<=0;while(1){g=$-b|0;c=g-1|0;Ja:{Ka:{La:{if(c>>>0>=3){Z=-1;if((g|0)<5){break La}if(X){break Ja}g=b&4;h=g?fa:s;i=g?ja:ka;c=0;if(!ia){c=g?s:fa;l=0;j=0;while(1){g=j>>>28|0;Z=-1;j=H[c>>2];H[i>>2]=(H[i>>2]|(j|(g|j<<4|j>>>4|H[c+4>>2]<<28))<<3&-2004318072)&(H[h>>2]^-1);h=h+4|0;i=i+4|0;c=c+4|0;l=l+8|0;if((A|0)>(l|0)){continue}break}break Ka}while(1){Z=-1;H[i>>2]=H[i>>2]&(H[h>>2]^-1);h=h+4|0;i=i+4|0;c=c+8|0;if((A|0)>(c|0)){continue}break}break Ka}Z=H[(c<<2)+20812>>2]}if(X){break Ja}}c=b&4;q=c?fa:s;g=c?ja:ka;x=c?s:fa;T=c?ka:ja;V=ha+(N(b,A)<<2)|0;p=0;while(1){j=0;c=H[g>>2]&Z;if(c){aa=A-p|0;u=V+(p<<2)|0;i=0;e=0;while(1){n=i;i=Ma(k+160|0);o=e+4|0;w=(A|0)>(o+p|0)?o:aa;Ma:{if((w|0)<=(e|0)){h=0;break Ma}E=e<<2;z=E+u|0;v=(H[q>>2]^-1)&Z;h=0;o=e;P=15<<E;l=P;while(1){Na:{if(!(c&l)){break Na}U=l&286331153;if(U&c){if(i&1){j=j|U;c=v&50<<(o<<2)|c}h=h+1|0;i=i>>>1|0}m=U<<1;if(m&c){if(i&1){j=j|m;c=v&116<<(o<<2)|c}h=h+1|0;i=i>>>1|0}m=U<<2;if(m&c){if(i&1){j=j|m;c=v&232<<(o<<2)|c}h=h+1|0;i=i>>>1|0}m=U<<3;if(!(m&c)){break Na}if(i&1){j=j|m;c=v&192<<(o<<2)|c}h=h+1|0;i=i>>>1|0}l=l<<4;o=o+1|0;if((w|0)>(o|0)){continue}break}if(!(j>>>E&65535)){break Ma}while(1){Oa:{if(!(j&P)){break Oa}m=P&286331153;if(m&j){H[z>>2]=ea|(H[z>>2]|i<<31);h=h+1|0;i=i>>>1|0}if(m<<1&j){o=(A<<2)+z|0;H[o>>2]=ea|(H[o>>2]|i<<31);h=h+1|0;i=i>>>1|0}if(m<<2&j){o=z+R|0;H[o>>2]=ea|(H[o>>2]|i<<31);h=h+1|0;i=i>>>1|0}if(!(m<<3&j)){break Oa}o=r+z|0;H[o>>2]=ea|(H[o>>2]|i<<31);h=h+1|0;i=i>>>1|0}P=P<<4;z=z+4|0;e=e+1|0;if((w|0)>(e|0)){continue}break}}H[k+176>>2]=H[k+176>>2]-h;o=H[k+172>>2];i=H[k+168>>2];e=h&31;if((h&63)>>>0>=32){w=0;i=o>>>e|0}else{w=o>>>e|0;i=((1<<e)-1&o)<<32-e|i>>>e}H[k+168>>2]=i;H[k+172>>2]=w;i=1;e=4;if(!(n&1)){continue}break}H[g+4>>2]=H[g+4>>2]|(j>>>27&14|j>>>29|j>>>28)&(H[q+4>>2]^-1)}n=H[q>>2]|j;o=n>>>3&286331153;i=o>>>4|o<<4|o;if(p){c=T-4|0;H[c>>2]=H[c>>2]|(H[x-4>>2]^-1)&o<<28}H[T>>2]=H[T>>2]|i&(H[x>>2]^-1);H[T+4>>2]=H[T+4>>2]|(H[x+4>>2]^-1)&n>>>31;g=g+4|0;q=q+4|0;T=T+4|0;x=x+4|0;p=p+8|0;if((A|0)>(p|0)){continue}break}}b=b+4|0;if(($|0)>(b|0)){continue}break}}i=1;if(($|0)<=0|(A|0)<=0){break j}n=A&2147483644;o=A&3;q=ca-D>>>0>4294967292;b=0;while(1){i=ha+(N(b,A)<<2)|0;h=0;Pa:{if(!q){while(1){g=H[i>>2];c=g&2147483647;H[i>>2]=(g|0)<0?0-c|0:c;g=H[i+4>>2];c=g&2147483647;H[i+4>>2]=(g|0)<0?0-c|0:c;g=H[i+8>>2];c=g&2147483647;H[i+8>>2]=(g|0)<0?0-c|0:c;g=H[i+12>>2];c=g&2147483647;H[i+12>>2]=(g|0)<0?0-c|0:c;i=i+16|0;h=h+4|0;if((n|0)!=(h|0)){continue}break}if(!o){break Pa}}h=0;while(1){g=H[i>>2];c=g&2147483647;H[i>>2]=(g|0)<0?0-c|0:c;i=i+4|0;h=h+1|0;if((o|0)!=(h|0)){continue}break}}i=1;b=b+1|0;if(($|0)!=(b|0)){continue}break}break j}if(!_){break w}H[k+52>>2]=H[C+24>>2];H[k+48>>2]=P;Ba(S,1,9686,k+48|0);break v}H[k+20>>2]=i;H[k+16>>2]=P;Ba(S,1,9686,k+16|0);i=0;break j}i=0}na=k+304|0;if(i){break i}break b}H[f+108>>2]=(b<<9)+22336;c=0;b=H[f+116>>2];Qa:{Ra:{m=H[C+16>>2]-H[C+8>>2]|0;e=H[C+20>>2]-H[C+12>>2]|0;g=N(m,e);Sa:{Ta:{Ua:{if(g>>>0>K[f+132>>2]){Ca(b);b=Ia(g<<2);H[f+116>>2]=b;if(!b){break Sa}H[f+132>>2]=g;break Ua}if(!b){break Ta}}g=g<<2;if(!g){break Ta}y(b,0,g)}b=H[f+120>>2];l=m+2|0;o=e+3>>>2|0;g=N(l,o+2|0);if(g>>>0<=K[f+136>>2]){z=g<<2;break Ra}Ca(b);z=g<<2;b=Ia(z);H[f+120>>2]=b;if(b){break Ra}}b=0;break Qa}H[f+136>>2]=g;if(z){y(b,0,z)}Va:{if(!l){break Va}k=l&7;n=H[f+120>>2];b=n;q=m+1|0;Wa:{if(q>>>0>=7){g=l&-8;while(1){H[b+24>>2]=1226833920;H[b+28>>2]=1226833920;H[b+16>>2]=1226833920;H[b+20>>2]=1226833920;H[b+8>>2]=1226833920;H[b+12>>2]=1226833920;H[b>>2]=1226833920;H[b+4>>2]=1226833920;b=b+32|0;c=c+8|0;if((g|0)!=(c|0)){continue}break}if(!k){break Wa}}c=0;while(1){H[b>>2]=1226833920;b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}k=l&7;b=n+(N(l,o+1|0)<<2)|0;Xa:{if(q>>>0>=7){g=l&-8;c=0;while(1){H[b+24>>2]=1226833920;H[b+28>>2]=1226833920;H[b+16>>2]=1226833920;H[b+20>>2]=1226833920;H[b+8>>2]=1226833920;H[b+12>>2]=1226833920;H[b>>2]=1226833920;H[b+4>>2]=1226833920;b=b+32|0;c=c+8|0;if((g|0)!=(c|0)){continue}break}if(!k){break Xa}}c=0;while(1){H[b>>2]=1226833920;b=b+4|0;c=c+1|0;if((k|0)!=(c|0)){continue}break}}b=e&3;if(!b){break Va}k=(b|0)==1?1224736768:(b|0)==2?1207959552:1073741824;g=l&7;b=n+(N(l,o)<<2)|0;if(q>>>0>=7){c=l&-8;z=0;while(1){H[b+28>>2]=k;H[b+24>>2]=k;H[b+20>>2]=k;H[b+16>>2]=k;H[b+12>>2]=k;H[b+8>>2]=k;H[b+4>>2]=k;H[b>>2]=k;b=b+32|0;z=z+8|0;if((c|0)!=(z|0)){continue}break}if(!g){break Va}}z=0;while(1){H[b>>2]=k;b=b+4|0;z=z+1|0;if((g|0)!=(z|0)){continue}break}}H[f+128>>2]=e;H[f+124>>2]=m;b=1}if(!b){break b}z=j+H[C+28>>2]|0;if((z|0)>=31){if(!_){break h}H[Y+16>>2]=z;Ba(S,2,8716,Y+16|0);break b}Yb(f);Xa(f,18,46);Xa(f,17,3);Xa(f,0,4);if(H[C+64>>2]){break i}c=H[C+52>>2];Ya:{if(!(c>>>0<=1&(!H[f+144>>2]|(c|0)!=1))){k=c&3;b=H[C+4>>2];g=0;Za:{if(c-1>>>0>=3){c=c&-4;while(1){q=(t<<3)+b|0;g=H[q+28>>2]+(H[q+20>>2]+(H[q+12>>2]+(H[q+4>>2]+g|0)|0)|0)|0;t=t+4|0;h=h+4|0;if((c|0)!=(h|0)){continue}break}if(!k){break Za}}while(1){g=H[((t<<3)+b|0)+4>>2]+g|0;t=t+1|0;i=i+1|0;if((k|0)!=(i|0)){continue}break}}ia=H[f+148>>2];c=g+2|0;if(c>>>0>K[f+152>>2]){b=Ha(ia,c);if(!b){break b}H[f+148>>2]=b;b=b+g|0;F[b|0]=0;F[b+1|0]=0;H[f+152>>2]=c;ia=H[f+148>>2];if(!H[C+52>>2]){break Ya}b=H[C+4>>2]}g=0;t=0;while(1){k=t<<3;c=k+b|0;b=H[c+4>>2];if(b){B(g+ia|0,H[c>>2],b)}b=H[C+4>>2];g=H[(k+b|0)+4>>2]+g|0;t=t+1|0;if(t>>>0<K[C+52>>2]){continue}break}break Ya}if((c|0)!=1){break i}ia=H[H[C+4>>2]>>2]}b=H[C+60>>2];if(b){Z=H[f+116>>2];H[f+116>>2]=b}if(H[C+44>>2]){P=V&8;ca=f+28|0;ha=!(V&2);la=2;while(1){k=U+ia|0;ma=H[C>>2]+N(X,24)|0;c=H[ma>>2];ea=V&(la>>>0<2&(H[C+28>>2]-4|0)>=(z|0));_a:{if(ea){H[f+20>>2]=k;b=c+k|0;H[f+24>>2]=b;G[f+112>>1]=I[b|0]|I[b+1|0]<<8;F[b|0]=255;F[H[f+24>>2]+1|0]=255;H[f+8>>2]=0;H[f>>2]=0;H[f+16>>2]=k;break _a}H[f+20>>2]=k;b=c+k|0;H[f+24>>2]=b;G[f+112>>1]=I[b|0]|I[b+1|0]<<8;F[b|0]=255;F[H[f+24>>2]+1|0]=255;H[f+104>>2]=f+28;H[f+16>>2]=k;H[f+12>>2]=0;b=c?I[k|0]<<16:16711680;H[f>>2]=b;i=1;c=k+1|0;g=I[k+1|0];$a:{if(I[k|0]==255){if(g>>>0>=144){H[f+12>>2]=1;b=b|65280;break $a}H[f+16>>2]=c;i=0;b=b+(g<<9)|0;break $a}H[f+16>>2]=c;b=b|g<<8}H[f+8>>2]=i;H[f+4>>2]=32768;H[f>>2]=b<<7}R=H[ma>>2];ab:{if(!H[ma+8>>2]|(z|0)<=0){break ab}aa=ea|ha;ba=0;while(1){bb:{cb:{db:{eb:{switch(la-1|0){default:if(!ea){break db}b=1<<z;m=b>>>1|b;e=H[f+124>>2];d=e<<2;b=(d+H[f+120>>2]|0)+12|0;g=H[f+116>>2];l=0;c=H[f+128>>2];if(c>>>0>=4){if(!e){break bb}o=N(e,12);n=e<<3;j=0-m|0;while(1){c=0;while(1){k=b;b=H[b>>2];fb:{if(!b){break fb}if(!(!(b&495)|b&2097168)){b=H[f>>2];i=H[f+8>>2];gb:{if(i){break gb}i=(b|0)!=255;q=H[f+16>>2];b=I[q|0];hb:{if(i){i=8}else{if(b>>>0>143){break hb}i=7}H[f>>2]=b;H[f+16>>2]=q+1;break gb}i=8;b=255}i=i-1|0;H[f+8>>2]=i;ib:{if(!(b>>>i&1)){break ib}jb:{if(i){break jb}i=(b|0)!=255;q=H[f+16>>2];b=I[q|0];kb:{if(i){i=8}else{if(b>>>0>143){break kb}i=7}H[f>>2]=b;H[f+16>>2]=q+1;break jb}i=8;b=255}i=i-1|0;H[f+8>>2]=i;q=b>>>i&1;H[g>>2]=q?j:m;i=H[f+124>>2];b=k-4|0;H[b>>2]=H[b>>2]|32;H[k+4>>2]=H[k+4>>2]|8;H[k>>2]=H[k>>2]|q<<19|16;if(P){break ib}b=k+(-2-i<<2)|0;H[b+4>>2]=H[b+4>>2]|32768;H[b>>2]=H[b>>2]|q<<31|65536;b=b-4|0;H[b>>2]=H[b>>2]|131072}b=H[k>>2]|2097152;H[k>>2]=b}if(!(!(b&3960)|b&16777344)){b=H[f>>2];i=H[f+8>>2];lb:{if(i){break lb}i=(b|0)!=255;q=H[f+16>>2];b=I[q|0];mb:{if(i){i=8}else{if(b>>>0>143){break mb}i=7}H[f>>2]=b;H[f+16>>2]=q+1;break lb}i=8;b=255}i=i-1|0;H[f+8>>2]=i;if(b>>>i&1){nb:{if(i){break nb}i=(b|0)!=255;q=H[f+16>>2];b=I[q|0];ob:{if(i){i=8}else{if(b>>>0>143){break ob}i=7}H[f>>2]=b;H[f+16>>2]=q+1;break nb}i=8;b=255}i=i-1|0;H[f+8>>2]=i;i=b>>>i&1;H[d+g>>2]=i?j:m;b=k-4|0;H[b>>2]=H[b>>2]|256;H[k+4>>2]=H[k+4>>2]|64;b=H[k>>2]|i<<22|128}else{b=H[k>>2]}b=b|16777216;H[k>>2]=b}if(!(!(b&31680)|b&134218752)){b=H[f>>2];i=H[f+8>>2];pb:{if(i){break pb}i=(b|0)!=255;q=H[f+16>>2];b=I[q|0];qb:{if(i){i=8}else{if(b>>>0>143){break qb}i=7}H[f>>2]=b;H[f+16>>2]=q+1;break pb}i=8;b=255}i=i-1|0;H[f+8>>2]=i;if(b>>>i&1){rb:{if(i){break rb}i=(b|0)!=255;q=H[f+16>>2];b=I[q|0];sb:{if(i){i=8}else{if(b>>>0>143){break sb}i=7}H[f>>2]=b;H[f+16>>2]=q+1;break rb}i=8;b=255}i=i-1|0;H[f+8>>2]=i;i=b>>>i&1;H[g+n>>2]=i?j:m;b=k-4|0;H[b>>2]=H[b>>2]|2048;H[k+4>>2]=H[k+4>>2]|512;b=H[k>>2]|i<<25|1024}else{b=H[k>>2]}b=b|134217728;H[k>>2]=b}if(!(b&253440)|b&1073750016){break fb}b=H[f>>2];i=H[f+8>>2];tb:{if(i){break tb}i=(b|0)!=255;q=H[f+16>>2];b=I[q|0];ub:{if(i){i=8}else{if(b>>>0>143){break ub}i=7}H[f>>2]=b;H[f+16>>2]=q+1;break tb}i=8;b=255}i=i-1|0;H[f+8>>2]=i;if(b>>>i&1){vb:{if(i){break vb}i=(b|0)!=255;q=H[f+16>>2];b=I[q|0];wb:{if(i){i=8}else{if(b>>>0>143){break wb}i=7}H[f>>2]=b;H[f+16>>2]=q+1;break vb}i=8;b=255}i=i-1|0;H[f+8>>2]=i;q=b>>>i&1;H[g+o>>2]=q?j:m;i=H[f+124>>2];b=k-4|0;H[b>>2]=H[b>>2]|16384;H[k+4>>2]=H[k+4>>2]|4096;H[k>>2]=H[k>>2]|q<<28|8192;b=k+(i<<2)|0;H[b+4>>2]=H[b+4>>2]|4;H[b+12>>2]=H[b+12>>2]|1;H[b+8>>2]=H[b+8>>2]|q<<18|2}H[k>>2]=H[k>>2]|1073741824}g=g+4|0;b=k+4|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}g=g+o|0;b=k+12|0;l=l+4|0;c=H[f+128>>2];if(l>>>0<(c&-4)>>>0){continue}break}}if(!e|c>>>0<=l>>>0){break cb}p=0;n=0-m|0;i=c;while(1){xb:{if((i|0)==(l|0)){i=l;break xb}d=b-4|0;j=H[b>>2];t=0;while(1){o=N(t,3);k=j>>>o|0;if(!(k&2097168|!(k&495))){c=H[f>>2];h=H[f+8>>2];yb:{if(h){break yb}i=(c|0)!=255;k=H[f+16>>2];c=I[k|0];zb:{if(i){h=8}else{if(c>>>0>143){break zb}h=7}H[f>>2]=c;H[f+16>>2]=k+1;break yb}h=8;c=255}h=h-1|0;H[f+8>>2]=h;Ab:{if(!(c>>>h&1)){break Ab}q=(N(e,t)<<2)+g|0;Bb:{if(h){break Bb}i=(c|0)!=255;k=H[f+16>>2];c=I[k|0];Cb:{if(i){h=8}else{if(c>>>0>143){break Cb}h=7}H[f>>2]=c;H[f+16>>2]=k+1;break Bb}h=8;c=255}k=h-1|0;H[f+8>>2]=k;i=c>>>k&1;H[q>>2]=i?n:m;k=H[f+124>>2];H[d>>2]=H[d>>2]|32<<o;H[b>>2]=H[b>>2]|(i<<19|16)<<o;H[b+4>>2]=H[b+4>>2]|8<<o;if(!(t|P)){c=(-2-k<<2)+b|0;H[c+4>>2]=H[c+4>>2]|32768;H[c>>2]=H[c>>2]|i<<31|65536;c=c-4|0;H[c>>2]=H[c>>2]|131072}if((t|0)!=3){break Ab}c=(k<<2)+b|0;H[c+4>>2]=H[c+4>>2]|4;H[c+12>>2]=H[c+12>>2]|1;H[c+8>>2]=H[c+8>>2]|i<<18|2}j=H[b>>2]|2097152<<o;H[b>>2]=j;c=H[f+128>>2]}i=c;t=t+1|0;if(t>>>0<c-l>>>0){continue}break}}g=g+4|0;b=b+4|0;p=p+1|0;if((e|0)!=(p|0)){continue}break};break cb;case 1:m=0;x=0;Db:{Eb:{Fb:{W=H[f+124>>2];if(!((W|0)!=64|H[f+128>>2]!=64)){b=1<<z;s=b>>>1|b;u=0-s|0;q=f+100|0;k=f+96|0;w=f+28|0;g=H[f+120>>2]+268|0;e=H[f+8>>2];b=H[f+4>>2];d=H[f>>2];i=H[f+104>>2];c=H[f+116>>2];if(V&8){break Fb}while(1){r=0;while(1){o=c;j=g;g=H[g>>2];Gb:{Hb:{Ib:{if(!g){i=H[k>>2];g=H[i>>2];b=b-g|0;Jb:{if(d>>>16>>>0<g>>>0){n=H[i+4>>2];c=b>>>0<g>>>0;H[k>>2]=H[i+(c?8:12)>>2];while(1){Kb:{if(e){break Kb}i=H[f+16>>2];b=i+1|0;h=I[i+1|0];if(I[i|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Kb}H[f+16>>2]=b;d=(h<<9)+d|0;e=7;break Kb}H[f+16>>2]=b;e=8;d=(h<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;c=c?n:!n;break Jb}d=d-(g<<16)|0;if(!(b&32768)){n=H[i+4>>2];c=b>>>0<g>>>0;H[k>>2]=H[i+(c?12:8)>>2];while(1){Lb:{if(e){break Lb}i=H[f+16>>2];g=i+1|0;h=I[i+1|0];if(I[i|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Lb}H[f+16>>2]=g;d=(h<<9)+d|0;e=7;break Lb}H[f+16>>2]=g;e=8;d=(h<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!n:n;break Jb}c=H[i+4>>2]}if(!c){i=k;break Gb}c=H[q>>2];g=H[c>>2];b=b-g|0;Mb:{if(d>>>16>>>0<g>>>0){h=H[c+4>>2];i=b>>>0<g>>>0;c=H[(i?8:12)+c>>2];H[q>>2]=c;while(1){Nb:{if(e){break Nb}n=H[f+16>>2];b=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Nb}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break Nb}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;n=i?h:!h;break Mb}d=d-(g<<16)|0;if(!(b&32768)){h=H[c+4>>2];g=b>>>0<g>>>0;c=H[(g?12:8)+c>>2];H[q>>2]=c;while(1){Ob:{if(e){break Ob}n=H[f+16>>2];i=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Ob}H[f+16>>2]=i;d=(m<<9)+d|0;e=7;break Ob}H[f+16>>2]=i;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=g?!h:h;break Mb}n=H[c+4>>2]}g=H[c>>2];b=b-g|0;Pb:{if(d>>>16>>>0<g>>>0){h=H[c+4>>2];i=c;c=b>>>0<g>>>0;H[q>>2]=H[i+(c?8:12)>>2];while(1){Qb:{if(e){break Qb}i=H[f+16>>2];b=i+1|0;m=I[i+1|0];if(I[i|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Qb}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break Qb}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;c=c?h:!h;break Pb}d=d-(g<<16)|0;if(!(b&32768)){h=H[c+4>>2];i=c;c=b>>>0<g>>>0;H[q>>2]=H[i+(c?12:8)>>2];while(1){Rb:{if(e){break Rb}i=H[f+16>>2];g=i+1|0;m=I[i+1|0];if(I[i|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Rb}H[f+16>>2]=g;d=(m<<9)+d|0;e=7;break Rb}H[f+16>>2]=g;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break Pb}c=H[c+4>>2]}g=0;i=q;Sb:{Tb:{Ub:{Vb:{Wb:{switch(c|n<<1){case 0:m=j-4|0;i=H[j+4>>2]>>>17&4|H[m>>2]>>>19&1;c=w+(I[i+24384|0]<<2)|0;n=H[c>>2];g=H[n>>2];b=b-g|0;Xb:{if(d>>>16>>>0<g>>>0){h=H[n+4>>2];v=c;c=b>>>0<g>>>0;H[v>>2]=H[n+(c?8:12)>>2];while(1){Yb:{if(e){break Yb}n=H[f+16>>2];b=n+1|0;l=I[n+1|0];if(I[n|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Yb}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Yb}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;n=c?h:!h;break Xb}d=d-(g<<16)|0;if(!(b&32768)){h=H[n+4>>2];v=c;c=b>>>0<g>>>0;H[v>>2]=H[n+(c?12:8)>>2];while(1){Zb:{if(e){break Zb}n=H[f+16>>2];g=n+1|0;l=I[n+1|0];if(I[n|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Zb}H[f+16>>2]=g;d=(l<<9)+d|0;e=7;break Zb}H[f+16>>2]=g;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=c?!h:h;break Xb}n=H[n+4>>2]}g=I[i+24640|0];H[o>>2]=(n|0)==(g|0)?s:u;H[m>>2]=H[m>>2]|32;H[j+4>>2]=H[j+4>>2]|8;c=j-268|0;H[c>>2]=H[c>>2]|131072;c=j-260|0;H[c>>2]=H[c>>2]|32768;c=j-264|0;i=c;v=H[c>>2];c=g^n;H[i>>2]=v|c<<31|65536;i=c<<19;t=H[f+108>>2];c=w+(I[t+2|0]<<2)|0;n=H[c>>2];g=H[n>>2];b=b-g|0;_b:{if(d>>>16>>>0<g>>>0){h=H[n+4>>2];v=c;c=b>>>0<g>>>0;H[v>>2]=H[n+(c?8:12)>>2];while(1){$b:{if(e){break $b}n=H[f+16>>2];b=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break $b}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break $b}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;c=c?h:!h;break _b}d=d-(g<<16)|0;if(!(b&32768)){h=H[n+4>>2];v=c;c=b>>>0<g>>>0;H[v>>2]=H[n+(c?12:8)>>2];while(1){ac:{if(e){break ac}n=H[f+16>>2];g=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break ac}H[f+16>>2]=g;d=(m<<9)+d|0;e=7;break ac}H[f+16>>2]=g;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break _b}c=H[n+4>>2]}g=i|16;if(!c){break Vb}break;case 1:break Wb;case 2:break Ub;case 3:break Sb;default:break Hb}}m=j-4|0;n=H[j+4>>2]>>>20&4|(H[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|g>>>3&170)));i=w+(I[n+24384|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;bc:{if(d>>>16>>>0<c>>>0){h=H[l+4>>2];v=i;i=b>>>0<c>>>0;H[v>>2]=H[l+(i?8:12)>>2];while(1){cc:{if(e){break cc}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break cc}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break cc}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;i=i?h:!h;break bc}d=d-(c<<16)|0;if(!(b&32768)){h=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){dc:{if(e){break dc}e=H[f+16>>2];i=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break dc}H[f+16>>2]=i;d=(l<<9)+d|0;e=7;break dc}H[f+16>>2]=i;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}i=c?!h:h;break bc}i=H[l+4>>2]}c=I[n+24640|0];H[o+256>>2]=(i|0)==(c|0)?s:u;H[m>>2]=H[m>>2]|256;H[j+4>>2]=H[j+4>>2]|64;t=H[f+108>>2];g=(c^i)<<22|g|128}i=w+(I[(g>>>6&495)+t|0]<<2)|0;n=H[i>>2];c=H[n>>2];b=b-c|0;ec:{if(d>>>16>>>0<c>>>0){h=H[n+4>>2];v=i;i=b>>>0<c>>>0;H[v>>2]=H[n+(i?8:12)>>2];while(1){fc:{if(e){break fc}n=H[f+16>>2];b=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break fc}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break fc}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=i?h:!h;break ec}d=d-(c<<16)|0;if(!(b&32768)){h=H[n+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[n+(c?12:8)>>2];while(1){gc:{if(e){break gc}n=H[f+16>>2];i=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break gc}H[f+16>>2]=i;d=(m<<9)+d|0;e=7;break gc}H[f+16>>2]=i;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break ec}c=H[n+4>>2]}if(!c){break Tb}}m=j-4|0;n=H[j+4>>2]>>>23&4|(H[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|g>>>6&170)));i=w+(I[n+24384|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;hc:{if(d>>>16>>>0<c>>>0){h=H[l+4>>2];v=i;i=b>>>0<c>>>0;H[v>>2]=H[l+(i?8:12)>>2];while(1){ic:{if(e){break ic}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break ic}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break ic}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;i=i?h:!h;break hc}d=d-(c<<16)|0;if(!(b&32768)){h=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){jc:{if(e){break jc}e=H[f+16>>2];i=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break jc}H[f+16>>2]=i;d=(l<<9)+d|0;e=7;break jc}H[f+16>>2]=i;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}i=c?!h:h;break hc}i=H[l+4>>2]}c=I[n+24640|0];H[o+512>>2]=(i|0)==(c|0)?s:u;H[m>>2]=H[m>>2]|2048;H[j+4>>2]=H[j+4>>2]|512;g=(c^i)<<25|g|1024;t=H[f+108>>2]}i=w+(I[(g>>>9&495)+t|0]<<2)|0;m=H[i>>2];c=H[m>>2];b=b-c|0;kc:{if(d>>>16>>>0<c>>>0){h=H[m+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[m+(n?8:12)>>2];while(1){lc:{if(e){break lc}e=H[f+16>>2];b=e+1|0;m=I[e+1|0];if(I[e|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break lc}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break lc}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?h:!h;break kc}d=d-(c<<16)|0;if(!(b&32768)){h=H[m+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[m+(c?12:8)>>2];while(1){mc:{if(e){break mc}e=H[f+16>>2];n=e+1|0;m=I[e+1|0];if(I[e|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break mc}H[f+16>>2]=n;d=(m<<9)+d|0;e=7;break mc}H[f+16>>2]=n;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break kc}c=H[m+4>>2]}if(!c){break Hb}}m=j-4|0;p=H[j+4>>2]>>>26&4|(H[m>>2]>>>28&1|(g>>>21&16|(g>>>25&64|g>>>9&170)));i=w+(I[p+24384|0]<<2)|0;t=H[i>>2];c=H[t>>2];b=b-c|0;break Ib}nc:{if(g&2097168){break nc}i=w+(I[H[f+108>>2]+(g&495)|0]<<2)|0;m=H[i>>2];c=H[m>>2];b=b-c|0;oc:{if(d>>>16>>>0<c>>>0){h=H[m+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[m+(n?8:12)>>2];while(1){pc:{if(e){break pc}e=H[f+16>>2];b=e+1|0;m=I[e+1|0];if(I[e|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break pc}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break pc}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?h:!h;break oc}d=d-(c<<16)|0;if(!(b&32768)){h=H[m+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[m+(c?12:8)>>2];while(1){qc:{if(e){break qc}e=H[f+16>>2];n=e+1|0;m=I[e+1|0];if(I[e|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break qc}H[f+16>>2]=n;d=(m<<9)+d|0;e=7;break qc}H[f+16>>2]=n;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break oc}c=H[m+4>>2]}if(!c){break nc}l=j-4|0;h=H[j+4>>2]>>>17&4|(H[l>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));i=w+(I[h+24384|0]<<2)|0;p=H[i>>2];c=H[p>>2];b=b-c|0;rc:{if(d>>>16>>>0<c>>>0){m=H[p+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[p+(n?8:12)>>2];while(1){sc:{if(e){break sc}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break sc}H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break sc}H[f+16>>2]=b;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;m=n?m:!m;break rc}d=d-(c<<16)|0;if(!(b&32768)){m=H[p+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[p+(c?12:8)>>2];while(1){tc:{if(e){break tc}e=H[f+16>>2];n=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break tc}H[f+16>>2]=n;d=(p<<9)+d|0;e=7;break tc}H[f+16>>2]=n;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}m=c?!m:m;break rc}m=H[p+4>>2]}n=I[h+24640|0];H[o>>2]=(m|0)==(n|0)?s:u;H[l>>2]=H[l>>2]|32;H[j+4>>2]=H[j+4>>2]|8;c=j-268|0;H[c>>2]=H[c>>2]|131072;c=j-260|0;H[c>>2]=H[c>>2]|32768;c=j-264|0;v=c;M=H[c>>2];c=m^n;H[v>>2]=M|c<<31|65536;g=c<<19|g|16}uc:{if(g&16777344){break uc}h=g>>>3|0;i=w+(I[H[f+108>>2]+(h&495)|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;vc:{if(d>>>16>>>0<c>>>0){m=H[l+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[l+(n?8:12)>>2];while(1){wc:{if(e){break wc}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break wc}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break wc}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?m:!m;break vc}d=d-(c<<16)|0;if(!(b&32768)){m=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){xc:{if(e){break xc}e=H[f+16>>2];n=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break xc}H[f+16>>2]=n;d=(l<<9)+d|0;e=7;break xc}H[f+16>>2]=n;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!m:m;break vc}c=H[l+4>>2]}if(!c){break uc}l=j-4|0;h=H[j+4>>2]>>>20&4|(H[l>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));i=w+(I[h+24384|0]<<2)|0;p=H[i>>2];c=H[p>>2];b=b-c|0;yc:{if(d>>>16>>>0<c>>>0){m=H[p+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[p+(n?8:12)>>2];while(1){zc:{if(e){break zc}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break zc}H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break zc}H[f+16>>2]=b;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;n=n?m:!m;break yc}d=d-(c<<16)|0;if(!(b&32768)){m=H[p+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[p+(c?12:8)>>2];while(1){Ac:{if(e){break Ac}e=H[f+16>>2];n=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Ac}H[f+16>>2]=n;d=(p<<9)+d|0;e=7;break Ac}H[f+16>>2]=n;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=c?!m:m;break yc}n=H[p+4>>2]}c=I[h+24640|0];H[o+256>>2]=(n|0)==(c|0)?s:u;H[l>>2]=H[l>>2]|256;H[j+4>>2]=H[j+4>>2]|64;g=(c^n)<<22|g|128}Bc:{if(g&134218752){break Bc}h=g>>>6|0;i=w+(I[H[f+108>>2]+(h&495)|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;Cc:{if(d>>>16>>>0<c>>>0){m=H[l+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[l+(n?8:12)>>2];while(1){Dc:{if(e){break Dc}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Dc}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Dc}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?m:!m;break Cc}d=d-(c<<16)|0;if(!(b&32768)){m=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){Ec:{if(e){break Ec}e=H[f+16>>2];n=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Ec}H[f+16>>2]=n;d=(l<<9)+d|0;e=7;break Ec}H[f+16>>2]=n;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!m:m;break Cc}c=H[l+4>>2]}if(!c){break Bc}l=j-4|0;h=H[j+4>>2]>>>23&4|(H[l>>2]>>>25&1|(g>>>18&16|(g>>>22&64|h&170)));i=w+(I[h+24384|0]<<2)|0;p=H[i>>2];c=H[p>>2];b=b-c|0;Fc:{if(d>>>16>>>0<c>>>0){m=H[p+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[p+(n?8:12)>>2];while(1){Gc:{if(e){break Gc}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Gc}H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break Gc}H[f+16>>2]=b;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;n=n?m:!m;break Fc}d=d-(c<<16)|0;if(!(b&32768)){m=H[p+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[p+(c?12:8)>>2];while(1){Hc:{if(e){break Hc}e=H[f+16>>2];n=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Hc}H[f+16>>2]=n;d=(p<<9)+d|0;e=7;break Hc}H[f+16>>2]=n;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=c?!m:m;break Fc}n=H[p+4>>2]}c=I[h+24640|0];H[o+512>>2]=(n|0)==(c|0)?s:u;H[l>>2]=H[l>>2]|2048;H[j+4>>2]=H[j+4>>2]|512;g=(c^n)<<25|g|1024}if(g&1073750016){break Hb}h=g>>>9|0;i=w+(I[H[f+108>>2]+(h&495)|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;Ic:{if(d>>>16>>>0<c>>>0){m=H[l+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[l+(n?8:12)>>2];while(1){Jc:{if(e){break Jc}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Jc}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Jc}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?m:!m;break Ic}d=d-(c<<16)|0;if(!(b&32768)){m=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){Kc:{if(e){break Kc}e=H[f+16>>2];n=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Kc}H[f+16>>2]=n;d=(l<<9)+d|0;e=7;break Kc}H[f+16>>2]=n;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!m:m;break Ic}c=H[l+4>>2]}if(!c){break Hb}m=j-4|0;p=H[j+4>>2]>>>26&4|(H[m>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));i=w+(I[p+24384|0]<<2)|0;t=H[i>>2];c=H[t>>2];b=b-c|0}Lc:{if(d>>>16>>>0<c>>>0){h=H[t+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[(n?8:12)+t>>2];while(1){Mc:{if(e){break Mc}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Mc}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Mc}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;n=n?h:!h;break Lc}d=d-(c<<16)|0;if(!(b&32768)){h=H[t+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[(c?12:8)+t>>2];while(1){Nc:{if(e){break Nc}e=H[f+16>>2];n=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Nc}H[f+16>>2]=n;d=(l<<9)+d|0;e=7;break Nc}H[f+16>>2]=n;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=c?!h:h;break Lc}n=H[t+4>>2]}c=I[p+24640|0];H[o+768>>2]=(n|0)==(c|0)?s:u;H[m>>2]=H[m>>2]|16384;H[j+4>>2]=H[j+4>>2]|4096;H[j+260>>2]=H[j+260>>2]|4;H[j+268>>2]=H[j+268>>2]|1;c=c^n;H[j+264>>2]=H[j+264>>2]|c<<18|2;g=c<<28|g|8192}H[j>>2]=g&-1226833921}g=j+4|0;c=o+4|0;r=r+1|0;if((r|0)!=64){continue}break}g=j+12|0;c=o+772|0;n=x>>>0<60;x=x+4|0;if(n){continue}break}break Eb}b=1<<z;M=b>>>1|b;k=H[f+120>>2];c=(k+(W<<2)|0)+12|0;g=H[f+128>>2];e=H[f+8>>2];b=H[f+4>>2];d=H[f>>2];i=H[f+104>>2];o=H[f+116>>2];if(V&8){Oc:{if(g>>>0<4){break Oc}if(W){n=f+100|0;q=f+96|0;r=N(W,12);u=W<<3;v=0-M|0;D=f+28|0;while(1){w=0;while(1){j=c;c=H[c>>2];Pc:{Qc:{Rc:{if(c){Sc:{if(c&2097168){break Sc}i=D+(I[H[f+108>>2]+(c&495)|0]<<2)|0;l=H[i>>2];g=H[l>>2];b=b-g|0;Tc:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[l+4>>2];if(b&32768){break Tc}h=H[l+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[l+(g?12:8)>>2];while(1){Uc:{if(e){break Uc}e=H[f+16>>2];k=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break Uc}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break Uc}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!h:h;break Tc}h=H[l+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[l+(k?8:12)>>2];while(1){Vc:{if(e){break Vc}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break Vc}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Vc}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?h:!h}if(!k){break Sc}p=j-4|0;h=H[j+4>>2]>>>17&4|(H[p>>2]>>>19&1|(c>>>14&16|(c>>>16&64|c&170)));i=D+(I[h+24384|0]<<2)|0;s=H[i>>2];g=H[s>>2];b=b-g|0;Wc:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[s+4>>2];if(b&32768){break Wc}l=H[s+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[s+(g?12:8)>>2];while(1){Xc:{if(e){break Xc}e=H[f+16>>2];k=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(s<<8)+d|0;break Xc}if(s>>>0<=143){H[f+16>>2]=k;d=(s<<9)+d|0;e=7;break Xc}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break Wc}l=H[s+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[s+(k?8:12)>>2];while(1){Yc:{if(e){break Yc}e=H[f+16>>2];b=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(s<<8)+d|0;break Yc}if(s>>>0<=143){H[f+16>>2]=b;d=(s<<9)+d|0;e=7;break Yc}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}g=I[h+24640|0];H[o>>2]=(k|0)==(g|0)?M:v;H[p>>2]=H[p>>2]|32;H[j+4>>2]=H[j+4>>2]|8;c=(g^k)<<19|c|16}Zc:{if(c&16777344){break Zc}h=c>>>3|0;i=D+(I[H[f+108>>2]+(h&495)|0]<<2)|0;p=H[i>>2];g=H[p>>2];b=b-g|0;_c:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[p+4>>2];if(b&32768){break _c}l=H[p+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[p+(g?12:8)>>2];while(1){$c:{if(e){break $c}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break $c}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break $c}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break _c}l=H[p+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[p+(k?8:12)>>2];while(1){ad:{if(e){break ad}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break ad}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break ad}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}if(!k){break Zc}p=j-4|0;h=H[j+4>>2]>>>20&4|(H[p>>2]>>>22&1|(c>>>15&16|(c>>>19&64|h&170)));i=D+(I[h+24384|0]<<2)|0;s=H[i>>2];g=H[s>>2];b=b-g|0;t=(W<<2)+o|0;bd:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[s+4>>2];if(b&32768){break bd}l=H[s+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[s+(g?12:8)>>2];while(1){cd:{if(e){break cd}e=H[f+16>>2];k=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(s<<8)+d|0;break cd}if(s>>>0<=143){H[f+16>>2]=k;d=(s<<9)+d|0;e=7;break cd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break bd}l=H[s+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[s+(k?8:12)>>2];while(1){dd:{if(e){break dd}e=H[f+16>>2];b=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(s<<8)+d|0;break dd}if(s>>>0<=143){H[f+16>>2]=b;d=(s<<9)+d|0;e=7;break dd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}g=I[h+24640|0];H[t>>2]=(k|0)==(g|0)?M:v;H[p>>2]=H[p>>2]|256;H[j+4>>2]=H[j+4>>2]|64;c=(g^k)<<22|c|128}ed:{if(c&134218752){break ed}h=c>>>6|0;i=D+(I[H[f+108>>2]+(h&495)|0]<<2)|0;p=H[i>>2];g=H[p>>2];b=b-g|0;fd:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[p+4>>2];if(b&32768){break fd}l=H[p+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[p+(g?12:8)>>2];while(1){gd:{if(e){break gd}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break gd}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break gd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break fd}l=H[p+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[p+(k?8:12)>>2];while(1){hd:{if(e){break hd}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break hd}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break hd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}if(!k){break ed}p=j-4|0;h=H[j+4>>2]>>>23&4|(H[p>>2]>>>25&1|(c>>>18&16|(c>>>22&64|h&170)));i=D+(I[h+24384|0]<<2)|0;s=H[i>>2];g=H[s>>2];b=b-g|0;t=o+u|0;id:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[s+4>>2];if(b&32768){break id}l=H[s+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[s+(g?12:8)>>2];while(1){jd:{if(e){break jd}e=H[f+16>>2];k=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(s<<8)+d|0;break jd}if(s>>>0<=143){H[f+16>>2]=k;d=(s<<9)+d|0;e=7;break jd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break id}l=H[s+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[s+(k?8:12)>>2];while(1){kd:{if(e){break kd}e=H[f+16>>2];b=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(s<<8)+d|0;break kd}if(s>>>0<=143){H[f+16>>2]=b;d=(s<<9)+d|0;e=7;break kd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}g=I[h+24640|0];H[t>>2]=(k|0)==(g|0)?M:v;H[p>>2]=H[p>>2]|2048;H[j+4>>2]=H[j+4>>2]|512;c=(g^k)<<25|c|1024}if(c&1073750016){break Qc}h=c>>>9|0;i=D+(I[H[f+108>>2]+(h&495)|0]<<2)|0;p=H[i>>2];g=H[p>>2];b=b-g|0;ld:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[p+4>>2];if(b&32768){break ld}l=H[p+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[p+(g?12:8)>>2];while(1){md:{if(e){break md}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break md}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break md}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break ld}l=H[p+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[p+(k?8:12)>>2];while(1){nd:{if(e){break nd}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break nd}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break nd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}if(!k){break Qc}p=j-4|0;T=H[j+4>>2]>>>26&4|(H[p>>2]>>>28&1|(c>>>21&16|(c>>>25&64|h&170)));i=D+(I[T+24384|0]<<2)|0;t=H[i>>2];g=H[t>>2];b=b-g|0;break Rc}k=H[q>>2];c=H[k>>2];b=b-c|0;od:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;g=H[k+4>>2];if(b&32768){break od}i=H[k+4>>2];c=b>>>0<c>>>0;H[q>>2]=H[k+(c?12:8)>>2];while(1){pd:{if(e){break pd}k=H[f+16>>2];g=k+1|0;h=I[k+1|0];if(I[k|0]!=255){H[f+16>>2]=g;e=8;d=(h<<8)+d|0;break pd}if(h>>>0<=143){H[f+16>>2]=g;d=(h<<9)+d|0;e=7;break pd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}g=c?!i:i;break od}i=H[k+4>>2];g=b>>>0<c>>>0;H[q>>2]=H[k+(g?8:12)>>2];while(1){qd:{if(e){break qd}k=H[f+16>>2];b=k+1|0;h=I[k+1|0];if(I[k|0]!=255){H[f+16>>2]=b;e=8;d=(h<<8)+d|0;break qd}if(h>>>0<=143){H[f+16>>2]=b;d=(h<<9)+d|0;e=7;break qd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;g=g?i:!i}if(!g){i=q;break Pc}g=H[n>>2];c=H[g>>2];b=b-c|0;rd:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;k=H[g+4>>2];if(b&32768){break rd}h=H[g+4>>2];c=b>>>0<c>>>0;g=H[(c?12:8)+g>>2];H[n>>2]=g;while(1){sd:{if(e){break sd}i=H[f+16>>2];k=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break sd}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break sd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=c?!h:h;break rd}h=H[g+4>>2];k=b>>>0<c>>>0;g=H[(k?8:12)+g>>2];H[n>>2]=g;while(1){td:{if(e){break td}i=H[f+16>>2];b=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break td}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break td}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;k=k?h:!h}c=H[g>>2];b=b-c|0;ud:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;i=H[g+4>>2];if(b&32768){break ud}h=H[g+4>>2];c=b>>>0<c>>>0;H[n>>2]=H[(c?12:8)+g>>2];while(1){vd:{if(e){break vd}i=H[f+16>>2];g=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=g;e=8;d=(l<<8)+d|0;break vd}if(l>>>0<=143){H[f+16>>2]=g;d=(l<<9)+d|0;e=7;break vd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}i=c?!h:h;break ud}h=H[g+4>>2];i=g;g=b>>>0<c>>>0;H[n>>2]=H[i+(g?8:12)>>2];while(1){wd:{if(e){break wd}i=H[f+16>>2];b=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break wd}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break wd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;i=g?h:!h}g=i;c=0;i=n;xd:{yd:{zd:{Ad:{Bd:{switch(g|k<<1){case 0:l=j-4|0;k=H[j+4>>2]>>>17&4|H[l>>2]>>>19&1;g=D+(I[k+24384|0]<<2)|0;i=H[g>>2];c=H[i>>2];b=b-c|0;Cd:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;s=H[i+4>>2];if(b&32768){break Cd}h=H[i+4>>2];c=b>>>0<c>>>0;H[g>>2]=H[i+(c?12:8)>>2];while(1){Dd:{if(e){break Dd}i=H[f+16>>2];g=i+1|0;p=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=g;e=8;d=(p<<8)+d|0;break Dd}if(p>>>0<=143){H[f+16>>2]=g;d=(p<<9)+d|0;e=7;break Dd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=c?!h:h;break Cd}h=H[i+4>>2];s=g;g=b>>>0<c>>>0;H[s>>2]=H[i+(g?8:12)>>2];while(1){Ed:{if(e){break Ed}i=H[f+16>>2];b=i+1|0;p=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break Ed}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break Ed}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;s=g?h:!h}g=s;c=I[k+24640|0];H[o>>2]=(g|0)==(c|0)?M:v;H[l>>2]=H[l>>2]|32;H[j+4>>2]=H[j+4>>2]|8;k=(c^g)<<19;t=H[f+108>>2];g=D+(I[t+2|0]<<2)|0;i=H[g>>2];c=H[i>>2];b=b-c|0;Fd:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;s=H[i+4>>2];if(b&32768){break Fd}h=H[i+4>>2];c=b>>>0<c>>>0;H[g>>2]=H[i+(c?12:8)>>2];while(1){Gd:{if(e){break Gd}i=H[f+16>>2];g=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=g;e=8;d=(l<<8)+d|0;break Gd}if(l>>>0<=143){H[f+16>>2]=g;d=(l<<9)+d|0;e=7;break Gd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=c?!h:h;break Fd}h=H[i+4>>2];s=g;g=b>>>0<c>>>0;H[s>>2]=H[i+(g?8:12)>>2];while(1){Hd:{if(e){break Hd}i=H[f+16>>2];b=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break Hd}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Hd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;s=g?h:!h}g=s;c=k|16;if(!g){break Ad}break;case 1:break Bd;case 2:break zd;case 3:break xd;default:break Qc}}l=j-4|0;i=H[j+4>>2]>>>20&4|(H[l>>2]>>>22&1|(c>>>15&16|(c>>>19&64|c>>>3&170)));k=D+(I[i+24384|0]<<2)|0;p=H[k>>2];g=H[p>>2];b=b-g|0;t=(W<<2)+o|0;Id:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;s=H[p+4>>2];if(b&32768){break Id}h=H[p+4>>2];g=b>>>0<g>>>0;H[k>>2]=H[p+(g?12:8)>>2];while(1){Jd:{if(e){break Jd}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break Jd}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break Jd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=g?!h:h;break Id}h=H[p+4>>2];s=k;k=b>>>0<g>>>0;H[s>>2]=H[p+(k?8:12)>>2];while(1){Kd:{if(e){break Kd}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break Kd}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break Kd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;s=k?h:!h}k=s;g=I[i+24640|0];H[t>>2]=(k|0)==(g|0)?M:v;H[l>>2]=H[l>>2]|256;H[j+4>>2]=H[j+4>>2]|64;t=H[f+108>>2];c=(g^k)<<22|c|128}k=D+(I[(c>>>6&495)+t|0]<<2)|0;i=H[k>>2];g=H[i>>2];b=b-g|0;Ld:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;s=H[i+4>>2];if(b&32768){break Ld}h=H[i+4>>2];g=b>>>0<g>>>0;H[k>>2]=H[i+(g?12:8)>>2];while(1){Md:{if(e){break Md}i=H[f+16>>2];k=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break Md}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break Md}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=g?!h:h;break Ld}h=H[i+4>>2];s=k;k=b>>>0<g>>>0;H[s>>2]=H[i+(k?8:12)>>2];while(1){Nd:{if(e){break Nd}i=H[f+16>>2];b=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break Nd}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Nd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;s=k?h:!h}if(!s){break yd}}l=j-4|0;i=H[j+4>>2]>>>23&4|(H[l>>2]>>>25&1|(c>>>18&16|(c>>>22&64|c>>>6&170)));k=D+(I[i+24384|0]<<2)|0;p=H[k>>2];g=H[p>>2];b=b-g|0;t=o+u|0;Od:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;s=H[p+4>>2];if(b&32768){break Od}h=H[p+4>>2];g=b>>>0<g>>>0;H[k>>2]=H[p+(g?12:8)>>2];while(1){Pd:{if(e){break Pd}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break Pd}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break Pd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=g?!h:h;break Od}h=H[p+4>>2];s=k;k=b>>>0<g>>>0;H[s>>2]=H[p+(k?8:12)>>2];while(1){Qd:{if(e){break Qd}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break Qd}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break Qd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;s=k?h:!h}k=s;g=I[i+24640|0];H[t>>2]=(k|0)==(g|0)?M:v;H[l>>2]=H[l>>2]|2048;H[j+4>>2]=H[j+4>>2]|512;c=(g^k)<<25|c|1024;t=H[f+108>>2]}i=D+(I[(c>>>9&495)+t|0]<<2)|0;l=H[i>>2];g=H[l>>2];b=b-g|0;Rd:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[l+4>>2];if(b&32768){break Rd}h=H[l+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[l+(g?12:8)>>2];while(1){Sd:{if(e){break Sd}e=H[f+16>>2];k=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break Sd}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break Sd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!h:h;break Rd}h=H[l+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[l+(k?8:12)>>2];while(1){Td:{if(e){break Td}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break Td}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Td}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?h:!h}if(!k){break Qc}}p=j-4|0;T=H[j+4>>2]>>>26&4|(H[p>>2]>>>28&1|(c>>>21&16|(c>>>25&64|c>>>9&170)));i=D+(I[T+24384|0]<<2)|0;t=H[i>>2];g=H[t>>2];b=b-g|0}s=o+r|0;Ud:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[t+4>>2];if(b&32768){break Ud}h=H[t+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[(g?12:8)+t>>2];while(1){Vd:{if(e){break Vd}e=H[f+16>>2];k=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break Vd}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break Vd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!h:h;break Ud}h=H[t+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[(k?8:12)+t>>2];while(1){Wd:{if(e){break Wd}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break Wd}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Wd}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?h:!h}g=I[T+24640|0];H[s>>2]=(k|0)==(g|0)?M:v;H[p>>2]=H[p>>2]|16384;H[j+4>>2]=H[j+4>>2]|4096;h=j+(H[f+124>>2]<<2)|0;H[h+4>>2]=H[h+4>>2]|4;H[h+12>>2]=H[h+12>>2]|1;g=g^k;H[h+8>>2]=H[h+8>>2]|g<<18|2;c=g<<28|c|8192}H[j>>2]=c&-1226833921}c=j+4|0;o=o+4|0;w=w+1|0;if((W|0)!=(w|0)){continue}break}c=j+12|0;o=o+r|0;x=x+4|0;g=H[f+128>>2];if(x>>>0<(g&-4)>>>0){continue}break}break Oc}x=g&-4;c=(k+(x<<1)|0)+12|0}H[f+8>>2]=e;H[f+4>>2]=b;H[f>>2]=d;H[f+104>>2]=i;if(!W|g>>>0<=x>>>0){break Db}while(1){e=0;if(H[f+128>>2]!=(x|0)){while(1){Wb(f,c,(N(e,W)<<2)+o|0,M,e,1);e=e+1|0;if(e>>>0<H[f+128>>2]-x>>>0){continue}break}}H[c>>2]=H[c>>2]&-1226833921;o=o+4|0;c=c+4|0;m=m+1|0;if((W|0)!=(m|0)){continue}break}break Db}Xd:{if(g>>>0<4){break Xd}if(W){n=f+100|0;q=f+96|0;r=N(W,12);u=W<<3;v=0-M|0;D=f+28|0;while(1){w=0;while(1){j=c;c=H[c>>2];Yd:{Zd:{_d:{if(c){$d:{if(c&2097168){break $d}i=D+(I[H[f+108>>2]+(c&495)|0]<<2)|0;l=H[i>>2];g=H[l>>2];b=b-g|0;ae:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[l+4>>2];if(b&32768){break ae}h=H[l+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[l+(g?12:8)>>2];while(1){be:{if(e){break be}e=H[f+16>>2];k=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break be}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break be}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!h:h;break ae}h=H[l+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[l+(k?8:12)>>2];while(1){ce:{if(e){break ce}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break ce}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break ce}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?h:!h}if(!k){break $d}p=j-4|0;h=H[j+4>>2]>>>17&4|(H[p>>2]>>>19&1|(c>>>14&16|(c>>>16&64|c&170)));i=D+(I[h+24384|0]<<2)|0;s=H[i>>2];g=H[s>>2];b=b-g|0;de:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[s+4>>2];if(b&32768){break de}l=H[s+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[s+(g?12:8)>>2];while(1){ee:{if(e){break ee}e=H[f+16>>2];k=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(s<<8)+d|0;break ee}if(s>>>0<=143){H[f+16>>2]=k;d=(s<<9)+d|0;e=7;break ee}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break de}l=H[s+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[s+(k?8:12)>>2];while(1){fe:{if(e){break fe}e=H[f+16>>2];b=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(s<<8)+d|0;break fe}if(s>>>0<=143){H[f+16>>2]=b;d=(s<<9)+d|0;e=7;break fe}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}g=I[h+24640|0];H[o>>2]=(k|0)==(g|0)?M:v;H[p>>2]=H[p>>2]|32;H[j+4>>2]=H[j+4>>2]|8;h=j+(-2-H[f+124>>2]<<2)|0;H[h+4>>2]=H[h+4>>2]|32768;k=g^k;H[h>>2]=H[h>>2]|k<<31|65536;g=h-4|0;H[g>>2]=H[g>>2]|131072;c=k<<19|c|16}ge:{if(c&16777344){break ge}h=c>>>3|0;i=D+(I[H[f+108>>2]+(h&495)|0]<<2)|0;p=H[i>>2];g=H[p>>2];b=b-g|0;he:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[p+4>>2];if(b&32768){break he}l=H[p+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[p+(g?12:8)>>2];while(1){ie:{if(e){break ie}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break ie}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break ie}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break he}l=H[p+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[p+(k?8:12)>>2];while(1){je:{if(e){break je}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break je}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break je}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}if(!k){break ge}p=j-4|0;h=H[j+4>>2]>>>20&4|(H[p>>2]>>>22&1|(c>>>15&16|(c>>>19&64|h&170)));i=D+(I[h+24384|0]<<2)|0;s=H[i>>2];g=H[s>>2];b=b-g|0;t=(W<<2)+o|0;ke:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[s+4>>2];if(b&32768){break ke}l=H[s+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[s+(g?12:8)>>2];while(1){le:{if(e){break le}e=H[f+16>>2];k=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(s<<8)+d|0;break le}if(s>>>0<=143){H[f+16>>2]=k;d=(s<<9)+d|0;e=7;break le}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break ke}l=H[s+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[s+(k?8:12)>>2];while(1){me:{if(e){break me}e=H[f+16>>2];b=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(s<<8)+d|0;break me}if(s>>>0<=143){H[f+16>>2]=b;d=(s<<9)+d|0;e=7;break me}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}g=I[h+24640|0];H[t>>2]=(k|0)==(g|0)?M:v;H[p>>2]=H[p>>2]|256;H[j+4>>2]=H[j+4>>2]|64;c=(g^k)<<22|c|128}ne:{if(c&134218752){break ne}h=c>>>6|0;i=D+(I[H[f+108>>2]+(h&495)|0]<<2)|0;p=H[i>>2];g=H[p>>2];b=b-g|0;oe:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[p+4>>2];if(b&32768){break oe}l=H[p+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[p+(g?12:8)>>2];while(1){pe:{if(e){break pe}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break pe}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break pe}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break oe}l=H[p+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[p+(k?8:12)>>2];while(1){qe:{if(e){break qe}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break qe}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break qe}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}if(!k){break ne}p=j-4|0;h=H[j+4>>2]>>>23&4|(H[p>>2]>>>25&1|(c>>>18&16|(c>>>22&64|h&170)));i=D+(I[h+24384|0]<<2)|0;s=H[i>>2];g=H[s>>2];b=b-g|0;t=o+u|0;re:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[s+4>>2];if(b&32768){break re}l=H[s+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[s+(g?12:8)>>2];while(1){se:{if(e){break se}e=H[f+16>>2];k=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(s<<8)+d|0;break se}if(s>>>0<=143){H[f+16>>2]=k;d=(s<<9)+d|0;e=7;break se}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break re}l=H[s+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[s+(k?8:12)>>2];while(1){te:{if(e){break te}e=H[f+16>>2];b=e+1|0;s=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(s<<8)+d|0;break te}if(s>>>0<=143){H[f+16>>2]=b;d=(s<<9)+d|0;e=7;break te}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}g=I[h+24640|0];H[t>>2]=(k|0)==(g|0)?M:v;H[p>>2]=H[p>>2]|2048;H[j+4>>2]=H[j+4>>2]|512;c=(g^k)<<25|c|1024}if(c&1073750016){break Zd}h=c>>>9|0;i=D+(I[H[f+108>>2]+(h&495)|0]<<2)|0;p=H[i>>2];g=H[p>>2];b=b-g|0;ue:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[p+4>>2];if(b&32768){break ue}l=H[p+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[p+(g?12:8)>>2];while(1){ve:{if(e){break ve}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break ve}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break ve}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!l:l;break ue}l=H[p+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[p+(k?8:12)>>2];while(1){we:{if(e){break we}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break we}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break we}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?l:!l}if(!k){break Zd}p=j-4|0;T=H[j+4>>2]>>>26&4|(H[p>>2]>>>28&1|(c>>>21&16|(c>>>25&64|h&170)));i=D+(I[T+24384|0]<<2)|0;t=H[i>>2];g=H[t>>2];b=b-g|0;break _d}k=H[q>>2];c=H[k>>2];b=b-c|0;xe:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;g=H[k+4>>2];if(b&32768){break xe}i=H[k+4>>2];c=b>>>0<c>>>0;H[q>>2]=H[k+(c?12:8)>>2];while(1){ye:{if(e){break ye}k=H[f+16>>2];g=k+1|0;h=I[k+1|0];if(I[k|0]!=255){H[f+16>>2]=g;e=8;d=(h<<8)+d|0;break ye}if(h>>>0<=143){H[f+16>>2]=g;d=(h<<9)+d|0;e=7;break ye}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}g=c?!i:i;break xe}i=H[k+4>>2];g=b>>>0<c>>>0;H[q>>2]=H[k+(g?8:12)>>2];while(1){ze:{if(e){break ze}k=H[f+16>>2];b=k+1|0;h=I[k+1|0];if(I[k|0]!=255){H[f+16>>2]=b;e=8;d=(h<<8)+d|0;break ze}if(h>>>0<=143){H[f+16>>2]=b;d=(h<<9)+d|0;e=7;break ze}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;g=g?i:!i}if(!g){i=q;break Yd}g=H[n>>2];c=H[g>>2];b=b-c|0;Ae:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;k=H[g+4>>2];if(b&32768){break Ae}h=H[g+4>>2];c=b>>>0<c>>>0;g=H[(c?12:8)+g>>2];H[n>>2]=g;while(1){Be:{if(e){break Be}i=H[f+16>>2];k=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break Be}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break Be}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=c?!h:h;break Ae}h=H[g+4>>2];k=b>>>0<c>>>0;g=H[(k?8:12)+g>>2];H[n>>2]=g;while(1){Ce:{if(e){break Ce}i=H[f+16>>2];b=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break Ce}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Ce}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;k=k?h:!h}c=H[g>>2];b=b-c|0;De:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;i=H[g+4>>2];if(b&32768){break De}h=H[g+4>>2];c=b>>>0<c>>>0;H[n>>2]=H[(c?12:8)+g>>2];while(1){Ee:{if(e){break Ee}i=H[f+16>>2];g=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=g;e=8;d=(l<<8)+d|0;break Ee}if(l>>>0<=143){H[f+16>>2]=g;d=(l<<9)+d|0;e=7;break Ee}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}i=c?!h:h;break De}h=H[g+4>>2];i=g;g=b>>>0<c>>>0;H[n>>2]=H[i+(g?8:12)>>2];while(1){Fe:{if(e){break Fe}i=H[f+16>>2];b=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break Fe}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Fe}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;i=g?h:!h}g=i;c=0;i=n;Ge:{He:{Ie:{Je:{Ke:{switch(g|k<<1){case 0:l=j-4|0;k=H[j+4>>2]>>>17&4|H[l>>2]>>>19&1;g=D+(I[k+24384|0]<<2)|0;i=H[g>>2];c=H[i>>2];b=b-c|0;Le:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;s=H[i+4>>2];if(b&32768){break Le}h=H[i+4>>2];c=b>>>0<c>>>0;H[g>>2]=H[i+(c?12:8)>>2];while(1){Me:{if(e){break Me}i=H[f+16>>2];g=i+1|0;p=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=g;e=8;d=(p<<8)+d|0;break Me}if(p>>>0<=143){H[f+16>>2]=g;d=(p<<9)+d|0;e=7;break Me}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=c?!h:h;break Le}h=H[i+4>>2];s=g;g=b>>>0<c>>>0;H[s>>2]=H[i+(g?8:12)>>2];while(1){Ne:{if(e){break Ne}i=H[f+16>>2];b=i+1|0;p=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break Ne}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break Ne}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;s=g?h:!h}g=s;c=I[k+24640|0];H[o>>2]=(g|0)==(c|0)?M:v;H[l>>2]=H[l>>2]|32;H[j+4>>2]=H[j+4>>2]|8;k=j+(-2-H[f+124>>2]<<2)|0;H[k+4>>2]=H[k+4>>2]|32768;g=c^g;H[k>>2]=H[k>>2]|g<<31|65536;c=k-4|0;H[c>>2]=H[c>>2]|131072;k=g<<19;t=H[f+108>>2];g=D+(I[t+2|0]<<2)|0;i=H[g>>2];c=H[i>>2];b=b-c|0;Oe:{if(d>>>16>>>0>=c>>>0){d=d-(c<<16)|0;s=H[i+4>>2];if(b&32768){break Oe}h=H[i+4>>2];c=b>>>0<c>>>0;H[g>>2]=H[i+(c?12:8)>>2];while(1){Pe:{if(e){break Pe}i=H[f+16>>2];g=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=g;e=8;d=(l<<8)+d|0;break Pe}if(l>>>0<=143){H[f+16>>2]=g;d=(l<<9)+d|0;e=7;break Pe}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=c?!h:h;break Oe}h=H[i+4>>2];s=g;g=b>>>0<c>>>0;H[s>>2]=H[i+(g?8:12)>>2];while(1){Qe:{if(e){break Qe}i=H[f+16>>2];b=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break Qe}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Qe}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;s=g?h:!h}g=s;c=k|16;if(!g){break Je}break;case 1:break Ke;case 2:break Ie;case 3:break Ge;default:break Zd}}l=j-4|0;i=H[j+4>>2]>>>20&4|(H[l>>2]>>>22&1|(c>>>15&16|(c>>>19&64|c>>>3&170)));k=D+(I[i+24384|0]<<2)|0;p=H[k>>2];g=H[p>>2];b=b-g|0;t=(W<<2)+o|0;Re:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;s=H[p+4>>2];if(b&32768){break Re}h=H[p+4>>2];g=b>>>0<g>>>0;H[k>>2]=H[p+(g?12:8)>>2];while(1){Se:{if(e){break Se}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break Se}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break Se}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=g?!h:h;break Re}h=H[p+4>>2];s=k;k=b>>>0<g>>>0;H[s>>2]=H[p+(k?8:12)>>2];while(1){Te:{if(e){break Te}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break Te}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break Te}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;s=k?h:!h}k=s;g=I[i+24640|0];H[t>>2]=(k|0)==(g|0)?M:v;H[l>>2]=H[l>>2]|256;H[j+4>>2]=H[j+4>>2]|64;t=H[f+108>>2];c=(g^k)<<22|c|128}k=D+(I[(c>>>6&495)+t|0]<<2)|0;i=H[k>>2];g=H[i>>2];b=b-g|0;Ue:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;s=H[i+4>>2];if(b&32768){break Ue}h=H[i+4>>2];g=b>>>0<g>>>0;H[k>>2]=H[i+(g?12:8)>>2];while(1){Ve:{if(e){break Ve}i=H[f+16>>2];k=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break Ve}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break Ve}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=g?!h:h;break Ue}h=H[i+4>>2];s=k;k=b>>>0<g>>>0;H[s>>2]=H[i+(k?8:12)>>2];while(1){We:{if(e){break We}i=H[f+16>>2];b=i+1|0;l=I[i+1|0];if(I[i|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break We}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break We}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;s=k?h:!h}if(!s){break He}}l=j-4|0;i=H[j+4>>2]>>>23&4|(H[l>>2]>>>25&1|(c>>>18&16|(c>>>22&64|c>>>6&170)));k=D+(I[i+24384|0]<<2)|0;p=H[k>>2];g=H[p>>2];b=b-g|0;t=o+u|0;Xe:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;s=H[p+4>>2];if(b&32768){break Xe}h=H[p+4>>2];g=b>>>0<g>>>0;H[k>>2]=H[p+(g?12:8)>>2];while(1){Ye:{if(e){break Ye}e=H[f+16>>2];k=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(p<<8)+d|0;break Ye}if(p>>>0<=143){H[f+16>>2]=k;d=(p<<9)+d|0;e=7;break Ye}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}s=g?!h:h;break Xe}h=H[p+4>>2];s=k;k=b>>>0<g>>>0;H[s>>2]=H[p+(k?8:12)>>2];while(1){Ze:{if(e){break Ze}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(p<<8)+d|0;break Ze}if(p>>>0<=143){H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break Ze}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;s=k?h:!h}k=s;g=I[i+24640|0];H[t>>2]=(k|0)==(g|0)?M:v;H[l>>2]=H[l>>2]|2048;H[j+4>>2]=H[j+4>>2]|512;c=(g^k)<<25|c|1024;t=H[f+108>>2]}i=D+(I[(c>>>9&495)+t|0]<<2)|0;l=H[i>>2];g=H[l>>2];b=b-g|0;_e:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[l+4>>2];if(b&32768){break _e}h=H[l+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[l+(g?12:8)>>2];while(1){$e:{if(e){break $e}e=H[f+16>>2];k=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break $e}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break $e}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!h:h;break _e}h=H[l+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[l+(k?8:12)>>2];while(1){af:{if(e){break af}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break af}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break af}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?h:!h}if(!k){break Zd}}p=j-4|0;T=H[j+4>>2]>>>26&4|(H[p>>2]>>>28&1|(c>>>21&16|(c>>>25&64|c>>>9&170)));i=D+(I[T+24384|0]<<2)|0;t=H[i>>2];g=H[t>>2];b=b-g|0}s=o+r|0;bf:{if(d>>>16>>>0>=g>>>0){d=d-(g<<16)|0;k=H[t+4>>2];if(b&32768){break bf}h=H[t+4>>2];g=b>>>0<g>>>0;H[i>>2]=H[(g?12:8)+t>>2];while(1){cf:{if(e){break cf}e=H[f+16>>2];k=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=k;e=8;d=(l<<8)+d|0;break cf}if(l>>>0<=143){H[f+16>>2]=k;d=(l<<9)+d|0;e=7;break cf}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}k=g?!h:h;break bf}h=H[t+4>>2];k=b>>>0<g>>>0;H[i>>2]=H[(k?8:12)+t>>2];while(1){df:{if(e){break df}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=b;e=8;d=(l<<8)+d|0;break df}if(l>>>0<=143){H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break df}H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;k=k?h:!h}g=I[T+24640|0];H[s>>2]=(k|0)==(g|0)?M:v;H[p>>2]=H[p>>2]|16384;H[j+4>>2]=H[j+4>>2]|4096;h=j+(H[f+124>>2]<<2)|0;H[h+4>>2]=H[h+4>>2]|4;H[h+12>>2]=H[h+12>>2]|1;g=g^k;H[h+8>>2]=H[h+8>>2]|g<<18|2;c=g<<28|c|8192}H[j>>2]=c&-1226833921}c=j+4|0;o=o+4|0;w=w+1|0;if((W|0)!=(w|0)){continue}break}c=j+12|0;o=o+r|0;x=x+4|0;g=H[f+128>>2];if(x>>>0<(g&-4)>>>0){continue}break}break Xd}x=g&-4;c=(k+(x<<1)|0)+12|0}H[f+8>>2]=e;H[f+4>>2]=b;H[f>>2]=d;H[f+104>>2]=i;if(!W|g>>>0<=x>>>0){break Db}while(1){e=0;if(H[f+128>>2]!=(x|0)){while(1){Wb(f,c,(N(e,W)<<2)+o|0,M,e,0);e=e+1|0;if(e>>>0<H[f+128>>2]-x>>>0){continue}break}}H[c>>2]=H[c>>2]&-1226833921;o=o+4|0;c=c+4|0;m=m+1|0;if((W|0)!=(m|0)){continue}break}break Db}while(1){r=0;while(1){o=c;j=g;g=H[g>>2];ef:{ff:{gf:{if(!g){i=H[k>>2];g=H[i>>2];b=b-g|0;hf:{if(d>>>16>>>0<g>>>0){n=H[i+4>>2];c=b>>>0<g>>>0;H[k>>2]=H[i+(c?8:12)>>2];while(1){jf:{if(e){break jf}i=H[f+16>>2];b=i+1|0;h=I[i+1|0];if(I[i|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break jf}H[f+16>>2]=b;d=(h<<9)+d|0;e=7;break jf}H[f+16>>2]=b;e=8;d=(h<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;c=c?n:!n;break hf}d=d-(g<<16)|0;if(!(b&32768)){n=H[i+4>>2];c=b>>>0<g>>>0;H[k>>2]=H[i+(c?12:8)>>2];while(1){kf:{if(e){break kf}i=H[f+16>>2];g=i+1|0;h=I[i+1|0];if(I[i|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break kf}H[f+16>>2]=g;d=(h<<9)+d|0;e=7;break kf}H[f+16>>2]=g;e=8;d=(h<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!n:n;break hf}c=H[i+4>>2]}if(!c){i=k;break ef}c=H[q>>2];g=H[c>>2];b=b-g|0;lf:{if(d>>>16>>>0<g>>>0){h=H[c+4>>2];i=b>>>0<g>>>0;c=H[(i?8:12)+c>>2];H[q>>2]=c;while(1){mf:{if(e){break mf}n=H[f+16>>2];b=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break mf}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break mf}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;n=i?h:!h;break lf}d=d-(g<<16)|0;if(!(b&32768)){h=H[c+4>>2];g=b>>>0<g>>>0;c=H[(g?12:8)+c>>2];H[q>>2]=c;while(1){nf:{if(e){break nf}n=H[f+16>>2];i=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break nf}H[f+16>>2]=i;d=(m<<9)+d|0;e=7;break nf}H[f+16>>2]=i;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=g?!h:h;break lf}n=H[c+4>>2]}g=H[c>>2];b=b-g|0;of:{if(d>>>16>>>0<g>>>0){h=H[c+4>>2];i=c;c=b>>>0<g>>>0;H[q>>2]=H[i+(c?8:12)>>2];while(1){pf:{if(e){break pf}i=H[f+16>>2];b=i+1|0;m=I[i+1|0];if(I[i|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break pf}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break pf}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;c=c?h:!h;break of}d=d-(g<<16)|0;if(!(b&32768)){h=H[c+4>>2];i=c;c=b>>>0<g>>>0;H[q>>2]=H[i+(c?12:8)>>2];while(1){qf:{if(e){break qf}i=H[f+16>>2];g=i+1|0;m=I[i+1|0];if(I[i|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break qf}H[f+16>>2]=g;d=(m<<9)+d|0;e=7;break qf}H[f+16>>2]=g;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break of}c=H[c+4>>2]}g=0;i=q;rf:{sf:{tf:{uf:{vf:{switch(c|n<<1){case 0:m=j-4|0;i=H[j+4>>2]>>>17&4|H[m>>2]>>>19&1;c=w+(I[i+24384|0]<<2)|0;n=H[c>>2];g=H[n>>2];b=b-g|0;wf:{if(d>>>16>>>0<g>>>0){h=H[n+4>>2];v=c;c=b>>>0<g>>>0;H[v>>2]=H[n+(c?8:12)>>2];while(1){xf:{if(e){break xf}n=H[f+16>>2];b=n+1|0;l=I[n+1|0];if(I[n|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break xf}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break xf}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;g=c?h:!h;break wf}d=d-(g<<16)|0;if(!(b&32768)){h=H[n+4>>2];v=c;c=b>>>0<g>>>0;H[v>>2]=H[n+(c?12:8)>>2];while(1){yf:{if(e){break yf}n=H[f+16>>2];g=n+1|0;l=I[n+1|0];if(I[n|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break yf}H[f+16>>2]=g;d=(l<<9)+d|0;e=7;break yf}H[f+16>>2]=g;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}g=c?!h:h;break wf}g=H[n+4>>2]}c=I[i+24640|0];H[o>>2]=(g|0)==(c|0)?s:u;H[m>>2]=H[m>>2]|32;H[j+4>>2]=H[j+4>>2]|8;i=(c^g)<<19;t=H[f+108>>2];c=w+(I[t+2|0]<<2)|0;n=H[c>>2];g=H[n>>2];b=b-g|0;zf:{if(d>>>16>>>0<g>>>0){h=H[n+4>>2];v=c;c=b>>>0<g>>>0;H[v>>2]=H[n+(c?8:12)>>2];while(1){Af:{if(e){break Af}n=H[f+16>>2];b=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Af}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break Af}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;g=g<<1;if(g>>>0<32768){continue}break}b=g;c=c?h:!h;break zf}d=d-(g<<16)|0;if(!(b&32768)){h=H[n+4>>2];v=c;c=b>>>0<g>>>0;H[v>>2]=H[n+(c?12:8)>>2];while(1){Bf:{if(e){break Bf}n=H[f+16>>2];g=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Bf}H[f+16>>2]=g;d=(m<<9)+d|0;e=7;break Bf}H[f+16>>2]=g;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break zf}c=H[n+4>>2]}g=i|16;if(!c){break uf}break;case 1:break vf;case 2:break tf;case 3:break rf;default:break ff}}m=j-4|0;n=H[j+4>>2]>>>20&4|(H[m>>2]>>>22&1|(g>>>15&16|(g>>>19&64|g>>>3&170)));i=w+(I[n+24384|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;Cf:{if(d>>>16>>>0<c>>>0){h=H[l+4>>2];v=i;i=b>>>0<c>>>0;H[v>>2]=H[l+(i?8:12)>>2];while(1){Df:{if(e){break Df}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Df}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Df}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;i=i?h:!h;break Cf}d=d-(c<<16)|0;if(!(b&32768)){h=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){Ef:{if(e){break Ef}e=H[f+16>>2];i=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Ef}H[f+16>>2]=i;d=(l<<9)+d|0;e=7;break Ef}H[f+16>>2]=i;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}i=c?!h:h;break Cf}i=H[l+4>>2]}c=I[n+24640|0];H[o+256>>2]=(i|0)==(c|0)?s:u;H[m>>2]=H[m>>2]|256;H[j+4>>2]=H[j+4>>2]|64;t=H[f+108>>2];g=(c^i)<<22|g|128}i=w+(I[(g>>>6&495)+t|0]<<2)|0;n=H[i>>2];c=H[n>>2];b=b-c|0;Ff:{if(d>>>16>>>0<c>>>0){h=H[n+4>>2];v=i;i=b>>>0<c>>>0;H[v>>2]=H[n+(i?8:12)>>2];while(1){Gf:{if(e){break Gf}n=H[f+16>>2];b=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Gf}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break Gf}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=i?h:!h;break Ff}d=d-(c<<16)|0;if(!(b&32768)){h=H[n+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[n+(c?12:8)>>2];while(1){Hf:{if(e){break Hf}n=H[f+16>>2];i=n+1|0;m=I[n+1|0];if(I[n|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Hf}H[f+16>>2]=i;d=(m<<9)+d|0;e=7;break Hf}H[f+16>>2]=i;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break Ff}c=H[n+4>>2]}if(!c){break sf}}m=j-4|0;n=H[j+4>>2]>>>23&4|(H[m>>2]>>>25&1|(g>>>18&16|(g>>>22&64|g>>>6&170)));i=w+(I[n+24384|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;If:{if(d>>>16>>>0<c>>>0){h=H[l+4>>2];v=i;i=b>>>0<c>>>0;H[v>>2]=H[l+(i?8:12)>>2];while(1){Jf:{if(e){break Jf}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Jf}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Jf}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;i=i?h:!h;break If}d=d-(c<<16)|0;if(!(b&32768)){h=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){Kf:{if(e){break Kf}e=H[f+16>>2];i=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Kf}H[f+16>>2]=i;d=(l<<9)+d|0;e=7;break Kf}H[f+16>>2]=i;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}i=c?!h:h;break If}i=H[l+4>>2]}c=I[n+24640|0];H[o+512>>2]=(i|0)==(c|0)?s:u;H[m>>2]=H[m>>2]|2048;H[j+4>>2]=H[j+4>>2]|512;g=(c^i)<<25|g|1024;t=H[f+108>>2]}i=w+(I[(g>>>9&495)+t|0]<<2)|0;m=H[i>>2];c=H[m>>2];b=b-c|0;Lf:{if(d>>>16>>>0<c>>>0){h=H[m+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[m+(n?8:12)>>2];while(1){Mf:{if(e){break Mf}e=H[f+16>>2];b=e+1|0;m=I[e+1|0];if(I[e|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Mf}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break Mf}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?h:!h;break Lf}d=d-(c<<16)|0;if(!(b&32768)){h=H[m+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[m+(c?12:8)>>2];while(1){Nf:{if(e){break Nf}e=H[f+16>>2];n=e+1|0;m=I[e+1|0];if(I[e|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Nf}H[f+16>>2]=n;d=(m<<9)+d|0;e=7;break Nf}H[f+16>>2]=n;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break Lf}c=H[m+4>>2]}if(!c){break ff}}m=j-4|0;p=H[j+4>>2]>>>26&4|(H[m>>2]>>>28&1|(g>>>21&16|(g>>>25&64|g>>>9&170)));i=w+(I[p+24384|0]<<2)|0;t=H[i>>2];c=H[t>>2];b=b-c|0;break gf}Of:{if(g&2097168){break Of}i=w+(I[H[f+108>>2]+(g&495)|0]<<2)|0;m=H[i>>2];c=H[m>>2];b=b-c|0;Pf:{if(d>>>16>>>0<c>>>0){h=H[m+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[m+(n?8:12)>>2];while(1){Qf:{if(e){break Qf}e=H[f+16>>2];b=e+1|0;m=I[e+1|0];if(I[e|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Qf}H[f+16>>2]=b;d=(m<<9)+d|0;e=7;break Qf}H[f+16>>2]=b;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?h:!h;break Pf}d=d-(c<<16)|0;if(!(b&32768)){h=H[m+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[m+(c?12:8)>>2];while(1){Rf:{if(e){break Rf}e=H[f+16>>2];n=e+1|0;m=I[e+1|0];if(I[e|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Rf}H[f+16>>2]=n;d=(m<<9)+d|0;e=7;break Rf}H[f+16>>2]=n;e=8;d=(m<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!h:h;break Pf}c=H[m+4>>2]}if(!c){break Of}l=j-4|0;h=H[j+4>>2]>>>17&4|(H[l>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));i=w+(I[h+24384|0]<<2)|0;p=H[i>>2];c=H[p>>2];b=b-c|0;Sf:{if(d>>>16>>>0<c>>>0){m=H[p+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[p+(n?8:12)>>2];while(1){Tf:{if(e){break Tf}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Tf}H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break Tf}H[f+16>>2]=b;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;n=n?m:!m;break Sf}d=d-(c<<16)|0;if(!(b&32768)){m=H[p+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[p+(c?12:8)>>2];while(1){Uf:{if(e){break Uf}e=H[f+16>>2];n=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Uf}H[f+16>>2]=n;d=(p<<9)+d|0;e=7;break Uf}H[f+16>>2]=n;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=c?!m:m;break Sf}n=H[p+4>>2]}c=I[h+24640|0];H[o>>2]=(n|0)==(c|0)?s:u;H[l>>2]=H[l>>2]|32;H[j+4>>2]=H[j+4>>2]|8;g=(c^n)<<19|g|16}Vf:{if(g&16777344){break Vf}h=g>>>3|0;i=w+(I[H[f+108>>2]+(h&495)|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;Wf:{if(d>>>16>>>0<c>>>0){m=H[l+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[l+(n?8:12)>>2];while(1){Xf:{if(e){break Xf}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Xf}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break Xf}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?m:!m;break Wf}d=d-(c<<16)|0;if(!(b&32768)){m=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){Yf:{if(e){break Yf}e=H[f+16>>2];n=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break Yf}H[f+16>>2]=n;d=(l<<9)+d|0;e=7;break Yf}H[f+16>>2]=n;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!m:m;break Wf}c=H[l+4>>2]}if(!c){break Vf}l=j-4|0;h=H[j+4>>2]>>>20&4|(H[l>>2]>>>22&1|(g>>>15&16|(g>>>19&64|h&170)));i=w+(I[h+24384|0]<<2)|0;p=H[i>>2];c=H[p>>2];b=b-c|0;Zf:{if(d>>>16>>>0<c>>>0){m=H[p+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[p+(n?8:12)>>2];while(1){_f:{if(e){break _f}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break _f}H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break _f}H[f+16>>2]=b;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;n=n?m:!m;break Zf}d=d-(c<<16)|0;if(!(b&32768)){m=H[p+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[p+(c?12:8)>>2];while(1){$f:{if(e){break $f}e=H[f+16>>2];n=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break $f}H[f+16>>2]=n;d=(p<<9)+d|0;e=7;break $f}H[f+16>>2]=n;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=c?!m:m;break Zf}n=H[p+4>>2]}c=I[h+24640|0];H[o+256>>2]=(n|0)==(c|0)?s:u;H[l>>2]=H[l>>2]|256;H[j+4>>2]=H[j+4>>2]|64;g=(c^n)<<22|g|128}ag:{if(g&134218752){break ag}h=g>>>6|0;i=w+(I[H[f+108>>2]+(h&495)|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;bg:{if(d>>>16>>>0<c>>>0){m=H[l+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[l+(n?8:12)>>2];while(1){cg:{if(e){break cg}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break cg}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break cg}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?m:!m;break bg}d=d-(c<<16)|0;if(!(b&32768)){m=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){dg:{if(e){break dg}e=H[f+16>>2];n=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break dg}H[f+16>>2]=n;d=(l<<9)+d|0;e=7;break dg}H[f+16>>2]=n;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!m:m;break bg}c=H[l+4>>2]}if(!c){break ag}l=j-4|0;h=H[j+4>>2]>>>23&4|(H[l>>2]>>>25&1|(g>>>18&16|(g>>>22&64|h&170)));i=w+(I[h+24384|0]<<2)|0;p=H[i>>2];c=H[p>>2];b=b-c|0;eg:{if(d>>>16>>>0<c>>>0){m=H[p+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[p+(n?8:12)>>2];while(1){fg:{if(e){break fg}e=H[f+16>>2];b=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break fg}H[f+16>>2]=b;d=(p<<9)+d|0;e=7;break fg}H[f+16>>2]=b;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;n=n?m:!m;break eg}d=d-(c<<16)|0;if(!(b&32768)){m=H[p+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[p+(c?12:8)>>2];while(1){gg:{if(e){break gg}e=H[f+16>>2];n=e+1|0;p=I[e+1|0];if(I[e|0]==255){if(p>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break gg}H[f+16>>2]=n;d=(p<<9)+d|0;e=7;break gg}H[f+16>>2]=n;e=8;d=(p<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=c?!m:m;break eg}n=H[p+4>>2]}c=I[h+24640|0];H[o+512>>2]=(n|0)==(c|0)?s:u;H[l>>2]=H[l>>2]|2048;H[j+4>>2]=H[j+4>>2]|512;g=(c^n)<<25|g|1024}if(g&1073750016){break ff}h=g>>>9|0;i=w+(I[H[f+108>>2]+(h&495)|0]<<2)|0;l=H[i>>2];c=H[l>>2];b=b-c|0;hg:{if(d>>>16>>>0<c>>>0){m=H[l+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[l+(n?8:12)>>2];while(1){ig:{if(e){break ig}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break ig}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break ig}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;c=n?m:!m;break hg}d=d-(c<<16)|0;if(!(b&32768)){m=H[l+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[l+(c?12:8)>>2];while(1){jg:{if(e){break jg}e=H[f+16>>2];n=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break jg}H[f+16>>2]=n;d=(l<<9)+d|0;e=7;break jg}H[f+16>>2]=n;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}c=c?!m:m;break hg}c=H[l+4>>2]}if(!c){break ff}m=j-4|0;p=H[j+4>>2]>>>26&4|(H[m>>2]>>>28&1|(g>>>21&16|(g>>>25&64|h&170)));i=w+(I[p+24384|0]<<2)|0;t=H[i>>2];c=H[t>>2];b=b-c|0}kg:{if(d>>>16>>>0<c>>>0){h=H[t+4>>2];n=b>>>0<c>>>0;H[i>>2]=H[(n?8:12)+t>>2];while(1){lg:{if(e){break lg}e=H[f+16>>2];b=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break lg}H[f+16>>2]=b;d=(l<<9)+d|0;e=7;break lg}H[f+16>>2]=b;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;c=c<<1;if(c>>>0<32768){continue}break}b=c;n=n?h:!h;break kg}d=d-(c<<16)|0;if(!(b&32768)){h=H[t+4>>2];c=b>>>0<c>>>0;H[i>>2]=H[(c?12:8)+t>>2];while(1){mg:{if(e){break mg}e=H[f+16>>2];n=e+1|0;l=I[e+1|0];if(I[e|0]==255){if(l>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;d=d+65280|0;e=8;break mg}H[f+16>>2]=n;d=(l<<9)+d|0;e=7;break mg}H[f+16>>2]=n;e=8;d=(l<<8)+d|0}e=e-1|0;d=d<<1;b=b<<1;if(b>>>0<32768){continue}break}n=c?!h:h;break kg}n=H[t+4>>2]}c=I[p+24640|0];H[o+768>>2]=(n|0)==(c|0)?s:u;H[m>>2]=H[m>>2]|16384;H[j+4>>2]=H[j+4>>2]|4096;H[j+260>>2]=H[j+260>>2]|4;H[j+268>>2]=H[j+268>>2]|1;c=c^n;H[j+264>>2]=H[j+264>>2]|c<<18|2;g=c<<28|g|8192}H[j>>2]=g&-1226833921}g=j+4|0;c=o+4|0;r=r+1|0;if((r|0)!=64){continue}break}g=j+12|0;c=o+772|0;n=x>>>0<60;x=x+4|0;if(n){continue}break}}H[f+8>>2]=e;H[f+4>>2]=b;H[f>>2]=d;H[f+104>>2]=i}ng:{if(!(V&32)){break ng}H[f+104>>2]=f+100;g=H[f+100>>2];b=H[g>>2];d=H[f+4>>2]-b|0;H[f+4>>2]=d;e=H[f>>2];og:{if(e>>>16>>>0<b>>>0){H[f+4>>2]=b;g=H[(b>>>0>d>>>0?8:12)+g>>2];H[f+100>>2]=g;d=H[f+8>>2];while(1){pg:{if(d){break pg}k=H[f+16>>2];c=k+1|0;i=I[k+1|0];if(I[k|0]==255){if(i>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;e=e+65280|0;d=8;break pg}H[f+16>>2]=c;e=(i<<9)+e|0;d=7;break pg}H[f+16>>2]=c;d=8;e=(i<<8)+e|0}d=d-1|0;H[f+8>>2]=d;e=e<<1;H[f>>2]=e;b=b<<1;H[f+4>>2]=b;if(b>>>0<32768){continue}break}d=b;break og}e=e-(b<<16)|0;H[f>>2]=e;if(d&32768){break og}g=H[(b>>>0>d>>>0?12:8)+g>>2];H[f+100>>2]=g;b=H[f+8>>2];while(1){qg:{if(b){break qg}c=H[f+16>>2];b=c+1|0;k=I[c+1|0];if(I[c|0]==255){if(k>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;e=e+65280|0;b=8;break qg}H[f+16>>2]=b;e=(k<<9)+e|0;b=7;break qg}H[f+16>>2]=b;b=8;e=(k<<8)+e|0}b=b-1|0;H[f+8>>2]=b;e=e<<1;H[f>>2]=e;d=d<<1;H[f+4>>2]=d;if(d>>>0<32768){continue}break}}b=H[g>>2];d=d-b|0;H[f+4>>2]=d;rg:{if(e>>>16>>>0<b>>>0){H[f+4>>2]=b;g=H[(b>>>0>d>>>0?8:12)+g>>2];H[f+100>>2]=g;d=H[f+8>>2];while(1){sg:{if(d){break sg}k=H[f+16>>2];c=k+1|0;i=I[k+1|0];if(I[k|0]==255){if(i>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;e=e+65280|0;d=8;break sg}H[f+16>>2]=c;e=(i<<9)+e|0;d=7;break sg}H[f+16>>2]=c;d=8;e=(i<<8)+e|0}d=d-1|0;H[f+8>>2]=d;e=e<<1;H[f>>2]=e;b=b<<1;H[f+4>>2]=b;if(b>>>0<32768){continue}break}d=b;break rg}e=e-(b<<16)|0;H[f>>2]=e;if(d&32768){break rg}g=H[(b>>>0>d>>>0?12:8)+g>>2];H[f+100>>2]=g;b=H[f+8>>2];while(1){tg:{if(b){break tg}c=H[f+16>>2];b=c+1|0;k=I[c+1|0];if(I[c|0]==255){if(k>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;e=e+65280|0;b=8;break tg}H[f+16>>2]=b;e=(k<<9)+e|0;b=7;break tg}H[f+16>>2]=b;b=8;e=(k<<8)+e|0}b=b-1|0;H[f+8>>2]=b;e=e<<1;H[f>>2]=e;d=d<<1;H[f+4>>2]=d;if(d>>>0<32768){continue}break}}b=H[g>>2];d=d-b|0;H[f+4>>2]=d;ug:{if(e>>>16>>>0<b>>>0){H[f+4>>2]=b;g=H[(b>>>0>d>>>0?8:12)+g>>2];H[f+100>>2]=g;d=H[f+8>>2];while(1){vg:{if(d){break vg}k=H[f+16>>2];c=k+1|0;i=I[k+1|0];if(I[k|0]==255){if(i>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;e=e+65280|0;d=8;break vg}H[f+16>>2]=c;e=(i<<9)+e|0;d=7;break vg}H[f+16>>2]=c;d=8;e=(i<<8)+e|0}d=d-1|0;H[f+8>>2]=d;e=e<<1;H[f>>2]=e;b=b<<1;H[f+4>>2]=b;if(b>>>0<32768){continue}break}d=b;break ug}e=e-(b<<16)|0;H[f>>2]=e;if(d&32768){break ug}g=H[(b>>>0>d>>>0?12:8)+g>>2];H[f+100>>2]=g;b=H[f+8>>2];while(1){wg:{if(b){break wg}c=H[f+16>>2];b=c+1|0;k=I[c+1|0];if(I[c|0]==255){if(k>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;e=e+65280|0;b=8;break wg}H[f+16>>2]=b;e=(k<<9)+e|0;b=7;break wg}H[f+16>>2]=b;b=8;e=(k<<8)+e|0}b=b-1|0;H[f+8>>2]=b;e=e<<1;H[f>>2]=e;d=d<<1;H[f+4>>2]=d;if(d>>>0<32768){continue}break}}b=H[g>>2];d=d-b|0;H[f+4>>2]=d;if(e>>>16>>>0<b>>>0){H[f+4>>2]=b;H[f+100>>2]=H[(b>>>0>d>>>0?8:12)+g>>2];d=H[f+8>>2];while(1){xg:{if(d){break xg}g=H[f+16>>2];c=g+1|0;k=I[g+1|0];if(I[g|0]==255){if(k>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;e=e+65280|0;d=8;break xg}H[f+16>>2]=c;e=(k<<9)+e|0;d=7;break xg}H[f+16>>2]=c;d=8;e=(k<<8)+e|0}d=d-1|0;H[f+8>>2]=d;e=e<<1;H[f>>2]=e;b=b<<1;H[f+4>>2]=b;if(b>>>0<32768){continue}break}break ng}c=e-(b<<16)|0;H[f>>2]=c;if(d&32768){break ng}H[f+100>>2]=H[(b>>>0>d>>>0?12:8)+g>>2];e=H[f+8>>2];while(1){yg:{if(e){break yg}g=H[f+16>>2];b=g+1|0;k=I[g+1|0];if(I[g|0]==255){if(k>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;c=c+65280|0;e=8;break yg}H[f+16>>2]=b;c=(k<<9)+c|0;e=7;break yg}H[f+16>>2]=b;e=8;c=(k<<8)+c|0}e=e-1|0;H[f+8>>2]=e;c=c<<1;H[f>>2]=c;d=d<<1;H[f+4>>2]=d;if(d>>>0<32768){continue}break}}break cb;case 0:break eb}}if(ea){r=1<<z>>>1|0;u=H[f+124>>2];d=u<<2;b=(d+H[f+120>>2]|0)+12|0;g=H[f+116>>2];j=0;c=H[f+128>>2];if(c>>>0>=4){if(!u){break bb}h=N(u,12);n=u<<3;m=0-r|0;while(1){c=0;while(1){k=b;b=H[b>>2];zg:{if(!b){break zg}if((b&2097168)==16){b=H[f>>2];e=H[f+8>>2];Ag:{if(e){break Ag}q=(b|0)!=255;i=H[f+16>>2];b=I[i|0];Bg:{if(q){e=8}else{if(b>>>0>143){break Bg}e=7}H[f>>2]=b;H[f+16>>2]=i+1;break Ag}e=8;b=255}i=e-1|0;H[f+8>>2]=i;i=b>>>i&1;b=H[g>>2];H[g>>2]=((i|0)==(b>>>31|0)?m:r)+b;b=H[k>>2]|1048576;H[k>>2]=b}if((b&16777344)==128){b=H[f>>2];e=H[f+8>>2];Cg:{if(e){break Cg}q=(b|0)!=255;i=H[f+16>>2];b=I[i|0];Dg:{if(q){e=8}else{if(b>>>0>143){break Dg}e=7}H[f>>2]=b;H[f+16>>2]=i+1;break Cg}e=8;b=255}q=e-1|0;H[f+8>>2]=q;i=d+g|0;o=H[i>>2];H[i>>2]=o+((b>>>q&1)==(o>>>31|0)?m:r);b=H[k>>2]|8388608;H[k>>2]=b}if((b&134218752)==1024){b=H[f>>2];e=H[f+8>>2];Eg:{if(e){break Eg}q=(b|0)!=255;i=H[f+16>>2];b=I[i|0];Fg:{if(q){e=8}else{if(b>>>0>143){break Fg}e=7}H[f>>2]=b;H[f+16>>2]=i+1;break Eg}e=8;b=255}q=e-1|0;H[f+8>>2]=q;i=g+n|0;o=H[i>>2];H[i>>2]=o+((b>>>q&1)==(o>>>31|0)?m:r);b=H[k>>2]|67108864;H[k>>2]=b}if((b&1073750016)!=8192){break zg}b=H[f>>2];e=H[f+8>>2];Gg:{if(e){break Gg}q=(b|0)!=255;i=H[f+16>>2];b=I[i|0];Hg:{if(q){e=8}else{if(b>>>0>143){break Hg}e=7}H[f>>2]=b;H[f+16>>2]=i+1;break Gg}e=8;b=255}q=e-1|0;H[f+8>>2]=q;i=h+g|0;o=H[i>>2];H[i>>2]=o+((b>>>q&1)==(o>>>31|0)?m:r);H[k>>2]=H[k>>2]|536870912}g=g+4|0;b=k+4|0;c=c+1|0;if((u|0)!=(c|0)){continue}break}g=h+g|0;b=k+12|0;j=j+4|0;c=H[f+128>>2];if(j>>>0<(c&-4)>>>0){continue}break}}if(!u|c>>>0<=j>>>0){break cb}p=0;q=0-r|0;d=c;while(1){Ig:{if((d|0)==(j|0)){d=j;break Ig}e=H[b>>2];t=0;while(1){d=N(t,3);if((2097168<<d&e)==16<<d){n=(N(t,u)<<2)+g|0;c=H[f>>2];l=H[f+8>>2];Jg:{if(l){break Jg}i=(c|0)!=255;k=H[f+16>>2];c=I[k|0];Kg:{if(i){l=8}else{if(c>>>0>143){break Kg}l=7}H[f>>2]=c;H[f+16>>2]=k+1;break Jg}l=8;c=255}k=l-1|0;H[f+8>>2]=k;k=c>>>k&1;c=H[n>>2];H[n>>2]=((k|0)==(c>>>31|0)?q:r)+c;e=H[b>>2]|1048576<<d;H[b>>2]=e;c=H[f+128>>2]}t=t+1|0;d=c;if(t>>>0<c-j>>>0){continue}break}}g=g+4|0;b=b+4|0;p=p+1|0;if((u|0)!=(p|0)){continue}break}break cb}k=H[f+120>>2];d=H[f+116>>2];w=H[f+124>>2];c=H[f+128>>2];if(!((w|0)!=64|(c|0)!=64)){c=k+268|0;x=0;p=1<<z>>>1|0;m=0-p|0;t=H[f+8>>2];g=H[f+4>>2];b=H[f>>2];j=H[f+104>>2];while(1){l=0;while(1){q=d;i=c;d=H[c>>2];if(d){k=c;if((d&2097168)==16){j=ca+((d&1048576?16:d&495?15:14)<<2)|0;o=H[j>>2];c=H[o>>2];g=g-c|0;Lg:{if(b>>>16>>>0<c>>>0){e=H[o+4>>2];n=c>>>0>g>>>0;H[j>>2]=H[o+(n?8:12)>>2];while(1){Mg:{if(t){break Mg}o=H[f+16>>2];g=o+1|0;h=I[o+1|0];if(I[o|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8;break Mg}H[f+16>>2]=g;b=(h<<9)+b|0;t=7;break Mg}H[f+16>>2]=g;t=8;b=(h<<8)+b|0}t=t-1|0;b=b<<1;c=c<<1;if(c>>>0<32768){continue}break}g=c;n=n?e:!e;break Lg}b=b-(c<<16)|0;if(!(g&32768)){e=H[o+4>>2];c=c>>>0>g>>>0;H[j>>2]=H[o+(c?12:8)>>2];while(1){Ng:{if(t){break Ng}o=H[f+16>>2];n=o+1|0;h=I[o+1|0];if(I[o|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8;break Ng}H[f+16>>2]=n;b=(h<<9)+b|0;t=7;break Ng}H[f+16>>2]=n;t=8;b=(h<<8)+b|0}t=t-1|0;b=b<<1;g=g<<1;if(g>>>0<32768){continue}break}n=c?!e:e;break Lg}n=H[o+4>>2]}c=H[q>>2];H[q>>2]=((n|0)==(c>>>31|0)?m:p)+c;d=d|1048576}if((d&16777344)==128){j=ca+((d&8388608?16:d&3960?15:14)<<2)|0;o=H[j>>2];c=H[o>>2];g=g-c|0;Og:{if(b>>>16>>>0<c>>>0){e=H[o+4>>2];n=c>>>0>g>>>0;H[j>>2]=H[o+(n?8:12)>>2];while(1){Pg:{if(t){break Pg}o=H[f+16>>2];g=o+1|0;h=I[o+1|0];if(I[o|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8;break Pg}H[f+16>>2]=g;b=(h<<9)+b|0;t=7;break Pg}H[f+16>>2]=g;t=8;b=(h<<8)+b|0}t=t-1|0;b=b<<1;c=c<<1;if(c>>>0<32768){continue}break}g=c;n=n?e:!e;break Og}b=b-(c<<16)|0;if(!(g&32768)){e=H[o+4>>2];c=c>>>0>g>>>0;H[j>>2]=H[o+(c?12:8)>>2];while(1){Qg:{if(t){break Qg}o=H[f+16>>2];n=o+1|0;h=I[o+1|0];if(I[o|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8;break Qg}H[f+16>>2]=n;b=(h<<9)+b|0;t=7;break Qg}H[f+16>>2]=n;t=8;b=(h<<8)+b|0}t=t-1|0;b=b<<1;g=g<<1;if(g>>>0<32768){continue}break}n=c?!e:e;break Og}n=H[o+4>>2]}c=H[q+256>>2];H[q+256>>2]=((n|0)==(c>>>31|0)?m:p)+c;d=d|8388608}if((d&134218752)==1024){j=ca+((d&67108864?16:d&31680?15:14)<<2)|0;o=H[j>>2];c=H[o>>2];g=g-c|0;Rg:{if(b>>>16>>>0<c>>>0){e=H[o+4>>2];n=c>>>0>g>>>0;H[j>>2]=H[o+(n?8:12)>>2];while(1){Sg:{if(t){break Sg}o=H[f+16>>2];g=o+1|0;h=I[o+1|0];if(I[o|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8;break Sg}H[f+16>>2]=g;b=(h<<9)+b|0;t=7;break Sg}H[f+16>>2]=g;t=8;b=(h<<8)+b|0}t=t-1|0;b=b<<1;c=c<<1;if(c>>>0<32768){continue}break}g=c;n=n?e:!e;break Rg}b=b-(c<<16)|0;if(!(g&32768)){e=H[o+4>>2];c=c>>>0>g>>>0;H[j>>2]=H[o+(c?12:8)>>2];while(1){Tg:{if(t){break Tg}o=H[f+16>>2];n=o+1|0;h=I[o+1|0];if(I[o|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8;break Tg}H[f+16>>2]=n;b=(h<<9)+b|0;t=7;break Tg}H[f+16>>2]=n;t=8;b=(h<<8)+b|0}t=t-1|0;b=b<<1;g=g<<1;if(g>>>0<32768){continue}break}n=c?!e:e;break Rg}n=H[o+4>>2]}c=H[q+512>>2];H[q+512>>2]=((n|0)==(c>>>31|0)?m:p)+c;d=d|67108864}if((d&1073750016)==8192){j=ca+((d&536870912?16:d&253440?15:14)<<2)|0;o=H[j>>2];c=H[o>>2];g=g-c|0;Ug:{if(b>>>16>>>0<c>>>0){e=H[o+4>>2];n=c>>>0>g>>>0;H[j>>2]=H[o+(n?8:12)>>2];while(1){Vg:{if(t){break Vg}o=H[f+16>>2];g=o+1|0;h=I[o+1|0];if(I[o|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8;break Vg}H[f+16>>2]=g;b=(h<<9)+b|0;t=7;break Vg}H[f+16>>2]=g;t=8;b=(h<<8)+b|0}t=t-1|0;b=b<<1;c=c<<1;if(c>>>0<32768){continue}break}g=c;n=n?e:!e;break Ug}b=b-(c<<16)|0;if(!(g&32768)){e=H[o+4>>2];c=c>>>0>g>>>0;H[j>>2]=H[o+(c?12:8)>>2];while(1){Wg:{if(t){break Wg}o=H[f+16>>2];n=o+1|0;h=I[o+1|0];if(I[o|0]==255){if(h>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8;break Wg}H[f+16>>2]=n;b=(h<<9)+b|0;t=7;break Wg}H[f+16>>2]=n;t=8;b=(h<<8)+b|0}t=t-1|0;b=b<<1;g=g<<1;if(g>>>0<32768){continue}break}n=c?!e:e;break Ug}n=H[o+4>>2]}c=H[q+768>>2];H[q+768>>2]=((n|0)==(c>>>31|0)?m:p)+c;d=d|536870912}H[k>>2]=d}c=i+4|0;d=q+4|0;l=l+1|0;if((l|0)!=64){continue}break}c=i+12|0;d=q+772|0;k=x>>>0<60;x=x+4|0;if(k){continue}break}H[f+8>>2]=t;H[f+4>>2]=g;H[f>>2]=b;H[f+104>>2]=j;break cb}s=1<<z>>>1|0;e=w<<2;h=(e+k|0)+12|0;t=H[f+8>>2];g=H[f+4>>2];b=H[f>>2];j=H[f+104>>2];o=0;Xg:{if(c>>>0<4){break Xg}if(w){p=N(w,12);n=w<<3;r=0-s|0;while(1){l=0;while(1){k=h;i=H[h>>2];if(i){if((i&2097168)==16){j=ca+((i&1048576?16:i&495?15:14)<<2)|0;h=H[j>>2];c=H[h>>2];g=g-c|0;Yg:{if(b>>>16>>>0>=c>>>0){b=b-(c<<16)|0;q=H[h+4>>2];if(g&32768){break Yg}m=H[h+4>>2];c=c>>>0>g>>>0;H[j>>2]=H[h+(c?12:8)>>2];while(1){Zg:{if(t){break Zg}h=H[f+16>>2];q=h+1|0;u=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=q;t=8;b=(u<<8)+b|0;break Zg}if(u>>>0<=143){H[f+16>>2]=q;b=(u<<9)+b|0;t=7;break Zg}H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8}t=t-1|0;b=b<<1;g=g<<1;if(g>>>0<32768){continue}break}q=c?!m:m;break Yg}m=H[h+4>>2];q=c>>>0>g>>>0;H[j>>2]=H[h+(q?8:12)>>2];while(1){_g:{if(t){break _g}h=H[f+16>>2];g=h+1|0;u=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=g;t=8;b=(u<<8)+b|0;break _g}if(u>>>0<=143){H[f+16>>2]=g;b=(u<<9)+b|0;t=7;break _g}H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8}t=t-1|0;b=b<<1;c=c<<1;if(c>>>0<32768){continue}break}g=c;q=q?m:!m}c=H[d>>2];H[d>>2]=((q|0)==(c>>>31|0)?r:s)+c;i=i|1048576}if((i&16777344)==128){j=ca+((i&8388608?16:i&3960?15:14)<<2)|0;h=H[j>>2];c=H[h>>2];g=g-c|0;$g:{if(b>>>16>>>0>=c>>>0){b=b-(c<<16)|0;q=H[h+4>>2];if(g&32768){break $g}m=H[h+4>>2];c=c>>>0>g>>>0;H[j>>2]=H[h+(c?12:8)>>2];while(1){ah:{if(t){break ah}h=H[f+16>>2];q=h+1|0;u=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=q;t=8;b=(u<<8)+b|0;break ah}if(u>>>0<=143){H[f+16>>2]=q;b=(u<<9)+b|0;t=7;break ah}H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8}t=t-1|0;b=b<<1;g=g<<1;if(g>>>0<32768){continue}break}q=c?!m:m;break $g}m=H[h+4>>2];q=c>>>0>g>>>0;H[j>>2]=H[h+(q?8:12)>>2];while(1){bh:{if(t){break bh}h=H[f+16>>2];g=h+1|0;u=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=g;t=8;b=(u<<8)+b|0;break bh}if(u>>>0<=143){H[f+16>>2]=g;b=(u<<9)+b|0;t=7;break bh}H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8}t=t-1|0;b=b<<1;c=c<<1;if(c>>>0<32768){continue}break}g=c;q=q?m:!m}h=q;c=d+e|0;q=H[c>>2];H[c>>2]=q+((h|0)==(q>>>31|0)?r:s);i=i|8388608}if((i&134218752)==1024){j=ca+((i&67108864?16:i&31680?15:14)<<2)|0;h=H[j>>2];c=H[h>>2];g=g-c|0;ch:{if(b>>>16>>>0>=c>>>0){b=b-(c<<16)|0;q=H[h+4>>2];if(g&32768){break ch}m=H[h+4>>2];c=c>>>0>g>>>0;H[j>>2]=H[h+(c?12:8)>>2];while(1){dh:{if(t){break dh}h=H[f+16>>2];q=h+1|0;u=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=q;t=8;b=(u<<8)+b|0;break dh}if(u>>>0<=143){H[f+16>>2]=q;b=(u<<9)+b|0;t=7;break dh}H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8}t=t-1|0;b=b<<1;g=g<<1;if(g>>>0<32768){continue}break}q=c?!m:m;break ch}m=H[h+4>>2];q=c>>>0>g>>>0;H[j>>2]=H[h+(q?8:12)>>2];while(1){eh:{if(t){break eh}h=H[f+16>>2];g=h+1|0;u=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=g;t=8;b=(u<<8)+b|0;break eh}if(u>>>0<=143){H[f+16>>2]=g;b=(u<<9)+b|0;t=7;break eh}H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8}t=t-1|0;b=b<<1;c=c<<1;if(c>>>0<32768){continue}break}g=c;q=q?m:!m}h=q;c=d+n|0;q=H[c>>2];H[c>>2]=q+((h|0)==(q>>>31|0)?r:s);i=i|67108864}if((i&1073750016)==8192){j=ca+((i&536870912?16:i&253440?15:14)<<2)|0;h=H[j>>2];c=H[h>>2];g=g-c|0;fh:{if(b>>>16>>>0>=c>>>0){b=b-(c<<16)|0;q=H[h+4>>2];if(g&32768){break fh}m=H[h+4>>2];c=c>>>0>g>>>0;H[j>>2]=H[h+(c?12:8)>>2];while(1){gh:{if(t){break gh}h=H[f+16>>2];q=h+1|0;u=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=q;t=8;b=(u<<8)+b|0;break gh}if(u>>>0<=143){H[f+16>>2]=q;b=(u<<9)+b|0;t=7;break gh}H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8}t=t-1|0;b=b<<1;g=g<<1;if(g>>>0<32768){continue}break}q=c?!m:m;break fh}m=H[h+4>>2];q=c>>>0>g>>>0;H[j>>2]=H[h+(q?8:12)>>2];while(1){hh:{if(t){break hh}h=H[f+16>>2];g=h+1|0;u=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=g;t=8;b=(u<<8)+b|0;break hh}if(u>>>0<=143){H[f+16>>2]=g;b=(u<<9)+b|0;t=7;break hh}H[f+12>>2]=H[f+12>>2]+1;b=b+65280|0;t=8}t=t-1|0;b=b<<1;c=c<<1;if(c>>>0<32768){continue}break}g=c;q=q?m:!m}h=q;c=d+p|0;q=H[c>>2];H[c>>2]=q+((h|0)==(q>>>31|0)?r:s);i=i|536870912}H[k>>2]=i}h=k+4|0;d=d+4|0;l=l+1|0;if((w|0)!=(l|0)){continue}break}h=k+12|0;d=d+p|0;o=o+4|0;c=H[f+128>>2];if(o>>>0<(c&-4)>>>0){continue}break}break Xg}o=c&-4;h=(k+(o<<1)|0)+12|0}H[f+8>>2]=t;H[f+4>>2]=g;H[f>>2]=b;H[f+104>>2]=j;if(!w|c>>>0<=o>>>0){break cb}x=0;k=0-s|0;b=c;while(1){ih:{if((b|0)==(o|0)){b=o;break ih}t=H[h>>2];e=0;while(1){l=N(e,3);if((2097168<<l&t)==16<<l){j=(N(e,w)<<2)+d|0;b=t>>>l|0;i=ca+((b&1048576?16:b&495?15:14)<<2)|0;H[f+104>>2]=i;q=H[i>>2];b=H[q>>2];c=H[f+4>>2]-b|0;H[f+4>>2]=c;g=H[f>>2];jh:{if(g>>>16>>>0<b>>>0){n=H[q+4>>2];H[f+4>>2]=b;c=b>>>0>c>>>0;H[i>>2]=H[q+(c?8:12)>>2];t=H[f+8>>2];while(1){kh:{if(t){break kh}q=H[f+16>>2];i=q+1|0;m=I[q+1|0];if(I[q|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;g=g+65280|0;t=8;break kh}H[f+16>>2]=i;g=(m<<9)+g|0;t=7;break kh}H[f+16>>2]=i;t=8;g=(m<<8)+g|0}t=t-1|0;H[f+8>>2]=t;g=g<<1;H[f>>2]=g;b=b<<1;H[f+4>>2]=b;if(b>>>0<32768){continue}break}c=c?n:!n;break jh}g=g-(b<<16)|0;H[f>>2]=g;if(!(c&32768)){n=H[q+4>>2];b=b>>>0>c>>>0;H[i>>2]=H[q+(b?12:8)>>2];t=H[f+8>>2];while(1){lh:{if(t){break lh}q=H[f+16>>2];i=q+1|0;m=I[q+1|0];if(I[q|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;g=g+65280|0;t=8;break lh}H[f+16>>2]=i;g=(m<<9)+g|0;t=7;break lh}H[f+16>>2]=i;t=8;g=(m<<8)+g|0}t=t-1|0;H[f+8>>2]=t;g=g<<1;H[f>>2]=g;c=c<<1;H[f+4>>2]=c;if(c>>>0<32768){continue}break}c=b?!n:n;break jh}c=H[q+4>>2]}b=H[j>>2];H[j>>2]=((c|0)==(b>>>31|0)?k:s)+b;t=H[h>>2]|1048576<<l;H[h>>2]=t;c=H[f+128>>2]}e=e+1|0;b=c;if(e>>>0<b-o>>>0){continue}break}}h=h+4|0;d=d+4|0;x=x+1|0;if((w|0)!=(x|0)){continue}break}break cb}i=0;x=0;p=0;mh:{nh:{oh:{M=H[f+124>>2];if(!((M|0)!=64|H[f+128>>2]!=64)){b=1<<z;i=b>>>1|b;k=0-i|0;s=f+28|0;g=H[f+120>>2]+268|0;h=H[f+8>>2];c=H[f+4>>2];j=H[f>>2];l=H[f+104>>2];b=H[f+116>>2];if(V&8){break oh}while(1){p=0;while(1){q=b;n=g;g=H[g>>2];if(g){ph:{if(g&2097168){break ph}b=g&495;if(!b){break ph}l=s+(I[b+H[f+108>>2]|0]<<2)|0;o=H[l>>2];b=H[o>>2];c=c-b|0;qh:{if(j>>>16>>>0<b>>>0){e=H[o+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[o+(d?8:12)>>2];while(1){rh:{if(h){break rh}o=H[f+16>>2];c=o+1|0;m=I[o+1|0];if(I[o|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break rh}H[f+16>>2]=c;j=(m<<9)+j|0;h=7;break rh}H[f+16>>2]=c;h=8;j=(m<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?e:!e;break qh}j=j-(b<<16)|0;if(!(c&32768)){e=H[o+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[o+(b?12:8)>>2];while(1){sh:{if(h){break sh}o=H[f+16>>2];d=o+1|0;m=I[o+1|0];if(I[o|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break sh}H[f+16>>2]=d;j=(m<<9)+j|0;h=7;break sh}H[f+16>>2]=d;h=8;j=(m<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!e:e;break qh}b=H[o+4>>2]}if(b){u=n-4|0;d=H[n+4>>2]>>>17&4|(H[u>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));l=s+(I[d+24384|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;o=I[d+24640|0];th:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){uh:{if(h){break uh}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break uh}H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break uh}H[f+16>>2]=c;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;d=d?m:!m;break th}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){vh:{if(h){break vh}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break vh}H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break vh}H[f+16>>2]=d;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}d=b?!m:m;break th}d=H[e+4>>2]}H[q>>2]=(o|0)==(d|0)?i:k;H[u>>2]=H[u>>2]|32;H[n+4>>2]=H[n+4>>2]|8;b=n-268|0;H[b>>2]=H[b>>2]|131072;b=n-260|0;H[b>>2]=H[b>>2]|32768;b=n-264|0;u=b;e=H[b>>2];b=d^o;H[u>>2]=e|b<<31|65536;g=b<<19|g|16}g=g|2097152}if(!(!(g&3960)|g&16777344)){o=g>>>3|0;l=s+(I[H[f+108>>2]+(o&495)|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;wh:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){xh:{if(h){break xh}e=H[f+16>>2];c=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break xh}H[f+16>>2]=c;j=(u<<9)+j|0;h=7;break xh}H[f+16>>2]=c;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break wh}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){yh:{if(h){break yh}e=H[f+16>>2];d=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break yh}H[f+16>>2]=d;j=(u<<9)+j|0;h=7;break yh}H[f+16>>2]=d;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break wh}b=H[e+4>>2]}if(b){u=n-4|0;d=H[n+4>>2]>>>20&4|(H[u>>2]>>>22&1|(g>>>15&16|(g>>>19&64|o&170)));l=s+(I[d+24384|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;o=I[d+24640|0];zh:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Ah:{if(h){break Ah}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Ah}H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Ah}H[f+16>>2]=c;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break zh}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Bh:{if(h){break Bh}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Bh}H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Bh}H[f+16>>2]=d;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break zh}b=H[e+4>>2]}H[q+256>>2]=(o|0)==(b|0)?i:k;H[u>>2]=H[u>>2]|256;H[n+4>>2]=H[n+4>>2]|64;g=(b^o)<<22|g|128}g=g|16777216}if(!(!(g&31680)|g&134218752)){o=g>>>6|0;l=s+(I[H[f+108>>2]+(o&495)|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;Ch:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Dh:{if(h){break Dh}e=H[f+16>>2];c=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Dh}H[f+16>>2]=c;j=(u<<9)+j|0;h=7;break Dh}H[f+16>>2]=c;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break Ch}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Eh:{if(h){break Eh}e=H[f+16>>2];d=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Eh}H[f+16>>2]=d;j=(u<<9)+j|0;h=7;break Eh}H[f+16>>2]=d;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break Ch}b=H[e+4>>2]}if(b){u=n-4|0;d=H[n+4>>2]>>>23&4|(H[u>>2]>>>25&1|(g>>>18&16|(g>>>22&64|o&170)));l=s+(I[d+24384|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;o=I[d+24640|0];Fh:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Gh:{if(h){break Gh}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Gh}H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Gh}H[f+16>>2]=c;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break Fh}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Hh:{if(h){break Hh}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Hh}H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Hh}H[f+16>>2]=d;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break Fh}b=H[e+4>>2]}H[q+512>>2]=(o|0)==(b|0)?i:k;H[u>>2]=H[u>>2]|2048;H[n+4>>2]=H[n+4>>2]|512;g=(b^o)<<25|g|1024}g=g|134217728}if(!(!(g&253440)|g&1073750016)){o=g>>>9|0;l=s+(I[H[f+108>>2]+(o&495)|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;Ih:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Jh:{if(h){break Jh}e=H[f+16>>2];c=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Jh}H[f+16>>2]=c;j=(u<<9)+j|0;h=7;break Jh}H[f+16>>2]=c;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break Ih}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Kh:{if(h){break Kh}e=H[f+16>>2];d=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Kh}H[f+16>>2]=d;j=(u<<9)+j|0;h=7;break Kh}H[f+16>>2]=d;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break Ih}b=H[e+4>>2]}if(b){u=n-4|0;d=H[n+4>>2]>>>26&4|(H[u>>2]>>>28&1|(g>>>21&16|(g>>>25&64|o&170)));l=s+(I[d+24384|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;o=I[d+24640|0];Lh:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Mh:{if(h){break Mh}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Mh}H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Mh}H[f+16>>2]=c;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break Lh}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Nh:{if(h){break Nh}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Nh}H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Nh}H[f+16>>2]=d;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break Lh}b=H[e+4>>2]}H[q+768>>2]=(o|0)==(b|0)?i:k;H[u>>2]=H[u>>2]|16384;H[n+4>>2]=H[n+4>>2]|4096;H[n+260>>2]=H[n+260>>2]|4;H[n+268>>2]=H[n+268>>2]|1;b=b^o;H[n+264>>2]=H[n+264>>2]|b<<18|2;g=b<<28|g|8192}g=g|1073741824}H[n>>2]=g}g=n+4|0;b=q+4|0;p=p+1|0;if((p|0)!=64){continue}break}g=n+12|0;b=q+772|0;q=x>>>0<60;x=x+4|0;if(q){continue}break}break nh}b=1<<z;k=b>>>1|b;q=H[f+120>>2];g=(q+(M<<2)|0)+12|0;b=H[f+128>>2];h=H[f+8>>2];c=H[f+4>>2];j=H[f>>2];l=H[f+104>>2];o=H[f+116>>2];Oh:{if(V&8){Ph:{if(b>>>0<4){break Ph}if(M){w=N(M,12);u=M<<3;q=0-k|0;D=f+28|0;while(1){x=0;while(1){n=g;g=H[g>>2];if(g){Qh:{if(g&2097168){break Qh}b=g&495;if(!b){break Qh}l=D+(I[b+H[f+108>>2]|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;Rh:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;s=H[e+4>>2];if(c&32768){break Rh}m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Sh:{if(h){break Sh}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=d;h=8;j=(r<<8)+j|0;break Sh}if(r>>>0<=143){H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Sh}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}s=b?!m:m;break Rh}m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Th:{if(h){break Th}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=c;h=8;j=(r<<8)+j|0;break Th}if(r>>>0<=143){H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Th}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;s=d?m:!m}if(s){r=n-4|0;d=H[n+4>>2]>>>17&4|(H[r>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));l=D+(I[d+24384|0]<<2)|0;s=H[l>>2];b=H[s>>2];c=c-b|0;e=I[d+24640|0];Uh:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;v=H[s+4>>2];if(c&32768){break Uh}m=H[s+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[s+(b?12:8)>>2];while(1){Vh:{if(h){break Vh}h=H[f+16>>2];d=h+1|0;s=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(s<<8)+j|0;break Vh}if(s>>>0<=143){H[f+16>>2]=d;j=(s<<9)+j|0;h=7;break Vh}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}v=b?!m:m;break Uh}m=H[s+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[s+(d?8:12)>>2];while(1){Wh:{if(h){break Wh}h=H[f+16>>2];c=h+1|0;s=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(s<<8)+j|0;break Wh}if(s>>>0<=143){H[f+16>>2]=c;j=(s<<9)+j|0;h=7;break Wh}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;v=d?m:!m}b=v;H[o>>2]=(e|0)==(b|0)?k:q;H[r>>2]=H[r>>2]|32;H[n+4>>2]=H[n+4>>2]|8;g=(b^e)<<19|g|16}g=g|2097152}if(!(!(g&3960)|g&16777344)){e=g>>>3|0;l=D+(I[H[f+108>>2]+(e&495)|0]<<2)|0;r=H[l>>2];b=H[r>>2];c=c-b|0;Xh:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;s=H[r+4>>2];if(c&32768){break Xh}m=H[r+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[r+(b?12:8)>>2];while(1){Yh:{if(h){break Yh}h=H[f+16>>2];d=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(r<<8)+j|0;break Yh}if(r>>>0<=143){H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Yh}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}s=b?!m:m;break Xh}m=H[r+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[r+(d?8:12)>>2];while(1){Zh:{if(h){break Zh}h=H[f+16>>2];c=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(r<<8)+j|0;break Zh}if(r>>>0<=143){H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Zh}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;s=d?m:!m}if(s){s=n-4|0;d=H[n+4>>2]>>>20&4|(H[s>>2]>>>22&1|(g>>>15&16|(g>>>19&64|e&170)));l=D+(I[d+24384|0]<<2)|0;v=H[l>>2];b=H[v>>2];c=c-b|0;m=(M<<2)+o|0;e=I[d+24640|0];_h:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;d=H[v+4>>2];if(c&32768){break _h}r=H[v+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[v+(b?12:8)>>2];while(1){$h:{if(h){break $h}h=H[f+16>>2];d=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(v<<8)+j|0;break $h}if(v>>>0<=143){H[f+16>>2]=d;j=(v<<9)+j|0;h=7;break $h}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}d=b?!r:r;break _h}r=H[v+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[v+(d?8:12)>>2];while(1){ai:{if(h){break ai}h=H[f+16>>2];c=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(v<<8)+j|0;break ai}if(v>>>0<=143){H[f+16>>2]=c;j=(v<<9)+j|0;h=7;break ai}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;d=d?r:!r}b=d;H[m>>2]=(e|0)==(b|0)?k:q;H[s>>2]=H[s>>2]|256;H[n+4>>2]=H[n+4>>2]|64;g=(b^e)<<22|g|128}g=g|16777216}if(!(!(g&31680)|g&134218752)){e=g>>>6|0;l=D+(I[H[f+108>>2]+(e&495)|0]<<2)|0;r=H[l>>2];b=H[r>>2];c=c-b|0;bi:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;s=H[r+4>>2];if(c&32768){break bi}m=H[r+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[r+(b?12:8)>>2];while(1){ci:{if(h){break ci}h=H[f+16>>2];d=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(r<<8)+j|0;break ci}if(r>>>0<=143){H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break ci}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}s=b?!m:m;break bi}m=H[r+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[r+(d?8:12)>>2];while(1){di:{if(h){break di}h=H[f+16>>2];c=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(r<<8)+j|0;break di}if(r>>>0<=143){H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break di}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;s=d?m:!m}if(s){s=n-4|0;d=H[n+4>>2]>>>23&4|(H[s>>2]>>>25&1|(g>>>18&16|(g>>>22&64|e&170)));l=D+(I[d+24384|0]<<2)|0;v=H[l>>2];b=H[v>>2];c=c-b|0;m=o+u|0;e=I[d+24640|0];ei:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;d=H[v+4>>2];if(c&32768){break ei}r=H[v+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[v+(b?12:8)>>2];while(1){fi:{if(h){break fi}h=H[f+16>>2];d=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(v<<8)+j|0;break fi}if(v>>>0<=143){H[f+16>>2]=d;j=(v<<9)+j|0;h=7;break fi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}d=b?!r:r;break ei}r=H[v+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[v+(d?8:12)>>2];while(1){gi:{if(h){break gi}h=H[f+16>>2];c=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(v<<8)+j|0;break gi}if(v>>>0<=143){H[f+16>>2]=c;j=(v<<9)+j|0;h=7;break gi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;d=d?r:!r}b=d;H[m>>2]=(e|0)==(b|0)?k:q;H[s>>2]=H[s>>2]|2048;H[n+4>>2]=H[n+4>>2]|512;g=(b^e)<<25|g|1024}g=g|134217728}if(!(!(g&253440)|g&1073750016)){e=g>>>9|0;l=D+(I[H[f+108>>2]+(e&495)|0]<<2)|0;r=H[l>>2];b=H[r>>2];c=c-b|0;hi:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;s=H[r+4>>2];if(c&32768){break hi}m=H[r+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[r+(b?12:8)>>2];while(1){ii:{if(h){break ii}h=H[f+16>>2];d=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(r<<8)+j|0;break ii}if(r>>>0<=143){H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break ii}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}s=b?!m:m;break hi}m=H[r+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[r+(d?8:12)>>2];while(1){ji:{if(h){break ji}h=H[f+16>>2];c=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(r<<8)+j|0;break ji}if(r>>>0<=143){H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break ji}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;s=d?m:!m}if(s){s=n-4|0;d=H[n+4>>2]>>>26&4|(H[s>>2]>>>28&1|(g>>>21&16|(g>>>25&64|e&170)));l=D+(I[d+24384|0]<<2)|0;v=H[l>>2];b=H[v>>2];c=c-b|0;m=o+w|0;e=I[d+24640|0];ki:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;d=H[v+4>>2];if(c&32768){break ki}r=H[v+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[v+(b?12:8)>>2];while(1){li:{if(h){break li}h=H[f+16>>2];d=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(v<<8)+j|0;break li}if(v>>>0<=143){H[f+16>>2]=d;j=(v<<9)+j|0;h=7;break li}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}d=b?!r:r;break ki}r=H[v+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[v+(d?8:12)>>2];while(1){mi:{if(h){break mi}h=H[f+16>>2];c=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(v<<8)+j|0;break mi}if(v>>>0<=143){H[f+16>>2]=c;j=(v<<9)+j|0;h=7;break mi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;d=d?r:!r}b=d;H[m>>2]=(e|0)==(b|0)?k:q;H[s>>2]=H[s>>2]|16384;H[n+4>>2]=H[n+4>>2]|4096;d=n+(H[f+124>>2]<<2)|0;H[d+4>>2]=H[d+4>>2]|4;H[d+12>>2]=H[d+12>>2]|1;b=b^e;H[d+8>>2]=H[d+8>>2]|b<<18|2;g=b<<28|g|8192}g=g|1073741824}H[n>>2]=g}g=n+4|0;o=o+4|0;x=x+1|0;if((M|0)!=(x|0)){continue}break}g=n+12|0;o=o+w|0;i=i+4|0;b=H[f+128>>2];if(i>>>0<(b&-4)>>>0){continue}break}break Ph}i=b&-4;g=(q+(i<<1)|0)+12|0}H[f+8>>2]=h;H[f+4>>2]=c;H[f>>2]=j;H[f+104>>2]=l;if(!M|b>>>0<=i>>>0){break Oh}while(1){c=(b|0)==(i|0);h=0;b=i;if(!c){while(1){Xb(f,g,(N(h,M)<<2)+o|0,k,h,H[f+124>>2]+2|0,1);h=h+1|0;b=H[f+128>>2];if(h>>>0<b-i>>>0){continue}break}}g=g+4|0;o=o+4|0;p=p+1|0;if((M|0)!=(p|0)){continue}break}break Oh}ni:{if(b>>>0<4){break ni}if(M){w=N(M,12);u=M<<3;q=0-k|0;D=f+28|0;while(1){x=0;while(1){n=g;g=H[g>>2];if(g){oi:{if(g&2097168){break oi}b=g&495;if(!b){break oi}l=D+(I[b+H[f+108>>2]|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;pi:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;s=H[e+4>>2];if(c&32768){break pi}m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){qi:{if(h){break qi}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=d;h=8;j=(r<<8)+j|0;break qi}if(r>>>0<=143){H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break qi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}s=b?!m:m;break pi}m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){ri:{if(h){break ri}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]!=255){H[f+16>>2]=c;h=8;j=(r<<8)+j|0;break ri}if(r>>>0<=143){H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break ri}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;s=d?m:!m}if(s){r=n-4|0;d=H[n+4>>2]>>>17&4|(H[r>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));l=D+(I[d+24384|0]<<2)|0;s=H[l>>2];b=H[s>>2];c=c-b|0;e=I[d+24640|0];si:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;d=H[s+4>>2];if(c&32768){break si}m=H[s+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[s+(b?12:8)>>2];while(1){ti:{if(h){break ti}h=H[f+16>>2];d=h+1|0;s=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(s<<8)+j|0;break ti}if(s>>>0<=143){H[f+16>>2]=d;j=(s<<9)+j|0;h=7;break ti}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}d=b?!m:m;break si}m=H[s+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[s+(d?8:12)>>2];while(1){ui:{if(h){break ui}h=H[f+16>>2];c=h+1|0;s=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(s<<8)+j|0;break ui}if(s>>>0<=143){H[f+16>>2]=c;j=(s<<9)+j|0;h=7;break ui}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;d=d?m:!m}H[o>>2]=(e|0)==(d|0)?k:q;H[r>>2]=H[r>>2]|32;H[n+4>>2]=H[n+4>>2]|8;b=n+(-2-H[f+124>>2]<<2)|0;H[b+4>>2]=H[b+4>>2]|32768;d=d^e;H[b>>2]=H[b>>2]|d<<31|65536;b=b-4|0;H[b>>2]=H[b>>2]|131072;g=d<<19|g|16}g=g|2097152}if(!(!(g&3960)|g&16777344)){e=g>>>3|0;l=D+(I[H[f+108>>2]+(e&495)|0]<<2)|0;r=H[l>>2];b=H[r>>2];c=c-b|0;vi:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;s=H[r+4>>2];if(c&32768){break vi}m=H[r+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[r+(b?12:8)>>2];while(1){wi:{if(h){break wi}h=H[f+16>>2];d=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(r<<8)+j|0;break wi}if(r>>>0<=143){H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break wi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}s=b?!m:m;break vi}m=H[r+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[r+(d?8:12)>>2];while(1){xi:{if(h){break xi}h=H[f+16>>2];c=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(r<<8)+j|0;break xi}if(r>>>0<=143){H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break xi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;s=d?m:!m}if(s){s=n-4|0;d=H[n+4>>2]>>>20&4|(H[s>>2]>>>22&1|(g>>>15&16|(g>>>19&64|e&170)));l=D+(I[d+24384|0]<<2)|0;v=H[l>>2];b=H[v>>2];c=c-b|0;m=(M<<2)+o|0;e=I[d+24640|0];yi:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;d=H[v+4>>2];if(c&32768){break yi}r=H[v+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[v+(b?12:8)>>2];while(1){zi:{if(h){break zi}h=H[f+16>>2];d=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(v<<8)+j|0;break zi}if(v>>>0<=143){H[f+16>>2]=d;j=(v<<9)+j|0;h=7;break zi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}d=b?!r:r;break yi}r=H[v+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[v+(d?8:12)>>2];while(1){Ai:{if(h){break Ai}h=H[f+16>>2];c=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(v<<8)+j|0;break Ai}if(v>>>0<=143){H[f+16>>2]=c;j=(v<<9)+j|0;h=7;break Ai}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;d=d?r:!r}b=d;H[m>>2]=(e|0)==(b|0)?k:q;H[s>>2]=H[s>>2]|256;H[n+4>>2]=H[n+4>>2]|64;g=(b^e)<<22|g|128}g=g|16777216}if(!(!(g&31680)|g&134218752)){e=g>>>6|0;l=D+(I[H[f+108>>2]+(e&495)|0]<<2)|0;r=H[l>>2];b=H[r>>2];c=c-b|0;Bi:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;s=H[r+4>>2];if(c&32768){break Bi}m=H[r+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[r+(b?12:8)>>2];while(1){Ci:{if(h){break Ci}h=H[f+16>>2];d=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(r<<8)+j|0;break Ci}if(r>>>0<=143){H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Ci}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}s=b?!m:m;break Bi}m=H[r+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[r+(d?8:12)>>2];while(1){Di:{if(h){break Di}h=H[f+16>>2];c=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(r<<8)+j|0;break Di}if(r>>>0<=143){H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Di}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;s=d?m:!m}if(s){s=n-4|0;d=H[n+4>>2]>>>23&4|(H[s>>2]>>>25&1|(g>>>18&16|(g>>>22&64|e&170)));l=D+(I[d+24384|0]<<2)|0;v=H[l>>2];b=H[v>>2];c=c-b|0;m=o+u|0;e=I[d+24640|0];Ei:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;d=H[v+4>>2];if(c&32768){break Ei}r=H[v+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[v+(b?12:8)>>2];while(1){Fi:{if(h){break Fi}h=H[f+16>>2];d=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(v<<8)+j|0;break Fi}if(v>>>0<=143){H[f+16>>2]=d;j=(v<<9)+j|0;h=7;break Fi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}d=b?!r:r;break Ei}r=H[v+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[v+(d?8:12)>>2];while(1){Gi:{if(h){break Gi}h=H[f+16>>2];c=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(v<<8)+j|0;break Gi}if(v>>>0<=143){H[f+16>>2]=c;j=(v<<9)+j|0;h=7;break Gi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;d=d?r:!r}b=d;H[m>>2]=(e|0)==(b|0)?k:q;H[s>>2]=H[s>>2]|2048;H[n+4>>2]=H[n+4>>2]|512;g=(b^e)<<25|g|1024}g=g|134217728}if(!(!(g&253440)|g&1073750016)){e=g>>>9|0;l=D+(I[H[f+108>>2]+(e&495)|0]<<2)|0;r=H[l>>2];b=H[r>>2];c=c-b|0;Hi:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;s=H[r+4>>2];if(c&32768){break Hi}m=H[r+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[r+(b?12:8)>>2];while(1){Ii:{if(h){break Ii}h=H[f+16>>2];d=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(r<<8)+j|0;break Ii}if(r>>>0<=143){H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Ii}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}s=b?!m:m;break Hi}m=H[r+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[r+(d?8:12)>>2];while(1){Ji:{if(h){break Ji}h=H[f+16>>2];c=h+1|0;r=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(r<<8)+j|0;break Ji}if(r>>>0<=143){H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Ji}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;s=d?m:!m}if(s){s=n-4|0;d=H[n+4>>2]>>>26&4|(H[s>>2]>>>28&1|(g>>>21&16|(g>>>25&64|e&170)));l=D+(I[d+24384|0]<<2)|0;v=H[l>>2];b=H[v>>2];c=c-b|0;m=o+w|0;e=I[d+24640|0];Ki:{if(j>>>16>>>0>=b>>>0){j=j-(b<<16)|0;d=H[v+4>>2];if(c&32768){break Ki}r=H[v+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[v+(b?12:8)>>2];while(1){Li:{if(h){break Li}h=H[f+16>>2];d=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=d;h=8;j=(v<<8)+j|0;break Li}if(v>>>0<=143){H[f+16>>2]=d;j=(v<<9)+j|0;h=7;break Li}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}d=b?!r:r;break Ki}r=H[v+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[v+(d?8:12)>>2];while(1){Mi:{if(h){break Mi}h=H[f+16>>2];c=h+1|0;v=I[h+1|0];if(I[h|0]!=255){H[f+16>>2]=c;h=8;j=(v<<8)+j|0;break Mi}if(v>>>0<=143){H[f+16>>2]=c;j=(v<<9)+j|0;h=7;break Mi}H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;d=d?r:!r}b=d;H[m>>2]=(e|0)==(b|0)?k:q;H[s>>2]=H[s>>2]|16384;H[n+4>>2]=H[n+4>>2]|4096;d=n+(H[f+124>>2]<<2)|0;H[d+4>>2]=H[d+4>>2]|4;H[d+12>>2]=H[d+12>>2]|1;b=b^e;H[d+8>>2]=H[d+8>>2]|b<<18|2;g=b<<28|g|8192}g=g|1073741824}H[n>>2]=g}g=n+4|0;o=o+4|0;x=x+1|0;if((M|0)!=(x|0)){continue}break}g=n+12|0;o=o+w|0;i=i+4|0;b=H[f+128>>2];if(i>>>0<(b&-4)>>>0){continue}break}break ni}i=b&-4;g=(q+(i<<1)|0)+12|0}H[f+8>>2]=h;H[f+4>>2]=c;H[f>>2]=j;H[f+104>>2]=l;if(!M|b>>>0<=i>>>0){break Oh}while(1){c=(b|0)==(i|0);h=0;b=i;if(!c){while(1){Xb(f,g,(N(h,M)<<2)+o|0,k,h,H[f+124>>2]+2|0,0);h=h+1|0;b=H[f+128>>2];if(h>>>0<b-i>>>0){continue}break}}g=g+4|0;o=o+4|0;p=p+1|0;if((M|0)!=(p|0)){continue}break}}break mh}while(1){p=0;while(1){q=b;n=g;g=H[g>>2];if(g){Ni:{if(g&2097168){break Ni}b=g&495;if(!b){break Ni}l=s+(I[b+H[f+108>>2]|0]<<2)|0;o=H[l>>2];b=H[o>>2];c=c-b|0;Oi:{if(j>>>16>>>0<b>>>0){e=H[o+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[o+(d?8:12)>>2];while(1){Pi:{if(h){break Pi}o=H[f+16>>2];c=o+1|0;m=I[o+1|0];if(I[o|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Pi}H[f+16>>2]=c;j=(m<<9)+j|0;h=7;break Pi}H[f+16>>2]=c;h=8;j=(m<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?e:!e;break Oi}j=j-(b<<16)|0;if(!(c&32768)){e=H[o+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[o+(b?12:8)>>2];while(1){Qi:{if(h){break Qi}o=H[f+16>>2];d=o+1|0;m=I[o+1|0];if(I[o|0]==255){if(m>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Qi}H[f+16>>2]=d;j=(m<<9)+j|0;h=7;break Qi}H[f+16>>2]=d;h=8;j=(m<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!e:e;break Oi}b=H[o+4>>2]}if(b){u=n-4|0;d=H[n+4>>2]>>>17&4|(H[u>>2]>>>19&1|(g>>>14&16|(g>>>16&64|g&170)));l=s+(I[d+24384|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;o=I[d+24640|0];Ri:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Si:{if(h){break Si}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Si}H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Si}H[f+16>>2]=c;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break Ri}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Ti:{if(h){break Ti}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Ti}H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Ti}H[f+16>>2]=d;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break Ri}b=H[e+4>>2]}H[q>>2]=(o|0)==(b|0)?i:k;H[u>>2]=H[u>>2]|32;H[n+4>>2]=H[n+4>>2]|8;g=(b^o)<<19|g|16}g=g|2097152}if(!(!(g&3960)|g&16777344)){o=g>>>3|0;l=s+(I[H[f+108>>2]+(o&495)|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;Ui:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Vi:{if(h){break Vi}e=H[f+16>>2];c=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Vi}H[f+16>>2]=c;j=(u<<9)+j|0;h=7;break Vi}H[f+16>>2]=c;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break Ui}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Wi:{if(h){break Wi}e=H[f+16>>2];d=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Wi}H[f+16>>2]=d;j=(u<<9)+j|0;h=7;break Wi}H[f+16>>2]=d;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break Ui}b=H[e+4>>2]}if(b){u=n-4|0;d=H[n+4>>2]>>>20&4|(H[u>>2]>>>22&1|(g>>>15&16|(g>>>19&64|o&170)));l=s+(I[d+24384|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;o=I[d+24640|0];Xi:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){Yi:{if(h){break Yi}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Yi}H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break Yi}H[f+16>>2]=c;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break Xi}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){Zi:{if(h){break Zi}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break Zi}H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break Zi}H[f+16>>2]=d;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break Xi}b=H[e+4>>2]}H[q+256>>2]=(o|0)==(b|0)?i:k;H[u>>2]=H[u>>2]|256;H[n+4>>2]=H[n+4>>2]|64;g=(b^o)<<22|g|128}g=g|16777216}if(!(!(g&31680)|g&134218752)){o=g>>>6|0;l=s+(I[H[f+108>>2]+(o&495)|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;_i:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){$i:{if(h){break $i}e=H[f+16>>2];c=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break $i}H[f+16>>2]=c;j=(u<<9)+j|0;h=7;break $i}H[f+16>>2]=c;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break _i}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){aj:{if(h){break aj}e=H[f+16>>2];d=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break aj}H[f+16>>2]=d;j=(u<<9)+j|0;h=7;break aj}H[f+16>>2]=d;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break _i}b=H[e+4>>2]}if(b){u=n-4|0;d=H[n+4>>2]>>>23&4|(H[u>>2]>>>25&1|(g>>>18&16|(g>>>22&64|o&170)));l=s+(I[d+24384|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;o=I[d+24640|0];bj:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){cj:{if(h){break cj}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break cj}H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break cj}H[f+16>>2]=c;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break bj}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){dj:{if(h){break dj}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break dj}H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break dj}H[f+16>>2]=d;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break bj}b=H[e+4>>2]}H[q+512>>2]=(o|0)==(b|0)?i:k;H[u>>2]=H[u>>2]|2048;H[n+4>>2]=H[n+4>>2]|512;g=(b^o)<<25|g|1024}g=g|134217728}if(!(!(g&253440)|g&1073750016)){o=g>>>9|0;l=s+(I[H[f+108>>2]+(o&495)|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;ej:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){fj:{if(h){break fj}e=H[f+16>>2];c=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break fj}H[f+16>>2]=c;j=(u<<9)+j|0;h=7;break fj}H[f+16>>2]=c;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break ej}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){gj:{if(h){break gj}e=H[f+16>>2];d=e+1|0;u=I[e+1|0];if(I[e|0]==255){if(u>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break gj}H[f+16>>2]=d;j=(u<<9)+j|0;h=7;break gj}H[f+16>>2]=d;h=8;j=(u<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break ej}b=H[e+4>>2]}if(b){u=n-4|0;d=H[n+4>>2]>>>26&4|(H[u>>2]>>>28&1|(g>>>21&16|(g>>>25&64|o&170)));l=s+(I[d+24384|0]<<2)|0;e=H[l>>2];b=H[e>>2];c=c-b|0;o=I[d+24640|0];hj:{if(j>>>16>>>0<b>>>0){m=H[e+4>>2];d=b>>>0>c>>>0;H[l>>2]=H[e+(d?8:12)>>2];while(1){ij:{if(h){break ij}e=H[f+16>>2];c=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break ij}H[f+16>>2]=c;j=(r<<9)+j|0;h=7;break ij}H[f+16>>2]=c;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;b=b<<1;if(b>>>0<32768){continue}break}c=b;b=d?m:!m;break hj}j=j-(b<<16)|0;if(!(c&32768)){m=H[e+4>>2];b=b>>>0>c>>>0;H[l>>2]=H[e+(b?12:8)>>2];while(1){jj:{if(h){break jj}e=H[f+16>>2];d=e+1|0;r=I[e+1|0];if(I[e|0]==255){if(r>>>0>=144){H[f+12>>2]=H[f+12>>2]+1;j=j+65280|0;h=8;break jj}H[f+16>>2]=d;j=(r<<9)+j|0;h=7;break jj}H[f+16>>2]=d;h=8;j=(r<<8)+j|0}h=h-1|0;j=j<<1;c=c<<1;if(c>>>0<32768){continue}break}b=b?!m:m;break hj}b=H[e+4>>2]}H[q+768>>2]=(o|0)==(b|0)?i:k;H[u>>2]=H[u>>2]|16384;H[n+4>>2]=H[n+4>>2]|4096;H[n+260>>2]=H[n+260>>2]|4;H[n+268>>2]=H[n+268>>2]|1;b=b^o;H[n+264>>2]=H[n+264>>2]|b<<18|2;g=b<<28|g|8192}g=g|1073741824}H[n>>2]=g}g=n+4|0;b=q+4|0;p=p+1|0;if((p|0)!=64){continue}break}g=n+12|0;b=q+772|0;q=x>>>0<60;x=x+4|0;if(q){continue}break}}H[f+8>>2]=h;H[f+4>>2]=c;H[f>>2]=j;H[f+104>>2]=l}}if(aa){break bb}Yb(f);Xa(f,18,46);Xa(f,17,3);Xa(f,0,4)}b=la+1|0;c=(b|0)==3;la=c?0:b;z=z-c|0;ba=ba+1|0;if(ba>>>0>=K[ma+8>>2]){break ab}if((z|0)>0){continue}break}}U=R+U|0;c=H[f+24>>2];b=J[f+112>>1];F[c|0]=b;F[c+1|0]=b>>>8;X=X+1|0;if(X>>>0<K[C+44>>2]){continue}break}}kj:{if(!E){break kj}lj:{c=H[f+24>>2];g=H[f+16>>2];if(c>>>0>g+2>>>0){if(!_){break lj}g=H[f+16>>2];c=H[f+24>>2];b=H[f+20>>2];H[Y+56>>2]=c-b;H[Y+52>>2]=g-b;H[Y+48>>2]=(c-g|0)-2;Ba(S,2,15235,Y+48|0);break kj}b=H[f+12>>2];if(b>>>0<3){break kj}if(_){H[Y+80>>2]=H[f+12>>2];Ba(S,2,7107,Y+80|0);break kj}H[Y+64>>2]=b;Ba(S,2,7107,Y- -64|0);break kj}b=H[f+20>>2];H[Y+40>>2]=c-b;H[Y+36>>2]=g-b;H[Y+32>>2]=(c-g|0)-2;Ba(S,2,15235,Y+32|0)}if(!H[C+60>>2]){break i}H[f+116>>2]=Z}k=H[qa+4>>2];g=H[C+12>>2];l=H[C+8>>2]-H[qa>>2]|0;c=H[qa+16>>2];if(c&1){b=H[oa+28>>2]+N(ua,152)|0;l=(H[b-144>>2]+l|0)-H[b-152>>2]|0}i=g-k|0;if(c&2){b=H[oa+28>>2]+N(ua,152)|0;i=(H[b-140>>2]+i|0)-H[b-148>>2]|0}d=H[C+60>>2];t=d?d:H[f+116>>2];p=H[f+128>>2];u=H[f+124>>2];n=H[pa+808>>2];mj:{if(!n){break mj}b=!p|!u;if((n|0)<=30){if(b){break mj}e=0;while(1){k=(N(e,u)<<2)+t|0;b=0;while(1){g=k+(b<<2)|0;q=H[g>>2];c=q>>31;c=(c^q)-c|0;if(c>>>n|0){c=c>>>H[pa+808>>2]|0;H[g>>2]=(q|0)<0?0-c|0:c}b=b+1|0;if((u|0)!=(b|0)){continue}break}e=e+1|0;if((p|0)!=(e|0)){continue}break}break mj}if(b){break mj}b=N(p,u)<<2;if(!b){break mj}y(t,0,b)}if(d){b=N(p,u);if(H[pa+20>>2]==1){if(!b){break a}f=0;if((b|0)!=1){c=b&1;b=b&-2;g=0;while(1){k=(f<<2)+t|0;H[k>>2]=H[k>>2]/2;H[k+4>>2]=H[k+4>>2]/2;f=f+2|0;g=g+2|0;if((b|0)!=(g|0)){continue}break}if(!c){break a}}b=(f<<2)+t|0;H[b>>2]=H[b>>2]/2;break a}if(!b){break a}ga=O(L[qa+32>>2]*O(.5));g=b&3;if(b>>>0>=4){c=b&-4;b=0;while(1){L[t>>2]=ga*O(H[t>>2]);L[t+4>>2]=ga*O(H[t+4>>2]);L[t+8>>2]=ga*O(H[t+8>>2]);L[t+12>>2]=ga*O(H[t+12>>2]);t=t+16|0;b=b+4|0;if((c|0)!=(b|0)){continue}break}if(!g){break a}}b=0;while(1){L[t>>2]=ga*O(H[t>>2]);t=t+4|0;b=b+1|0;if((g|0)!=(b|0)){continue}break}break a}m=wa-va|0;if(H[pa+20>>2]==1){if(!p){break a}j=(H[oa+36>>2]+(N(i,m)<<2)|0)+(l<<2)|0;o=u&-4;i=0;while(1){b=0;if(o){d=j+(N(i,m)<<2)|0;n=(N(i,u)<<2)+t|0;while(1){q=b<<2;e=q+n|0;k=H[e+4>>2];g=H[e+8>>2];c=H[e+12>>2];q=d+q|0;H[q>>2]=H[e>>2]/2;H[q+12>>2]=(c|0)/2;H[q+8>>2]=(g|0)/2;H[q+4>>2]=(k|0)/2;b=b+4|0;if(o>>>0>b>>>0){continue}break}}nj:{if(b>>>0>=u>>>0){break nj}c=b+1|0;k=j+(N(i,m)<<2)|0;g=(N(i,u)<<2)+t|0;if(u-b&1){b=b<<2;H[b+k>>2]=H[b+g>>2]/2;b=c}if((c|0)==(u|0)){break nj}while(1){c=b<<2;H[c+k>>2]=H[c+g>>2]/2;c=c+4|0;H[c+k>>2]=H[c+g>>2]/2;b=b+2|0;if((u|0)!=(b|0)){continue}break}}i=i+1|0;if((p|0)!=(i|0)){continue}break}break a}if(!p|!u){break a}ga=O(L[qa+32>>2]*O(.5));i=(H[oa+36>>2]+(N(i,m)<<2)|0)+(l<<2)|0;g=u&-4;k=u&3;h=0;c=u-1>>>0<3;while(1){b=i;f=0;oj:{if(!c){while(1){L[b>>2]=ga*O(H[t>>2]);L[b+4>>2]=ga*O(H[t+4>>2]);L[b+8>>2]=ga*O(H[t+8>>2]);L[b+12>>2]=ga*O(H[t+12>>2]);b=b+16|0;t=t+16|0;f=f+4|0;if((g|0)!=(f|0)){continue}break}if(!k){break oj}}f=0;while(1){L[b>>2]=ga*O(H[t>>2]);b=b+4|0;t=t+4|0;f=f+1|0;if((k|0)!=(f|0)){continue}break}}i=(m<<2)+i|0;h=h+1|0;if((p|0)!=(h|0)){continue}break}break a}H[Y>>2]=z;Ba(S,2,8716,Y)}H[H[d>>2]>>2]=0}Ca(a);na=Y+96|0}+function ib(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,z=0,A=0,C=0,D=0,E=0,J=0,M=0,Q=0,R=0,S=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=O(0),da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,oa=0,pa=0,ra=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=O(0),Aa=0,Ga=0,Ka=0,La=0,Ma=0,Na=0,Pa=O(0),Ra=0,Ua=0,Wa=0,Xa=0,Ya=0,_a=0,$a=0,ab=0,bb=0,cb=0,fb=0,gb=0,hb=0,ib=0,kb=0,lb=0,mb=0,pb=0,qb=0,rb=0,sb=0,tb=0;Aa=na-16|0;na=Aa;a:{if(!(I[a+8|0]&128)|H[a+228>>2]!=(b|0)){break a}ua=H[a+180>>2]+N(b,5644)|0;E=H[ua+5596>>2];if(!E){jb(ua);break a}g=H[a+100>>2];if(!g){g=H[a+96>>2]}q=H[g>>2];p=H[g+4>>2];k=H[g+8>>2];v=H[g+12>>2];g=H[a+60>>2];h=H[a+64>>2];i=H[ua+5600>>2];ra=na-16|0;na=ra;D=H[a+232>>2];H[D+36>>2]=b;j=H[H[D+28>>2]+76>>2];H[D+64>>2]=1;H[D+60>>2]=v;H[D+56>>2]=k;H[D+52>>2]=p;H[D+48>>2]=q;H[D+32>>2]=j+N(b,5644);Ca(H[D+68>>2]);p=0;H[D+68>>2]=0;b:{if(g){p=Ea(4,H[H[D+24>>2]+16>>2]);if(!p){break b}q=g&3;c:{if(g>>>0>=4){k=g&-4;b=0;while(1){g=h+(X<<2)|0;H[(H[g>>2]<<2)+p>>2]=1;H[(H[g+4>>2]<<2)+p>>2]=1;H[(H[g+8>>2]<<2)+p>>2]=1;H[(H[g+12>>2]<<2)+p>>2]=1;X=X+4|0;b=b+4|0;if((k|0)!=(b|0)){continue}break}if(!q){break c}}while(1){H[(H[h+(X<<2)>>2]<<2)+p>>2]=1;X=X+1|0;s=s+1|0;if((q|0)!=(s|0)){continue}break}}H[D+68>>2]=p}d:{A=H[D+24>>2];m=H[A+16>>2];e:{if(!m){break e}X=0;f:{while(1){g:{if(H[(X<<2)+p>>2]?0:p){break g}h=H[A+24>>2]+N(X,52)|0;b=H[h+4>>2];k=b-1|0;q=H[D+60>>2];v=k+q|0;g=0-!b|0;j=ve(v,q>>>0>v>>>0?g+1|0:g,b,0);h=H[h>>2];l=h-1|0;v=H[D+56>>2];s=l+v|0;q=0-!h|0;r=ve(s,s>>>0<v>>>0?q+1|0:q,h,0);t=k;k=H[D+52>>2];v=t+k|0;k=ve(v,k>>>0>v>>>0?g+1|0:g,b,0);b=H[H[H[D+20>>2]>>2]+20>>2]+N(X,76)|0;g=H[b+20>>2]-H[b+24>>2]|0;if(g>>>0>31){break g}v=H[b+12>>2];s=H[b+8>>2];t=H[b+4>>2];V=l;l=H[D+48>>2];x=V+l|0;h=ve(x,l>>>0>x>>>0?q+1|0:q,h,0);b=h-H[b>>2]|0;h:{if((b>>>0<=h>>>0?b:0)>>>g|0){break h}b=k-t|0;if((b>>>0<=k>>>0?b:0)>>>g|0){break h}b=s-r|0;if((b>>>0<=s>>>0?b:0)>>>g|0){break h}b=v-j|0;if(!((b>>>0<=v>>>0?b:0)>>>g|0)){break g}}H[D+64>>2]=0;break f}X=X+1|0;if((m|0)!=(X|0)){continue}break}if(!H[D+64>>2]){break f}s=0;while(1){b=H[H[H[D+20>>2]>>2]+20>>2]+N(s,76)|0;g=H[b+28>>2]+N(H[b+24>>2],152)|0;h=H[g-148>>2];q=H[g-140>>2];p=H[g-152>>2];g=H[g-144>>2];k=H[D+68>>2];i:{if(H[k+(s<<2)>>2]?0:k){break i}k=q-h|0;g=g-p|0;re(k,0,g);if(!(!qa|(h|0)==(q|0))){X=0;Ba(f,1,2982,0);break b}g=N(g,k);if(g>>>0>=1073741824){X=0;Ba(f,1,2982,0);break b}g=g<<2;H[b+44>>2]=g;j:{k:{l:{h=H[b+36>>2];if(h){if(g>>>0<=K[b+48>>2]){break i}if(H[b+40>>2]){break l}}g=Ia(g);H[b+36>>2]=g;h=g;g=H[b+44>>2];if(!(g?h:1)){break k}H[b+40>>2]=1;H[b+48>>2]=g;break i}Ca(h);g=Ia(H[b+44>>2]);H[b+36>>2]=g;if(g){break j}H[b+48>>2]=0;H[b+40>>2]=0;H[b+44>>2]=0}X=0;Ba(f,1,2982,0);break b}H[b+40>>2]=1;H[b+48>>2]=H[b+44>>2]}s=s+1|0;A=H[D+24>>2];if(s>>>0<K[A+16>>2]){continue}break}break e}M=H[A+24>>2];W=H[H[H[D+20>>2]>>2]+20>>2];b=0;while(1){m:{if(H[(b<<2)+p>>2]?0:p){break m}g=W+N(b,76)|0;q=H[g>>2];k=M+N(b,52)|0;h=H[k>>2];l=h-1|0;v=H[D+48>>2];j=l+v|0;s=0-!h|0;v=ve(j,j>>>0<v>>>0?s+1|0:s,h,0);q=q>>>0>v>>>0?q:v;H[g+56>>2]=q;v=H[g+4>>2];k=H[k+4>>2];r=k-1|0;t=H[D+52>>2];x=r+t|0;j=0-!k|0;t=ve(x,t>>>0>x>>>0?j+1|0:j,k,0);v=v>>>0>t>>>0?v:t;H[g+60>>2]=v;t=H[g+8>>2];V=l;l=H[D+56>>2];x=V+l|0;h=ve(x,l>>>0>x>>>0?s+1|0:s,h,0);h=h>>>0>t>>>0?t:h;H[g+64>>2]=h;s=H[g+12>>2];l=H[D+60>>2];r=r+l|0;k=ve(r,l>>>0>r>>>0?j+1|0:j,k,0);k=k>>>0>s>>>0?s:k;H[g+68>>2]=k;if(h>>>0<q>>>0|k>>>0<v>>>0){break d}r=H[g+20>>2];if(!r){break m}t=k-1|0;J=0-!k|0;Z=h-1|0;R=0-!h|0;x=v-1|0;S=0-!v|0;Y=q-1|0;z=0-!q|0;$=H[g+28>>2];k=0;h=0;while(1){v=$+N(k,152)|0;q=r+(k^-1)|0;g=q&31;if((q&63)>>>0>=32){l=1<<g;s=0}else{s=1<<g;l=s-1&1>>>32-g}g=t+s|0;j=l+J|0;w=g>>>0<t>>>0?j+1|0:j;j=q&31;if((q&63)>>>0>=32){g=w>>>j|0}else{g=((1<<j)-1&w)<<32-j|g>>>j}H[v+148>>2]=g;g=l+R|0;V=g+1|0;j=g;g=s+Z|0;w=g>>>0<s>>>0?V:j;j=q&31;if((q&63)>>>0>=32){g=w>>>j|0}else{g=((1<<j)-1&w)<<32-j|g>>>j}H[v+144>>2]=g;g=l+S|0;V=g+1|0;j=g;g=s+x|0;w=g>>>0<x>>>0?V:j;j=q&31;if((q&63)>>>0>=32){g=w>>>j|0}else{g=((1<<j)-1&w)<<32-j|g>>>j}H[v+140>>2]=g;g=l+z|0;j=s+Y|0;s=j>>>0<Y>>>0?g+1|0:g;g=q&31;if((q&63)>>>0>=32){g=s>>>g|0}else{g=((1<<g)-1&s)<<32-g|j>>>g}H[v+136>>2]=g;k=k+1|0;h=k?h:h+1|0;if(h|(k|0)!=(r|0)){continue}break}}b=b+1|0;if((m|0)!=(b|0)){continue}break}}X=0;H[ra+8>>2]=0;b=H[D+28>>2];Y=Ea(1,8);if(Y){H[Y+4>>2]=b;H[Y>>2]=A}if(!Y){break b}Z=H[H[D+20>>2]>>2];x=na-144|0;na=x;l=H[D+36>>2];b=N(l,5644);h=H[Y+4>>2];R=b+H[h+76>>2]|0;_=H[R+420>>2];k=0;q=0;t=na-32|0;na=t;J=b+H[h+76>>2]|0;$=H[J+420>>2];S=H[Y>>2];m=S;w=H[m+16>>2];v=Fa(N(w,528));n:{if(!v){break n}b=Fa(w<<2);o:{if(!b){b=v;break o}p=H[h+76>>2]+N(l,5644)|0;M=H[p+420>>2];s=M+1|0;g=Ea(s,240);p:{if(g){q:{if(s){r=H[m+16>>2];s=g;while(1){H[s+236>>2]=f;j=Ea(r,16);H[s+200>>2]=j;if(!j){break q}W=H[m+16>>2];H[s+196>>2]=W;r=0;j=0;if(W){while(1){r=H[s+200>>2]+(j<<4)|0;W=H[p+5584>>2]+N(j,1080)|0;z=Ea(H[W+4>>2],16);H[r+12>>2]=z;if(!z){break q}H[r+8>>2]=H[W+4>>2];j=j+1|0;r=H[m+16>>2];if(j>>>0<r>>>0){continue}break}}s=s+240|0;j=(o|0)==(M|0);o=o+1|0;if(!j){continue}break}}break p}p=H[g+4>>2];if(p){Ca(p);H[g+4>>2]=0}s=g;p=0;while(1){j=H[s+200>>2];if(j){r=0;o=H[s+196>>2];if(o){while(1){W=H[j+12>>2];if(W){Ca(W);H[j+12>>2]=0;o=H[s+196>>2]}j=j+16|0;r=r+1|0;if(r>>>0<o>>>0){continue}break}j=H[s+200>>2]}Ca(j);H[s+200>>2]=0}s=s+240|0;j=(p|0)==(M|0);p=p+1|0;if(!j){continue}break}Ca(g)}g=0}if(g){r:{if(!w){break r}j=w&7;p=v;if(w>>>0>=8){r=w&-8;while(1){s=(n<<2)+b|0;H[s+28>>2]=p+3696;H[s+24>>2]=p+3168;H[s+20>>2]=p+2640;H[s+16>>2]=p+2112;H[s+12>>2]=p+1584;H[s+8>>2]=p+1056;H[s+4>>2]=p+528;H[s>>2]=p;n=n+8|0;p=p+4224|0;k=k+8|0;if((r|0)!=(k|0)){continue}break}if(!j){break r}}while(1){H[(n<<2)+b>>2]=p;n=n+1|0;p=p+528|0;u=u+1|0;if((j|0)!=(u|0)){continue}break}}u=b;r=0;s=H[(H[h+76>>2]+N(l,5644)|0)+5584>>2];p=H[m+24>>2];b=H[h+24>>2];k=(l>>>0)/(b>>>0)|0;b=H[h+4>>2]+N(H[h+12>>2],l-N(b,k)|0)|0;n=H[m>>2];H[t+20>>2]=b>>>0>n>>>0?b:n;n=b+H[h+12>>2]|0;b=b>>>0>n>>>0?-1:n;n=H[m+8>>2];H[t+16>>2]=b>>>0<n>>>0?b:n;b=H[h+8>>2]+N(k,H[h+16>>2])|0;k=H[m+4>>2];H[t+12>>2]=b>>>0>k>>>0?b:k;h=b+H[h+16>>2]|0;b=b>>>0>h>>>0?-1:h;h=H[m+12>>2];H[t+8>>2]=b>>>0<h>>>0?b:h;H[t+24>>2]=0;H[t+28>>2]=0;H[t+4>>2]=2147483647;H[t>>2]=2147483647;if(H[m+16>>2]){while(1){h=u?H[u+(r<<2)>>2]:0;b=H[p+4>>2];M=b-1|0;k=H[t+8>>2];j=M+k|0;n=0-!b|0;j=ve(j,k>>>0>j>>>0?n+1|0:n,b,0);k=H[p>>2];W=k-1|0;o=H[t+16>>2];z=W+o|0;l=0-!k|0;o=ve(z,o>>>0>z>>>0?l+1|0:l,k,0);V=M;M=H[t+12>>2];z=V+M|0;n=ve(z,z>>>0<M>>>0?n+1|0:n,b,0);b=H[t+20>>2];M=b+W|0;k=ve(M,b>>>0>M>>>0?l+1|0:l,k,0);b=H[s+4>>2];if(b>>>0>K[t+28>>2]){H[t+28>>2]=b;b=H[s+4>>2]}if(b){da=s+944|0;ka=s+812|0;ba=j-1|0;oa=0-!j|0;aa=o-1|0;la=0-!o|0;ga=n-1|0;ia=0-!n|0;C=k-1|0;ha=0-!k|0;o=0;while(1){k=o<<2;M=H[k+da>>2];W=H[k+ka>>2];n=0;if(h){H[h+4>>2]=M;H[h>>2]=W;n=h+8|0}b=b-1|0;h=W+b|0;s:{if(h>>>0>31){break s}k=H[p>>2];if(k>>>0>-1>>>h>>>0){break s}j=H[t+4>>2];h=k<<h;H[t+4>>2]=h>>>0>j>>>0?j:h}h=b+M|0;t:{if(h>>>0>31){break t}k=H[p+4>>2];if(k>>>0>-1>>>h>>>0){break t}j=H[t>>2];h=k<<h;H[t>>2]=h>>>0>j>>>0?j:h}h=0;k=b&31;if((b&63)>>>0>=32){l=1<<k;j=0}else{j=1<<k;l=j-1&1>>>32-k}ea=j;j=ba+ea|0;k=l;l=oa+k|0;A=j>>>0<ba>>>0?l+1|0:l;z=b&31;l=M&31;if((M&63)>>>0>=32){l=1<<l;V=0}else{V=1<<l;l=V-1&1>>>32-l}if((b&63)>>>0>=32){A=A>>>z|0}else{A=((1<<z)-1&A)<<32-z|j>>>z}j=V+A|0;ma=j-1|0;l=(j>>>0<V>>>0?l+1|0:l)-!j|0;j=M&31;z=k+ia|0;V=ga+ea|0;z=V>>>0<ga>>>0?z+1|0:z;if((M&63)>>>0>=32){j=l>>>j|0}else{j=((1<<j)-1&l)<<32-j|ma>>>j}l=j;j=b&31;if((b&63)>>>0>=32){j=z>>>j|0}else{j=((1<<j)-1&z)<<32-j|V>>>j}z=(j|0)!=(A|0)?l-(j>>>M|0)&-1>>>M:0;j=k+la|0;l=j+1|0;V=j;j=aa+ea|0;A=j>>>0<aa>>>0?l:V;M=b&31;l=W&31;if((W&63)>>>0>=32){l=1<<l;V=0}else{V=1<<l;l=V-1&1>>>32-l}if((b&63)>>>0>=32){A=A>>>M|0}else{A=((1<<M)-1&A)<<32-M|j>>>M}j=V+A|0;ma=j-1|0;l=(j>>>0<V>>>0?l+1|0:l)-!j|0;j=W&31;k=k+ha|0;ea=C+ea|0;M=ea>>>0<C>>>0?k+1|0:k;k=b&31;if((W&63)>>>0>=32){j=l>>>j|0}else{j=((1<<j)-1&l)<<32-j|ma>>>j}if((b&63)>>>0>=32){k=M>>>k|0}else{k=((1<<k)-1&M)<<32-k|ea>>>k}k=(k|0)!=(A|0)?j-(k>>>W|0)&-1>>>W:0;if(n){H[n+4>>2]=z;H[n>>2]=k;h=n+8|0}k=N(k,z);if(k>>>0>K[t+24>>2]){H[t+24>>2]=k}o=o+1|0;if(o>>>0<K[s+4>>2]){continue}break}}p=p+52|0;s=s+1080|0;r=r+1|0;if(r>>>0<K[m+16>>2]){continue}break}}M=$+1|0;r=H[t+28>>2];l=H[t+24>>2];H[g+4>>2]=0;b=H[J+8>>2]+1|0;W=N(l,w);o=N(W,r);re(b,0,o);u:{if(!qa){b=N(b,o);H[g+8>>2]=b;b=Ea(b,2);H[g+4>>2]=b;if(b){break u}}Ca(v);Ca(u);b=H[g+4>>2];if(b){Ca(b);H[g+4>>2]=0}if(!M){b=g;break o}b=0;k=g;while(1){p=H[k+200>>2];if(p){m=0;n=H[k+196>>2];if(n){while(1){h=H[p+12>>2];if(h){Ca(h);H[p+12>>2]=0;n=H[k+196>>2]}p=p+16|0;m=m+1|0;if(n>>>0>m>>>0){continue}break}p=H[k+200>>2]}Ca(p);H[k+200>>2]=0}k=k+240|0;h=(b|0)==($|0);b=b+1|0;if(!h){continue}break}b=g;break o}j=H[m+24>>2];z=H[t+20>>2];H[g+204>>2]=z;ea=H[t+12>>2];H[g+208>>2]=ea;ba=H[t+16>>2];H[g+212>>2]=ba;aa=H[t+8>>2];H[g+216>>2]=aa;H[g+12>>2]=o;H[g+16>>2]=W;H[g+20>>2]=l;q=1;H[g+24>>2]=1;if(w){k=H[g+200>>2];s=0;b=j;while(1){p=H[u+(s<<2)>>2];H[k>>2]=H[b>>2];H[k+4>>2]=H[b+4>>2];h=H[k+8>>2];v:{if(!h){break v}m=H[k+12>>2];if((h|0)!=1){ga=h&1;h=h&-2;n=0;while(1){H[m>>2]=H[p>>2];H[m+4>>2]=H[p+4>>2];H[m+8>>2]=H[p+8>>2];H[m+12>>2]=H[p+12>>2];H[m+16>>2]=H[p+16>>2];H[m+20>>2]=H[p+20>>2];H[m+24>>2]=H[p+24>>2];H[m+28>>2]=H[p+28>>2];m=m+32|0;p=p+32|0;n=n+2|0;if((h|0)!=(n|0)){continue}break}if(!ga){break v}}H[m>>2]=H[p>>2];H[m+4>>2]=H[p+4>>2];H[m+8>>2]=H[p+8>>2];H[m+12>>2]=H[p+12>>2]}b=b+52|0;k=k+16|0;s=s+1|0;if((w|0)!=(s|0)){continue}break}}if(M>>>0>1){h=g;while(1){H[h+456>>2]=aa;H[h+452>>2]=ba;H[h+448>>2]=ea;H[h+444>>2]=z;H[h+264>>2]=1;H[h+260>>2]=l;H[h+256>>2]=W;H[h+252>>2]=o;if(w){k=H[h+440>>2];s=0;b=j;while(1){p=H[u+(s<<2)>>2];H[k>>2]=H[b>>2];H[k+4>>2]=H[b+4>>2];n=H[k+8>>2];w:{if(!n){break w}m=H[k+12>>2];if((n|0)!=1){M=n&1;ga=n&-2;n=0;while(1){H[m>>2]=H[p>>2];H[m+4>>2]=H[p+4>>2];H[m+8>>2]=H[p+8>>2];H[m+12>>2]=H[p+12>>2];H[m+16>>2]=H[p+16>>2];H[m+20>>2]=H[p+20>>2];H[m+24>>2]=H[p+24>>2];H[m+28>>2]=H[p+28>>2];m=m+32|0;p=p+32|0;n=n+2|0;if((ga|0)!=(n|0)){continue}break}if(!M){break w}}H[m>>2]=H[p>>2];H[m+4>>2]=H[p+4>>2];H[m+8>>2]=H[p+8>>2];H[m+12>>2]=H[p+12>>2]}b=b+52|0;k=k+16|0;s=s+1|0;if((w|0)!=(s|0)){continue}break}}b=H[h+8>>2];H[h+244>>2]=H[h+4>>2];H[h+248>>2]=b;b=(q|0)!=($|0);h=h+240|0;q=q+1|0;if(b){continue}break}}Ca(v);Ca(u);b=H[J+420>>2];x:{if(I[J+5640|0]&4){if((b|0)==-1){break x}m=J+424|0;h=H[J+8>>2];n=0;p=g;while(1){q=H[m+36>>2];H[p+44>>2]=1;H[p+84>>2]=q;H[p+48>>2]=H[m>>2];q=H[m+4>>2];H[p+68>>2]=0;H[p+72>>2]=0;H[p+52>>2]=q;H[p+60>>2]=H[m+12>>2];H[p+64>>2]=H[m+16>>2];q=H[m+8>>2];H[p+76>>2]=l;H[p+56>>2]=h>>>0>q>>>0?q:h;m=m+148|0;p=p+240|0;q=(b|0)==(n|0);n=n+1|0;if(!q){continue}break}break x}if((b|0)==-1){break x}h=H[J+8>>2];q=H[J+4>>2];p=g;if(b){k=b+1&-2;u=0;while(1){H[p+68>>2]=0;H[p+72>>2]=0;H[p+52>>2]=0;H[p+44>>2]=1;H[p+48>>2]=0;H[p+84>>2]=q;H[p+60>>2]=r;H[p+324>>2]=q;H[p+76>>2]=l;H[p+56>>2]=h;H[p+308>>2]=0;H[p+312>>2]=0;H[p+292>>2]=0;H[p+284>>2]=1;H[p+288>>2]=0;H[p+300>>2]=r;H[p+296>>2]=h;H[p+316>>2]=l;H[p+64>>2]=H[p+196>>2];H[p+304>>2]=H[p+436>>2];p=p+480|0;u=u+2|0;if((k|0)!=(u|0)){continue}break}if(b&1){break x}}H[p+68>>2]=0;H[p+72>>2]=0;H[p+52>>2]=0;H[p+44>>2]=1;H[p+48>>2]=0;H[p+84>>2]=q;H[p+60>>2]=r;H[p+76>>2]=l;H[p+56>>2]=h;H[p+64>>2]=H[p+196>>2]}q=g;break n}Ca(v)}Ca(b)}na=t+32|0;g=q;y:{z:{if(!g){break z}M=_+1|0;s=E;v=g;A:{B:{while(1){if(H[v+84>>2]==-1){break A}l=Fa(H[S+16>>2]<<2);if(!l){break A}b=H[S+16>>2]<<2;if(b){y(l,1,b)}if(Vb(v)){while(1){k=H[Z+20>>2];C:{D:{if(K[v+40>>2]>=K[R+12>>2]){break D}b=H[v+32>>2];h=N(H[v+28>>2],76)+k|0;if(b>>>0>=K[h+24>>2]){break D}h=H[h+28>>2]+N(b,152)|0;if(!H[h+24>>2]){break D}q=h+28|0;j=0;E:{while(1){p=q+N(j,36)|0;b=H[p+20>>2]+N(H[v+36>>2],40)|0;if(!xb(D,H[v+28>>2],H[v+32>>2],H[p+16>>2],H[b>>2],H[b+4>>2],H[b+8>>2],H[b+12>>2])){j=j+1|0;if(j>>>0<K[h+24>>2]){continue}break E}break}H[l+(H[v+28>>2]<<2)>>2]=0;H[x+136>>2]=0;if(!Ub(H[Y+4>>2],H[Z+20>>2],R,v,x+140|0,s,x+136|0,i,f)){break B}j=H[v+32>>2];o=H[v+28>>2];m=H[x+136>>2];if(H[x+140>>2]){H[x+136>>2]=0;W=H[(H[Z+20>>2]+N(o,76)|0)+28>>2]+N(j,152)|0;k=H[W+24>>2];if(k){w=i-m|0;J=i+s|0;o=W+28|0;t=0;r=0;z=m+s|0;u=z;while(1){F:{if(H[o+8>>2]==H[o>>2]|H[o+12>>2]==H[o+4>>2]){break F}b=H[o+20>>2]+N(H[v+36>>2],40)|0;$=N(H[b+20>>2],H[b+16>>2]);if(!$){break F}k=H[b+24>>2];h=0;while(1){p=H[k+36>>2];if(p){G:{if(r|H[k+64>>2]){H[k+52>>2]=0;j=1;b=64;break G}j=H[k>>2];b=H[k+40>>2];H:{if(b){j=N(b,24)+j|0;if(H[j-20>>2]!=H[j-12>>2]){j=j-24|0;break H}b=b+1|0}else{b=1}H[k+40>>2]=b}b=H[j+20>>2];I:{J:{if(b>>>0>(u^-1)>>>0){break J}q=j+20|0;while(1){if(J>>>0<b+u>>>0){break J}n=H[k+4>>2];r=H[k+52>>2];if((r|0)!=H[k+56>>2]){q=p}else{b=r<<1|1;n=Ha(n,b<<3);if(!n){Ba(f,1,1024,0);break B}H[k+56>>2]=b;H[k+4>>2]=n;r=H[k+52>>2];b=H[q>>2];q=H[k+36>>2]}p=(r<<3)+n|0;H[p+4>>2]=b;H[p>>2]=u;H[k+52>>2]=r+1;H[j>>2]=H[j>>2]+b;n=H[j+16>>2];r=n+H[j+4>>2]|0;H[j+4>>2]=r;p=q-n|0;H[k+36>>2]=p;H[j+8>>2]=r;u=b+u|0;r=0;if((n|0)==(q|0)){break I}H[k+40>>2]=H[k+40>>2]+1;q=j+44|0;b=H[j+44>>2];j=j+24|0;if((u^-1)>>>0>=b>>>0){continue}break}}q=H[v+28>>2];p=H[v+32>>2];n=H[v+36>>2];if(H[H[Y+4>>2]+104>>2]){H[x+120>>2]=q;H[x+116>>2]=p;H[x+112>>2]=t;H[x+108>>2]=n;H[x+104>>2]=h;H[x+100>>2]=w;H[x+96>>2]=b;Ba(f,1,14693,x+96|0);break B}H[x+88>>2]=q;H[x+84>>2]=p;H[x+80>>2]=t;H[x+76>>2]=n;H[x+72>>2]=h;H[x+68>>2]=w;H[x+64>>2]=b;Ba(f,2,14693,x- -64|0);H[k+52>>2]=0;H[k+64>>2]=1;r=1}j=H[k+40>>2];b=44}H[b+k>>2]=j}k=k+68|0;h=h+1|0;if(($|0)!=(h|0)){continue}break}k=H[W+24>>2]}o=o+36|0;t=t+1|0;if(t>>>0<k>>>0){continue}break}j=H[v+32>>2];o=H[v+28>>2];b=r?w:u-z|0}else{b=0}m=b+m|0}h=H[S+24>>2]+N(o,52)|0;b=H[h+36>>2];H[h+36>>2]=b>>>0<j>>>0?j:b;break C}k=H[Z+20>>2]}H[x+136>>2]=0;if(!Ub(H[Y+4>>2],k,R,v,x+140|0,s,x+136|0,i,f)){break B}o=H[v+28>>2];m=H[x+136>>2];if(!H[x+140>>2]){break C}J=H[v+32>>2];b=H[(H[Z+20>>2]+N(o,76)|0)+28>>2]+N(J,152)|0;z=H[b+24>>2];if(!z){break C}w=i-m|0;n=b+28|0;W=H[v+36>>2];j=0;r=0;K:{L:{while(1){M:{if(H[n+8>>2]==H[n>>2]|H[n+12>>2]==H[n+4>>2]){break M}b=H[n+20>>2]+N(W,40)|0;$=N(H[b+20>>2],H[b+16>>2]);if(!$){break M}p=H[b+24>>2];t=0;while(1){b=H[p+36>>2];if(b){k=H[p>>2];h=H[p+40>>2];N:{if(h){k=N(h,24)+k|0;if(H[k-20>>2]!=H[k-12>>2]){k=k-24|0;break N}h=h+1|0}else{h=1}H[p+40>>2]=h}u=H[k+20>>2];j=u+j|0;if(j>>>0<u>>>0|j>>>0>w>>>0){break K}while(1){O:{u=H[k+16>>2];H[k+4>>2]=u+H[k+4>>2];q=b-u|0;if((b|0)==(u|0)){break O}h=h+1|0;H[p+40>>2]=h;u=H[k+44>>2];j=u+j|0;if(j>>>0<u>>>0){break L}k=k+24|0;b=q;if(j>>>0<=w>>>0){continue}break L}break}H[p+36>>2]=q}p=p+68|0;t=t+1|0;if(($|0)!=(t|0)){continue}break}}n=n+36|0;r=r+1|0;if((z|0)!=(r|0)){continue}break}m=j+m|0;break C}H[p+36>>2]=q}if(!H[H[Y+4>>2]+104>>2]){H[x+24>>2]=o;H[x+20>>2]=J;H[x+16>>2]=r;H[x+12>>2]=W;H[x+8>>2]=t;H[x+4>>2]=w;H[x>>2]=u;Ba(f,2,14608,x);o=H[v+28>>2];m=m+w|0;break C}H[x+56>>2]=o;H[x+52>>2]=J;H[x+48>>2]=r;H[x+44>>2]=W;H[x+40>>2]=t;H[x+36>>2]=w;H[x+32>>2]=u;Ba(f,1,14608,x+32|0);break B}P:{if(!H[l+(o<<2)>>2]){break P}b=H[S+24>>2]+N(o,52)|0;if(H[b+36>>2]){break P}H[b+36>>2]=H[(H[Z+20>>2]+N(o,76)|0)+24>>2]-1}i=i-m|0;s=m+s|0;if(Vb(v)){continue}break}}Ca(l);v=v+240|0;Q=Q+1|0;if(Q>>>0<=K[R+420>>2]){continue}break}yb(g,M);H[ra+8>>2]=s-E;b=1;break y}yb(g,M);Ca(l);break z}yb(g,M)}b=0}na=x+144|0;db(Y);if(!b){break b}X=H[H[D+32>>2]+5584>>2];j=H[H[D+20>>2]>>2];C=H[j+20>>2];H[ra+12>>2]=1;s=0;b=H[D+32>>2];l=H[X+16>>2]>>>4&1&H[b+12>>2]==H[b+8>>2];A=H[j+16>>2];Q:{if(!A){break Q}while(1){b=H[D+68>>2];if(!(H[b+(s<<2)>>2]?0:b)){u=ra+12|0;A=0;b=H[C+24>>2];R:{if(!b){break R}m=H[D+44>>2];while(1){q=H[C+28>>2]+N(A,152)|0;p=H[q+24>>2];if(p){o=q+28|0;b=H[q+20>>2];v=H[q+16>>2];r=0;while(1){if(N(b,v)){n=o+N(r,36)|0;k=0;while(1){g=H[n+20>>2]+N(k,40)|0;i=xb(D,H[C+16>>2],A,H[n+16>>2],H[g>>2],H[g+4>>2],H[g+8>>2],H[g+12>>2]);h=H[g+16>>2];p=H[g+20>>2];b=N(h,p);S:{if(i){if(!b){break S}h=0;while(1){i=H[g+24>>2]+N(h,68)|0;T:{if(!xb(D,H[C+16>>2],A,H[n+16>>2],H[i+8>>2],H[i+12>>2],H[i+16>>2],H[i+20>>2])){b=H[i+60>>2];if(!b){break T}Ca(b);H[i+60>>2]=0;break T}if(!H[D+64>>2]){if(H[i+60>>2]|H[i+16>>2]==H[i+8>>2]|H[i+20>>2]==H[i+12>>2]){break T}}b=Ea(1,44);if(!b){H[ra+12>>2]=0;break R}p=H[D+64>>2];H[b+36>>2]=0;H[b+28>>2]=u;H[b+20>>2]=X;H[b+16>>2]=C;H[b+12>>2]=n;H[b+8>>2]=i;H[b+4>>2]=A;H[b>>2]=p;H[b+40>>2]=l;H[b+32>>2]=f;H[b+24>>2]=H[m+4>>2]>1;eb(m,14,b);if(!H[ra+12>>2]){break R}}h=h+1|0;if(h>>>0<N(H[g+20>>2],H[g+16>>2])>>>0){continue}break}break S}if(!b){break S}v=0;while(1){b=H[g+24>>2]+N(v,68)|0;i=H[b+60>>2];if(i){Ca(i);H[b+60>>2]=0;p=H[g+20>>2];h=H[g+16>>2]}v=v+1|0;if(v>>>0<N(h,p)>>>0){continue}break}}k=k+1|0;b=H[q+20>>2];v=H[q+16>>2];if(k>>>0<N(b,v)>>>0){continue}break}p=H[q+24>>2]}r=r+1|0;if(r>>>0<p>>>0){continue}break}b=H[C+24>>2]}A=A+1|0;if(A>>>0<b>>>0){continue}break}}if(!H[ra+12>>2]){break Q}A=H[j+16>>2]}X=X+1080|0;C=C+76|0;s=s+1|0;if(A>>>0>s>>>0){continue}break}}X=0;Sa(H[D+44>>2]);if(!H[ra+12>>2]){break b}U:{if(H[D+64>>2]){break U}s=H[D+24>>2];if(!H[s+16>>2]){break U}C=0;while(1){b=H[H[H[D+20>>2]>>2]+20>>2]+N(C,76)|0;g=H[b+28>>2]+N(H[(H[s+24>>2]+N(C,52)|0)+36>>2],152)|0;i=H[g+136>>2];h=H[g+144>>2];q=H[g+140>>2];g=H[g+148>>2];Ca(H[b+52>>2]);H[b+52>>2]=0;V:{p=H[D+68>>2];if((h|0)==(i|0)|(g|0)==(q|0)|(H[p+(C<<2)>>2]?0:p)){break V}g=g-q|0;i=h-i|0;re(g,0,i);if(qa){Ba(f,1,2982,0);break b}g=N(g,i);if(g>>>0>=1073741824){Ba(f,1,2982,0);break b}i=b;b=Ia(g<<2);H[i+52>>2]=b;if(b){break V}Ba(f,1,2982,0);break b}C=C+1|0;s=H[D+24>>2];if(C>>>0<K[s+16>>2]){continue}break}}s=H[D+32>>2];v=H[H[D+20>>2]>>2];if(H[v+16>>2]){C=H[v+20>>2];s=H[s+5584>>2];A=H[H[D+24>>2]+24>>2];p=0;while(1){W:{b=H[D+68>>2];if(H[b+(p<<2)>>2]?0:b){break W}j=H[A+36>>2]+1|0;if(H[s+20>>2]==1){Y=j;b=0;_=na-32|0;na=_;X:{Y:{if(H[D+64>>2]){g=1;if((j|0)==1){break X}k=H[C+28>>2];b=k+N(H[C+24>>2],152)|0;h=H[b-144>>2];q=H[b-152>>2];if((h|0)==(q|0)){break X}n=j-1|0;b=0;m=H[D+44>>2];l=H[m+4>>2];i=k;Z:{if((j|0)!=2){j=n&1;r=n&-2;g=0;while(1){u=H[i+160>>2]-H[i+152>>2]|0;b=b>>>0>u>>>0?b:u;u=H[i+164>>2]-H[i+156>>2]|0;b=b>>>0>u>>>0?b:u;u=H[i+312>>2]-H[i+304>>2]|0;b=b>>>0>u>>>0?b:u;u=H[i+316>>2]-H[i+308>>2]|0;b=b>>>0>u>>>0?b:u;i=i+304|0;g=g+2|0;if((r|0)!=(g|0)){continue}break}if(!j){break Z}}g=H[i+160>>2]-H[i+152>>2]|0;b=b>>>0>g>>>0?b:g;g=H[i+164>>2]-H[i+156>>2]|0;b=b>>>0>g>>>0?b:g}g=0;if(b>>>0>134217727){break X}i=H[k+4>>2];u=H[k+12>>2];t=H[k>>2];E=H[k+8>>2];o=b<<5;j=ob(o);H[_+16>>2]=j;if(!j){break X}r=h-q|0;g=u-i|0;q=E-t|0;H[_>>2]=j;while(1){u=H[C+36>>2];h=g;H[_+8>>2]=g;b=q;H[_+24>>2]=b;g=H[k+156>>2];i=H[k+164>>2];q=H[k+160>>2];t=H[k+152>>2];H[_+28>>2]=(t|0)%2;q=q-t|0;H[_+20>>2]=q-b;x=(l|0)<2;g=i-g|0;_:{if(!(!x&g>>>0>1)){i=0;if(!g){break _}while(1){$b(_+16|0,u+(N(i,r)<<2)|0);i=i+1|0;if((i|0)!=(g|0)){continue}break}break _}t=g>>>0<l>>>0?g:l;Y=t-1|0;E=(g>>>0)/(t>>>0)|0;b=0;while(1){i=Fa(36);if(!i){break Y}w=H[_+28>>2];H[i+8>>2]=H[_+24>>2];H[i+12>>2]=w;w=H[_+20>>2];H[i>>2]=H[_+16>>2];H[i+4>>2]=w;H[i+24>>2]=u;H[i+20>>2]=r;H[i+16>>2]=q;H[i+28>>2]=N(b,E);w=(b|0)==(Y|0);b=b+1|0;H[i+32>>2]=w?g:N(E,b);w=ob(o);H[i>>2]=w;if(!w){g=0;Sa(m);Ca(i);Ca(j);break X}eb(m,10,i);if((b|0)!=(t|0)){continue}break}Sa(m)}H[_+4>>2]=g-h;H[_+12>>2]=H[k+156>>2]%2;$:{if(!(!x&q>>>0>1)){b=8;i=0;if(q>>>0>=8){while(1){nb(_,u+(i<<2)|0,r,8);i=b;b=b+8|0;if(q>>>0>=b>>>0){continue}break}}if(i>>>0>=q>>>0){break $}nb(_,u+(i<<2)|0,r,q-i|0);break $}h=l>>>0>q>>>0?q:l;E=h-1|0;t=(q>>>0)/(h>>>0)|0;b=0;while(1){i=Fa(36);if(!i){break Y}x=H[_+12>>2];H[i+8>>2]=H[_+8>>2];H[i+12>>2]=x;x=H[_+4>>2];H[i>>2]=H[_>>2];H[i+4>>2]=x;H[i+24>>2]=u;H[i+20>>2]=r;H[i+16>>2]=g;H[i+28>>2]=N(b,t);x=(b|0)==(E|0);b=b+1|0;H[i+32>>2]=x?q:N(t,b);x=ob(o);H[i>>2]=x;if(!x){g=0;Sa(m);Ca(i);Ca(j);break X}eb(m,11,i);if((b|0)!=(h|0)){continue}break}Sa(m)}k=k+152|0;n=n-1|0;if(n){continue}break}g=1;Ca(j);break X}g=1;k=H[C+28>>2];ma=k+N(Y,152)|0;gb=ma-152|0;if(H[gb>>2]==H[ma-144>>2]){break X}hb=ma-148|0;if(H[hb>>2]==H[ma-140>>2]){break X}h=H[k+4>>2];q=H[k+12>>2];n=H[k>>2];j=H[k+8>>2];w=H[C+68>>2];M=H[C+64>>2];W=H[C+60>>2];J=H[C+56>>2];oa=_b(C,Y);if(!oa){g=0;break X}aa:{ba:{if((Y|0)!=1){i=k;ca:{if((Y|0)!=2){g=Y-1|0;m=g&1;l=g&-2;g=0;while(1){r=H[i+160>>2]-H[i+152>>2]|0;b=b>>>0>r>>>0?b:r;r=H[i+164>>2]-H[i+156>>2]|0;b=b>>>0>r>>>0?b:r;r=H[i+312>>2]-H[i+304>>2]|0;b=b>>>0>r>>>0?b:r;r=H[i+316>>2]-H[i+308>>2]|0;b=b>>>0>r>>>0?b:r;i=i+304|0;g=g+2|0;if((l|0)!=(g|0)){continue}break}if(!m){break ca}}g=H[i+160>>2]-H[i+152>>2]|0;b=b>>>0>g>>>0?b:g;g=H[i+164>>2]-H[i+156>>2]|0;b=b>>>0>g>>>0?b:g}if(b>>>0>=268435456){break aa}o=ob(b<<4);if(!o){break aa}da:{if(!Y){break da}u=q-h|0;m=j-n|0;ib=o+28|0;$=o+24|0;Ra=o+16|0;ha=o+4|0;sa=1;ea:while(1){b=H[k+156>>2];ja=(b|0)%2|0;g=H[k+152>>2];pa=(g|0)%2|0;Z=H[k+164>>2]-b|0;ka=Z-u|0;R=H[k+160>>2]-g|0;da=R-m|0;i=J;g=i;t=W;q=t;b=M;fa=b;h=w;n=h;j=H[C+20>>2];fa:{if((j|0)==(sa|0)){break fa}r=j-sa|0;q=0;g=0;if(i){b=r&31;if((r&63)>>>0>=32){l=-1<<b;g=0}else{g=-1<<b;l=g|(1<<b)-1&-1>>>32-b}b=i+(g^-1)|0;g=l^-1;i=b>>>0<J>>>0?g+1|0:g;g=r&31;if((r&63)>>>0>=32){g=i>>>g|0}else{g=((1<<g)-1&i)<<32-g|b>>>g}}if(W){b=r&31;if((r&63)>>>0>=32){l=-1<<b;i=0}else{i=-1<<b;l=i|(1<<b)-1&-1>>>32-b}b=W+(i^-1)|0;i=l^-1;h=b>>>0<W>>>0?i+1|0:i;i=r&31;if((r&63)>>>0>=32){q=h>>>i|0}else{q=((1<<i)-1&h)<<32-i|b>>>i}}h=0;b=0;if(M){b=r&31;if((r&63)>>>0>=32){l=-1<<b;i=0}else{i=-1<<b;l=i|(1<<b)-1&-1>>>32-b}b=M+(i^-1)|0;i=l^-1;n=b>>>0<M>>>0?i+1|0:i;i=r&31;if((r&63)>>>0>=32){b=n>>>i|0}else{b=((1<<i)-1&n)<<32-i|b>>>i}}if(w){i=r&31;if((r&63)>>>0>=32){l=-1<<i;h=0}else{h=-1<<i;l=h|(1<<i)-1&-1>>>32-i}i=w+(h^-1)|0;h=l^-1;n=i>>>0<w>>>0?h+1|0:h;h=r&31;if((r&63)>>>0>=32){h=n>>>h|0}else{h=((1<<h)-1&n)<<32-h|i>>>h}}fa=0;i=0;E=1<<r-1;if(E>>>0<J>>>0){i=r&31;if((r&63)>>>0>=32){l=-1<<i;n=0}else{n=-1<<i;l=n|(1<<i)-1&-1>>>32-i}n=n^-1;i=n+(J-E|0)|0;j=l^-1;j=i>>>0<n>>>0?j+1|0:j;n=r&31;if((r&63)>>>0>=32){i=j>>>n|0}else{i=((1<<n)-1&j)<<32-n|i>>>n}}if(E>>>0<M>>>0){n=r&31;if((r&63)>>>0>=32){l=-1<<n;j=0}else{j=-1<<n;l=j|(1<<n)-1&-1>>>32-n}j=j^-1;n=j+(M-E|0)|0;l=l^-1;l=j>>>0>n>>>0?l+1|0:l;j=r&31;if((r&63)>>>0>=32){fa=l>>>j|0}else{fa=((1<<j)-1&l)<<32-j|n>>>j}}n=0;t=0;if(E>>>0<W>>>0){j=r&31;if((r&63)>>>0>=32){l=-1<<j;t=0}else{t=-1<<j;l=t|(1<<j)-1&-1>>>32-j}t=t^-1;j=t+(W-E|0)|0;l=l^-1;t=j>>>0<t>>>0?l+1|0:l;l=r&31;if((r&63)>>>0>=32){t=t>>>l|0}else{t=((1<<l)-1&t)<<32-l|j>>>l}}if(w>>>0<=E>>>0){break fa}n=r&31;if((r&63)>>>0>=32){l=-1<<n;j=0}else{j=-1<<n;l=j|(1<<n)-1&-1>>>32-n}j=j^-1;n=j+(w-E|0)|0;l=l^-1;l=j>>>0>n>>>0?l+1|0:l;j=r&31;if((r&63)>>>0>=32){n=l>>>j|0}else{n=((1<<j)-1&l)<<32-j|n>>>j}}j=H[k+180>>2];l=fa-j|0;l=l>>>0<=fa>>>0?l:0;r=l+2|0;l=l>>>0>r>>>0?-1:r;la=l>>>0<da>>>0?l:da;l=H[k+216>>2];r=b-l|0;b=b>>>0>=r>>>0?r:0;r=b+2|0;b=b>>>0>r>>>0?-1:r;ia=b>>>0<m>>>0?b:m;b=(pa?la:ia)<<1;r=(pa?ia:la)<<1|1;va=b>>>0>r>>>0?b:r;b=va>>>0<R>>>0;j=i-j|0;i=i>>>0>=j>>>0?j:0;j=i-2|0;r=i>>>0>=j>>>0?j:0;i=g-l|0;g=g>>>0>=i>>>0?i:0;i=g-2|0;i=g>>>0>=i>>>0?i:0;g=(pa?r:i)<<1;l=(pa?i:r)<<1|1;x=g>>>0<l>>>0;E=H[k+184>>2];j=q-E|0;q=j>>>0<=q>>>0?j:0;j=q-2|0;q=j>>>0<=q>>>0?j:0;ea=q;S=H[k+220>>2];j=t-S|0;j=j>>>0<=t>>>0?j:0;t=j-2|0;j=j>>>0>=t>>>0?t:0;ba=j;t=h-E|0;h=h>>>0>=t>>>0?t:0;t=h+2|0;h=h>>>0>t>>>0?-1:t;E=h>>>0<u>>>0?h:u;Q=E;h=n-S|0;h=h>>>0<=n>>>0?h:0;n=h+2|0;h=h>>>0>n>>>0?-1:n;V=h>>>0<ka>>>0?h:ka;n=V;if(ja){ea=j;ba=q;Q=n;n=E}wa=b?va:R;l=x?g:l;kb=u+V|0;lb=j+u|0;if(Z){ta=o+(i<<3)|0;b=o+(da<<3)|0;xa=b-4|0;g=(i|0)<(da|0);Ua=g?ta+4|0:xa;ya=m-1|0;Wa=(la|0)<(ya|0)?la:ya;x=0;Xa=(m|0)>1|(da|0)>0;h=pa<<2;Ya=(ha-h|0)+(r<<3)|0;_a=h+ta|0;z=(da|0)>(ia|0)?ia:da;aa=i+1|0;$a=m+la|0;La=m+r|0;ab=o+(l<<2)|0;Ma=!m&(da|0)==1;h=o+(m<<3)|0;ga=h-8|0;Ga=h-4|0;Ka=b-8|0;Na=o+(wa<<2)|0;bb=Na-4|0;cb=(o+((g?i:da)<<3)|0)-4|0;while(1){ga:{if(!(x>>>0<E>>>0&q>>>0<=x>>>0|x>>>0<kb>>>0&x>>>0>=lb>>>0)){S=x+1|0;break ga}if(R>>>0>va>>>0){H[bb>>2]=0;H[Na>>2]=0}S=x+1|0;Oa(oa,i,x,ia,S,_a,2,0);Oa(oa,La,x,$a,S,Ya,2,0);ha:{ia:{ja:{if(!pa){if(!Xa){break ha}if((i|0)>=(ia|0)){break ia}ka:{la:{if((i|0)>0){b=H[cb>>2];break la}b=H[ha>>2];g=b;if((i|0)<0){break ka}}g=b;b=H[Ua>>2]}H[ta>>2]=H[ta>>2]-((b+g|0)+2>>2);b=aa;h=b;g=i;if((b|0)>=(z|0)){break ja}while(1){b=g;g=h;h=o+(g<<3)|0;H[h>>2]=H[h>>2]-((H[(o+(b<<3)|0)+4>>2]+H[h+4>>2]|0)+2>>2);h=g+1|0;if((z|0)!=(h|0)){continue}break}b=z;break ja}ma:{if(!Ma){b=i;if((ia|0)<=(b|0)){break ma}while(1){g=o+(b<<3)|0;h=H[g+4>>2];t=Ka;na:{oa:{if((b|0)>=0){fa=H[((b|0)<(da|0)?g:Ka)>>2];b=b+1|0;break oa}fa=H[o>>2];if((b|0)!=-1){b=b+1|0;t=o;break na}b=0}if((b|0)>=(da|0)){break na}t=o+(b<<3)|0}H[g+4>>2]=h-((H[t>>2]+fa|0)+2>>2);if((b|0)<(ia|0)){continue}break}break ma}H[o>>2]=H[o>>2]/2;break ha}b=r;if((la|0)<=(b|0)){break ha}while(1){g=o+(b<<3)|0;h=H[g>>2];pa:{if((b|0)<0){t=H[ha>>2];fa=ha;break pa}t=H[((b|0)<(m|0)?g+4|0:Ga)>>2];fa=ha;if(!b){break pa}fa=(b|0)>(m|0)?Ga:g-4|0}H[g>>2]=h+(H[fa>>2]+t>>1);b=b+1|0;if((la|0)!=(b|0)){continue}break}break ha}if((b|0)>=(ia|0)){break ia}while(1){g=o+(b<<3)|0;t=H[g>>2];qa:{ra:{if((b|0)>0){h=H[(o+(((b|0)<(da|0)?b:da)<<3)|0)-4>>2];break ra}h=H[ha>>2];fa=ha;if((b|0)<0){break qa}}fa=xa;if((b|0)>=(da|0)){break qa}fa=(o+(b<<3)|0)+4|0}H[g>>2]=t-((H[fa>>2]+h|0)+2>>2);b=b+1|0;if((ia|0)!=(b|0)){continue}break}}if((r|0)>=(la|0)){break ha}b=r;if((ya|0)>(b|0)){while(1){g=o+(b<<3)|0;b=b+1|0;H[g+4>>2]=H[g+4>>2]+(H[o+(b<<3)>>2]+H[g>>2]>>1);if((b|0)<(Wa|0)){continue}break}}if((b|0)>=(la|0)){break ha}while(1){g=ga;t=b;sa:{ta:{if((b|0)>=0){h=H[((b|0)<(m|0)?o+(b<<3)|0:g)>>2];b=b+1|0;break ta}h=H[o>>2];if((t|0)!=-1){b=t+1|0;g=o;break sa}b=0}if((m|0)<=(b|0)){break sa}g=o+(b<<3)|0}t=o+(t<<3)|0;H[t+4>>2]=H[t+4>>2]+(H[g>>2]+h>>1);if((b|0)<(la|0)){continue}break}}if(!Za(oa,l,x,wa,S,ab,1,0)){break ba}}x=S;if((Z|0)!=(x|0)){continue}break}}k=k+152|0;b=Q<<1;g=n<<1|1;b=b>>>0>g>>>0?b:g;Ua=b>>>0<Z>>>0?b:Z;Q=o+(q<<5)|0;b=o+(ka<<5)|0;va=b-4|0;g=(q|0)<(ka|0);Wa=g?Q+28|0:va;ya=b-8|0;Xa=g?Q+24|0:ya;Ga=b-12|0;Ya=g?Q+20|0:Ga;Ka=b-16|0;_a=(q|0)<0?Ra:g?Q+16|0:Ka;xa=u-1|0;$a=(V|0)<(xa|0)?V:xa;i=o+((g?q:ka)<<5)|0;La=(q|0)<=0;ab=La?Ra:i-16|0;Ma=(ka|0)>0;Na=Ma|(u|0)>1;bb=Q+(ja<<4)|0;cb=(o+(4-(ja<<2)<<2)|0)+(j<<5)|0;n=(E|0)<(ka|0)?E:ka;r=q+1|0;g=ea<<1;h=ba<<1|1;mb=g>>>0<h>>>0?g:h;qb=o+(mb<<4)|0;rb=!u&(ka|0)==1;g=o+(u<<5)|0;S=g-20|0;z=g-24|0;ea=g-28|0;ba=g-32|0;aa=g-4|0;ga=g-8|0;da=g-12|0;la=g-16|0;ia=b-20|0;fa=b-24|0;pa=b-28|0;ta=b-32|0;sb=i-4|0;x=i-8|0;tb=i-12|0;while(1){ua:{va:{wa:{xa:{m=l;if(m>>>0<wa>>>0){b=wa-m|0;l=m+(b>>>0>=4?4:b)|0;Oa(oa,m,q,l,E,bb,1,8);Oa(oa,m,lb,l,kb,cb,1,8);if(!ja){if(!Na){break ua}if((q|0)>=(E|0)){break va}H[Q>>2]=H[Q>>2]-((H[ab>>2]+H[_a>>2]|0)+2>>2);ya:{if(!La){b=H[tb>>2];h=x;g=sb;break ya}b=H[o+20>>2];if((q|0)<0){break xa}h=$;g=ib}H[Q+4>>2]=H[Q+4>>2]-((H[Ya>>2]+b|0)+2>>2);H[Q+8>>2]=H[Q+8>>2]-((H[h>>2]+H[Xa>>2]|0)+2>>2);b=H[Wa>>2];g=H[g>>2];break wa}if(rb){H[o>>2]=H[o>>2]/2;H[o+4>>2]=H[o+4>>2]/2;H[o+8>>2]=H[o+8>>2]/2;H[o+12>>2]=H[o+12>>2]/2;break ua}g=q;if((E|0)>(g|0)){while(1){b=o+(g<<5)|0;za:{if((g|0)<0){h=H[o>>2];i=Ma|(g|0)!=-1;H[b+16>>2]=H[b+16>>2]-(((i?h:H[ta>>2])+h|0)+2>>2);h=H[ha>>2];H[b+20>>2]=H[b+20>>2]-(((i?h:H[pa>>2])+h|0)+2>>2);h=H[o+8>>2];H[b+24>>2]=H[b+24>>2]-(((i?h:H[fa>>2])+h|0)+2>>2);h=b;t=H[b+28>>2];b=H[o+12>>2];H[h+28>>2]=t-(((i?b:H[ia>>2])+b|0)+2>>2);g=g+1|0;break za}i=g+1|0;Aa:{if((i|0)<(ka|0)){g=o+(i<<5)|0;H[b+16>>2]=H[b+16>>2]-((H[b>>2]+H[g>>2]|0)+2>>2);H[b+20>>2]=H[b+20>>2]-((H[b+4>>2]+H[g+4>>2]|0)+2>>2);H[b+24>>2]=H[b+24>>2]-((H[b+8>>2]+H[g+8>>2]|0)+2>>2);H[b+28>>2]=H[b+28>>2]-((H[b+12>>2]+H[g+12>>2]|0)+2>>2);break Aa}h=H[b+16>>2];if((g|0)>=(ka|0)){H[b+16>>2]=h-((H[ta>>2]<<1)+2>>2);H[b+20>>2]=H[b+20>>2]-((H[pa>>2]<<1)+2>>2);H[b+24>>2]=H[b+24>>2]-((H[fa>>2]<<1)+2>>2);H[b+28>>2]=H[b+28>>2]-((H[ia>>2]<<1)+2>>2);break Aa}H[b+16>>2]=h-((H[b>>2]+H[ta>>2]|0)+2>>2);H[b+20>>2]=H[b+20>>2]-((H[b+4>>2]+H[pa>>2]|0)+2>>2);H[b+24>>2]=H[b+24>>2]-((H[b+8>>2]+H[fa>>2]|0)+2>>2);H[b+28>>2]=H[b+28>>2]-((H[b+12>>2]+H[ia>>2]|0)+2>>2)}g=i}if((E|0)!=(g|0)){continue}break}}g=j;if((V|0)<=(g|0)){break ua}while(1){b=o+(g<<5)|0;Ba:{if((g|0)<0){H[b>>2]=H[b>>2]+(H[o+16>>2]<<1>>1);H[b+4>>2]=H[b+4>>2]+(H[o+20>>2]<<1>>1);H[b+8>>2]=H[b+8>>2]+(H[o+24>>2]<<1>>1);H[b+12>>2]=H[b+12>>2]+(H[o+28>>2]<<1>>1);break Ba}i=H[b>>2];if(!g){h=(g|0)<(u|0);H[b>>2]=i+(H[o+16>>2]+H[(h?b+16|0:la)>>2]>>1);H[b+4>>2]=H[b+4>>2]+(H[o+20>>2]+H[(h?b+20|0:da)>>2]>>1);H[b+8>>2]=H[b+8>>2]+(H[o+24>>2]+H[(h?b+24|0:ga)>>2]>>1);H[b+12>>2]=H[b+12>>2]+(H[o+28>>2]+H[(h?b+28|0:aa)>>2]>>1);break Ba}if((g|0)<=(u|0)){h=(g|0)<(u|0);H[b>>2]=i+(H[b-16>>2]+H[(h?b+16|0:la)>>2]>>1);H[b+4>>2]=H[b+4>>2]+(H[b-12>>2]+H[(h?b+20|0:da)>>2]>>1);H[b+8>>2]=H[b+8>>2]+(H[b-8>>2]+H[(h?b+24|0:ga)>>2]>>1);H[b+12>>2]=H[b+12>>2]+(H[b-4>>2]+H[(h?b+28|0:aa)>>2]>>1);break Ba}H[b>>2]=i+(H[la>>2]<<1>>1);H[b+4>>2]=H[b+4>>2]+(H[da>>2]<<1>>1);H[b+8>>2]=H[b+8>>2]+(H[ga>>2]<<1>>1);H[b+12>>2]=H[b+12>>2]+(H[aa>>2]<<1>>1)}g=g+1|0;if((V|0)!=(g|0)){continue}break}break ua}m=R;u=Z;sa=sa+1|0;if((Y|0)!=(sa|0)){continue ea}break da}H[Q+4>>2]=H[Q+4>>2]-((b<<1)+2>>2);H[Q+8>>2]=H[Q+8>>2]-((H[$>>2]<<1)+2>>2);b=H[ib>>2];g=b}H[Q+12>>2]=H[Q+12>>2]-((b+g|0)+2>>2);i=q;b=r;g=b;if((b|0)<(n|0)){while(1){g=o+(b<<5)|0;i=o+(i<<5)|0;H[g>>2]=H[g>>2]-((H[i+16>>2]+H[g+16>>2]|0)+2>>2);H[g+4>>2]=H[g+4>>2]-((H[i+20>>2]+H[g+20>>2]|0)+2>>2);H[g+8>>2]=H[g+8>>2]-((H[i+24>>2]+H[g+24>>2]|0)+2>>2);H[g+12>>2]=H[g+12>>2]-((H[i+28>>2]+H[g+28>>2]|0)+2>>2);i=b;b=b+1|0;if((n|0)!=(b|0)){continue}break}g=n}if((g|0)>=(E|0)){break va}while(1){b=o+(g<<5)|0;i=(g|0)<(ka|0);Ca:{if((g|0)<=0){h=H[Ra>>2];if((g|0)>=0){H[b>>2]=H[b>>2]-((h+H[(i?b+16|0:Ka)>>2]|0)+2>>2);H[b+4>>2]=H[b+4>>2]-((H[o+20>>2]+H[(i?b+20|0:Ga)>>2]|0)+2>>2);H[b+8>>2]=H[b+8>>2]-((H[o+24>>2]+H[(i?b+24|0:ya)>>2]|0)+2>>2);H[b+12>>2]=H[b+12>>2]-((H[o+28>>2]+H[(i?b+28|0:va)>>2]|0)+2>>2);break Ca}H[b>>2]=H[b>>2]-((h<<1)+2>>2);H[b+4>>2]=H[b+4>>2]-((H[o+20>>2]<<1)+2>>2);H[b+8>>2]=H[b+8>>2]-((H[o+24>>2]<<1)+2>>2);H[b+12>>2]=H[b+12>>2]-((H[o+28>>2]<<1)+2>>2);break Ca}h=o+((i?g:ka)<<5)|0;t=H[h-16>>2];if(!i){H[b>>2]=H[b>>2]-((t+H[Ka>>2]|0)+2>>2);H[b+4>>2]=H[b+4>>2]-((H[h-12>>2]+H[Ga>>2]|0)+2>>2);H[b+8>>2]=H[b+8>>2]-((H[h-8>>2]+H[ya>>2]|0)+2>>2);H[b+12>>2]=H[b+12>>2]-((H[h-4>>2]+H[va>>2]|0)+2>>2);break Ca}H[b>>2]=H[b>>2]-((t+H[b+16>>2]|0)+2>>2);H[b+4>>2]=H[b+4>>2]-((H[h-12>>2]+H[b+20>>2]|0)+2>>2);H[b+8>>2]=H[b+8>>2]-((H[h-8>>2]+H[b+24>>2]|0)+2>>2);H[b+12>>2]=H[b+12>>2]-((H[h-4>>2]+H[b+28>>2]|0)+2>>2)}g=g+1|0;if((E|0)!=(g|0)){continue}break}}if((j|0)>=(V|0)){break ua}g=j;if((xa|0)>(g|0)){while(1){b=o+(g<<5)|0;H[b+16>>2]=H[b+16>>2]+(H[b+32>>2]+H[b>>2]>>1);H[b+20>>2]=H[b+20>>2]+(H[b+36>>2]+H[b+4>>2]>>1);H[b+24>>2]=H[b+24>>2]+(H[b+40>>2]+H[b+8>>2]>>1);H[b+28>>2]=H[b+28>>2]+(H[b+44>>2]+H[b+12>>2]>>1);g=g+1|0;if(($a|0)>(g|0)){continue}break}}if((g|0)>=(V|0)){break ua}while(1){b=o+(g<<5)|0;Da:{Ea:{Fa:{if((g|0)<0){i=H[o>>2];if((g|0)!=-1){break Fa}if((u|0)<=0){H[b+16>>2]=H[b+16>>2]+(i+H[ba>>2]>>1);H[b+20>>2]=H[b+20>>2]+(H[ea>>2]+H[o+4>>2]>>1);H[b+24>>2]=H[b+24>>2]+(H[z>>2]+H[o+8>>2]>>1);t=H[o+12>>2];i=H[S>>2];break Ea}break Fa}i=g+1|0;Ga:{if((i|0)<(u|0)){g=o+(i<<5)|0;H[b+16>>2]=H[b+16>>2]+(H[g>>2]+H[b>>2]>>1);H[b+20>>2]=H[b+20>>2]+(H[g+4>>2]+H[b+4>>2]>>1);H[b+24>>2]=H[b+24>>2]+(H[g+8>>2]+H[b+8>>2]>>1);H[b+28>>2]=H[b+28>>2]+(H[g+12>>2]+H[b+12>>2]>>1);break Ga}if((g|0)>=(u|0)){H[b+16>>2]=H[b+16>>2]+H[ba>>2];H[b+20>>2]=H[b+20>>2]+H[ea>>2];H[b+24>>2]=H[b+24>>2]+H[z>>2];H[b+28>>2]=H[b+28>>2]+H[S>>2];break Ga}H[b+16>>2]=H[b+16>>2]+(H[ba>>2]+H[b>>2]>>1);H[b+20>>2]=H[b+20>>2]+(H[ea>>2]+H[b+4>>2]>>1);H[b+24>>2]=H[b+24>>2]+(H[z>>2]+H[b+8>>2]>>1);H[b+28>>2]=H[b+28>>2]+(H[S>>2]+H[b+12>>2]>>1)}g=i;break Da}H[b+16>>2]=i+H[b+16>>2];H[b+20>>2]=H[b+20>>2]+H[o+4>>2];H[b+24>>2]=H[b+24>>2]+H[o+8>>2];t=H[o+12>>2];i=t}H[b+28>>2]=H[b+28>>2]+(i+t>>1);g=g+1|0}if((V|0)!=(g|0)){continue}break}}if(Za(oa,m,mb,l,Ua,qb,1,4)){continue}break}break}break ba}Ca(o);g=1}b=H[ma-16>>2];i=H[gb>>2];h=H[hb>>2];q=H[ma-8>>2];Oa(oa,b-i|0,H[ma-12>>2]-h|0,q-i|0,H[ma-4>>2]-h|0,H[C+52>>2],1,q-b|0);Va(oa);break X}Va(oa);Ca(o);g=0;break X}Va(oa);g=0;break X}g=0;Sa(m);Ca(j)}na=_+32|0;if(g){break W}break b}h=0;J=na+-64|0;na=J;Ha:{Ia:{if(H[D+64>>2]){r=H[C+28>>2];i=r+N(H[C+24>>2],152)|0;k=H[i-152>>2];o=1;x=H[D+44>>2];M=H[x+4>>2];if((j|0)==1){break Ha}t=j-1|0;b=r;Ja:{if((j|0)!=2){q=t&1;n=t&-2;g=0;while(1){j=H[b+160>>2]-H[b+152>>2]|0;h=h>>>0>j>>>0?h:j;j=H[b+164>>2]-H[b+156>>2]|0;h=h>>>0>j>>>0?h:j;j=H[b+312>>2]-H[b+304>>2]|0;h=h>>>0>j>>>0?h:j;j=H[b+316>>2]-H[b+308>>2]|0;h=h>>>0>j>>>0?h:j;b=b+304|0;g=g+2|0;if((n|0)!=(g|0)){continue}break}if(!q){break Ja}}g=H[b+160>>2]-H[b+152>>2]|0;g=g>>>0<h>>>0?h:g;b=H[b+164>>2]-H[b+156>>2]|0;h=b>>>0<g>>>0?g:b}o=0;if(h>>>0>134217727){break Ha}b=H[i-144>>2];g=H[r+4>>2];i=H[r+12>>2];n=H[r>>2];j=H[r+8>>2];$=h<<5;E=Ia($);H[J+32>>2]=E;if(!E){break Ha}q=i-g|0;i=j-n|0;g=M>>>1|0;ea=g>>>0<=2?2:g;u=b-k|0;aa=u<<5;ga=N(u,28);_=N(u,24);da=N(u,20);ka=u<<4;W=N(u,12);Z=u<<3;H[J>>2]=E;ba=E+32|0;b=H[C+36>>2];while(1){l=q;H[J+8>>2]=l;h=i;H[J+40>>2]=h;Y=H[r+156>>2];w=H[r+164>>2];n=H[r+160>>2];g=H[r+152>>2];H[J+56>>2]=0;H[J+52>>2]=h;H[J+48>>2]=0;R=(g|0)%2|0;H[J+44>>2]=R;i=n-g|0;j=i-h|0;H[J+60>>2]=j;H[J+36>>2]=j;S=(M|0)<2;q=w-Y|0;Ka:{if(!(!S&q>>>0>15)){o=0;k=b;if(q>>>0<8){break Ka}m=i&-2;Q=i&1;j=0;R=(n|0)==(g+1|0);while(1){g=J+32|0;zb(g,k,u,8);Ta(g);if(i){h=0;o=0;La:{if(!R){while(1){g=(h<<2)+k|0;n=E+(h<<5)|0;L[g>>2]=L[n>>2];z=u<<2;L[z+g>>2]=L[n+4>>2];L[g+Z>>2]=L[n+8>>2];L[g+W>>2]=L[n+12>>2];n=h|1;g=(n<<2)+k|0;n=E+(n<<5)|0;L[g>>2]=L[n>>2];L[g+z>>2]=L[n+4>>2];L[g+Z>>2]=L[n+8>>2];L[g+W>>2]=L[n+12>>2];h=h+2|0;o=o+2|0;if((m|0)!=(o|0)){continue}break}if(!Q){break La}}g=(h<<2)+k|0;h=E+(h<<5)|0;L[g>>2]=L[h>>2];L[g+(u<<2)>>2]=L[h+4>>2];L[g+Z>>2]=L[h+8>>2];L[g+W>>2]=L[h+12>>2]}h=0;while(1){g=(h<<2)+k|0;n=E+(h<<5)|0;L[g+ka>>2]=L[n+16>>2];L[g+da>>2]=L[n+20>>2];L[g+_>>2]=L[n+24>>2];L[g+ga>>2]=L[n+28>>2];h=h+1|0;if((i|0)!=(h|0)){continue}break}}k=k+aa|0;g=j+15|0;o=j+8|0;j=o;if(g>>>0<q>>>0){continue}break}break Ka}g=q>>>3|0;m=g>>>0<M>>>0?g:M;Q=(q>>>0)/(m>>>0)&-8;o=q&-8;g=0;k=b;while(1){n=Fa(48);if(!n){break Ia}z=Ia($);H[n>>2]=z;if(!z){o=0;Sa(x);Ca(n);Ca(E);break Ha}H[n+40>>2]=k;H[n+36>>2]=u;H[n+32>>2]=i;H[n+28>>2]=j;H[n+24>>2]=0;H[n+20>>2]=h;H[n+16>>2]=0;H[n+12>>2]=R;H[n+8>>2]=h;H[n+4>>2]=j;V=o-N(g,Q)|0;g=g+1|0;z=(m|0)==(g|0)?V:Q;H[n+44>>2]=z;eb(x,12,n);k=(N(u,z)<<2)+k|0;if((g|0)!=(m|0)){continue}break}Sa(x)}Ma:{if(o>>>0>=q>>>0){break Ma}h=J+32|0;g=q-o|0;zb(h,k,u,g);Ta(h);if(!i){break Ma}R=g&-4;Q=g&3;m=0;z=Y+(o-w|0)>>>0>4294967292;while(1){j=(m<<2)+k|0;o=E+(m<<5)|0;h=0;n=0;g=0;Na:{if(!z){while(1){L[j+(N(h,u)<<2)>>2]=L[o+(h<<2)>>2];g=h|1;L[j+(N(g,u)<<2)>>2]=L[o+(g<<2)>>2];g=h|2;L[j+(N(g,u)<<2)>>2]=L[o+(g<<2)>>2];g=h|3;L[j+(N(g,u)<<2)>>2]=L[o+(g<<2)>>2];h=h+4|0;n=n+4|0;if((R|0)!=(n|0)){continue}break}g=h;if(!Q){break Na}}h=0;while(1){L[j+(N(g,u)<<2)>>2]=L[o+(g<<2)>>2];g=g+1|0;h=h+1|0;if((Q|0)!=(h|0)){continue}break}}m=m+1|0;if((m|0)!=(i|0)){continue}break}}n=q-l|0;H[J+4>>2]=n;g=H[r+156>>2];H[J+28>>2]=n;H[J+24>>2]=0;H[J+20>>2]=l;H[J+16>>2]=0;Q=(g|0)%2|0;H[J+12>>2]=Q;Oa:{if(!(!S&i>>>0>15)){g=b;if(i>>>0<8){break Oa}oa=q&-2;la=q&1;ia=n&-2;ha=n&1;V=l&-2;ma=l&1;h=Q<<5;R=ba-h|0;S=h+E|0;fa=N(l,u)<<2;pa=w-1|0;sa=(pa|0)==(l+Y|0);j=i;while(1){h=0;k=0;Pa:{Qa:{switch(l|0){default:while(1){m=(N(h,u)<<2)+g|0;z=H[m+28>>2];o=S+(h<<6)|0;H[o+24>>2]=H[m+24>>2];H[o+28>>2]=z;z=H[m+20>>2];H[o+16>>2]=H[m+16>>2];H[o+20>>2]=z;z=H[m+12>>2];H[o+8>>2]=H[m+8>>2];H[o+12>>2]=z;z=H[m+4>>2];H[o>>2]=H[m>>2];H[o+4>>2]=z;o=h|1;m=S+(o<<6)|0;o=(N(o,u)<<2)+g|0;z=H[o+28>>2];H[m+24>>2]=H[o+24>>2];H[m+28>>2]=z;z=H[o+20>>2];H[m+16>>2]=H[o+16>>2];H[m+20>>2]=z;z=H[o+12>>2];H[m+8>>2]=H[o+8>>2];H[m+12>>2]=z;z=H[o+4>>2];H[m>>2]=H[o>>2];H[m+4>>2]=z;h=h+2|0;k=k+2|0;if((V|0)!=(k|0)){continue}break};if(!ma){break Pa}break;case 0:break Pa;case 1:break Qa}}k=S+(h<<6)|0;h=(N(h,u)<<2)+g|0;m=H[h+28>>2];H[k+24>>2]=H[h+24>>2];H[k+28>>2]=m;m=H[h+20>>2];H[k+16>>2]=H[h+16>>2];H[k+20>>2]=m;m=H[h+12>>2];H[k+8>>2]=H[h+8>>2];H[k+12>>2]=m;m=H[h+4>>2];H[k>>2]=H[h>>2];H[k+4>>2]=m}Ra:{if((l|0)==(q|0)){break Ra}z=g+fa|0;h=0;m=0;if(!sa){while(1){k=z+(N(h,u)<<2)|0;ja=H[k+28>>2];o=R+(h<<6)|0;H[o+24>>2]=H[k+24>>2];H[o+28>>2]=ja;ja=H[k+20>>2];H[o+16>>2]=H[k+16>>2];H[o+20>>2]=ja;ja=H[k+12>>2];H[o+8>>2]=H[k+8>>2];H[o+12>>2]=ja;ja=H[k+4>>2];H[o>>2]=H[k>>2];H[o+4>>2]=ja;o=h|1;k=R+(o<<6)|0;o=z+(N(o,u)<<2)|0;ja=H[o+28>>2];H[k+24>>2]=H[o+24>>2];H[k+28>>2]=ja;ja=H[o+20>>2];H[k+16>>2]=H[o+16>>2];H[k+20>>2]=ja;ja=H[o+12>>2];H[k+8>>2]=H[o+8>>2];H[k+12>>2]=ja;ja=H[o+4>>2];H[k>>2]=H[o>>2];H[k+4>>2]=ja;h=h+2|0;m=m+2|0;if((ia|0)!=(m|0)){continue}break}if(!ha){break Ra}}k=R+(h<<6)|0;h=z+(N(h,u)<<2)|0;m=H[h+28>>2];H[k+24>>2]=H[h+24>>2];H[k+28>>2]=m;m=H[h+20>>2];H[k+16>>2]=H[h+16>>2];H[k+20>>2]=m;m=H[h+12>>2];H[k+8>>2]=H[h+8>>2];H[k+12>>2]=m;m=H[h+4>>2];H[k>>2]=H[h>>2];H[k+4>>2]=m}Ta(J);Sa:{if(!q){break Sa}h=0;k=0;if((Y|0)!=(pa|0)){while(1){m=E+(h<<5)|0;z=H[m+28>>2];o=(N(h,u)<<2)+g|0;H[o+24>>2]=H[m+24>>2];H[o+28>>2]=z;z=H[m+20>>2];H[o+16>>2]=H[m+16>>2];H[o+20>>2]=z;z=H[m+12>>2];H[o+8>>2]=H[m+8>>2];H[o+12>>2]=z;z=H[m+4>>2];H[o>>2]=H[m>>2];H[o+4>>2]=z;o=h|1;m=(N(o,u)<<2)+g|0;o=E+(o<<5)|0;z=H[o+28>>2];H[m+24>>2]=H[o+24>>2];H[m+28>>2]=z;z=H[o+20>>2];H[m+16>>2]=H[o+16>>2];H[m+20>>2]=z;z=H[o+12>>2];H[m+8>>2]=H[o+8>>2];H[m+12>>2]=z;z=H[o+4>>2];H[m>>2]=H[o>>2];H[m+4>>2]=z;h=h+2|0;k=k+2|0;if((oa|0)!=(k|0)){continue}break}if(!la){break Sa}}k=(N(h,u)<<2)+g|0;h=E+(h<<5)|0;m=H[h+28>>2];H[k+24>>2]=H[h+24>>2];H[k+28>>2]=m;m=H[h+20>>2];H[k+16>>2]=H[h+16>>2];H[k+20>>2]=m;m=H[h+12>>2];H[k+8>>2]=H[h+8>>2];H[k+12>>2]=m;m=H[h+4>>2];H[k>>2]=H[h>>2];H[k+4>>2]=m}g=g+32|0;j=j-8|0;if(j>>>0>7){continue}break}break Oa}g=i>>>3|0;k=g>>>0<ea>>>0?g:ea;m=(i>>>0)/(k>>>0)&-8;o=i&-8;j=0;g=b;while(1){h=Fa(48);if(!h){break Ia}R=Ia($);H[h>>2]=R;if(!R){o=0;Sa(x);Ca(h);Ca(E);break Ha}H[h+40>>2]=g;H[h+36>>2]=u;H[h+32>>2]=q;H[h+28>>2]=n;H[h+24>>2]=0;H[h+20>>2]=l;H[h+16>>2]=0;H[h+12>>2]=Q;H[h+8>>2]=l;H[h+4>>2]=n;V=o-N(j,m)|0;j=j+1|0;R=(k|0)==(j|0)?V:m;H[h+44>>2]=R;eb(x,13,h);g=(R<<2)+g|0;if((k|0)!=(j|0)){continue}break}Sa(x)}j=i&7;Ta:{if(!j){break Ta}Q=Q<<5;Ua:{if(!l){break Ua}m=E+Q|0;k=j<<2;h=0;if((l|0)!=1){R=l&1;S=l&-2;o=0;while(1){z=!k;if(!z){B(m+(h<<6)|0,(N(h,u)<<2)+g|0,k)}if(!z){z=h|1;B(m+(z<<6)|0,(N(u,z)<<2)+g|0,k)}h=h+2|0;o=o+2|0;if((S|0)!=(o|0)){continue}break}if(!R){break Ua}}if(!k){break Ua}B(m+(h<<6)|0,(N(h,u)<<2)+g|0,k)}Va:{if((l|0)==(q|0)){break Va}m=ba-Q|0;Q=(N(l,u)<<2)+g|0;k=j<<2;h=0;if((Y|0)!=(w+(l^-1)|0)){l=n&1;n=n&-2;o=0;while(1){R=!k;if(!R){B(m+(h<<6)|0,Q+(N(h,u)<<2)|0,k)}if(!R){R=h|1;B(m+(R<<6)|0,Q+(N(u,R)<<2)|0,k)}h=h+2|0;o=o+2|0;if((n|0)!=(o|0)){continue}break}if(!l){break Va}}if(!k){break Va}B(m+(h<<6)|0,Q+(N(h,u)<<2)|0,k)}Ta(J);if(!q){break Ta}k=j<<2;h=0;if((w|0)!=(Y+1|0)){n=q&1;j=q&-2;o=0;while(1){m=!k;if(!m){B((N(h,u)<<2)+g|0,E+(h<<5)|0,k)}if(!m){m=h|1;B((N(m,u)<<2)+g|0,E+(m<<5)|0,k)}h=h+2|0;o=o+2|0;if((j|0)!=(o|0)){continue}break}if(!n){break Ta}}if(!k){break Ta}B((N(h,u)<<2)+g|0,E+(h<<5)|0,k)}r=r+152|0;t=t-1|0;if(t){continue}break}o=1;Ca(E);break Ha}o=1;q=H[C+28>>2];Q=q+N(j,152)|0;da=Q-152|0;if(H[da>>2]==H[Q-144>>2]){break Ha}ka=Q-148|0;if(H[ka>>2]==H[Q-140>>2]){break Ha}g=H[q+4>>2];i=H[q+12>>2];k=H[q>>2];n=H[q+8>>2];t=H[C+68>>2];E=H[C+64>>2];x=H[C+60>>2];Y=H[C+56>>2];Z=_b(C,j);if(!Z){o=0;break Ha}if((j|0)==1){b=H[Q-16>>2];g=H[da>>2];i=H[ka>>2];h=H[Q-8>>2];Oa(Z,b-g|0,H[Q-12>>2]-i|0,h-g|0,H[Q-4>>2]-i|0,H[C+52>>2],1,h-b|0);Va(Z);break Ha}b=q;Wa:{if((j|0)!=2){h=j-1|0;m=h&1;l=h&-2;h=0;o=0;while(1){r=H[b+160>>2]-H[b+152>>2]|0;h=h>>>0>r>>>0?h:r;r=H[b+164>>2]-H[b+156>>2]|0;h=h>>>0>r>>>0?h:r;r=H[b+312>>2]-H[b+304>>2]|0;h=h>>>0>r>>>0?h:r;r=H[b+316>>2]-H[b+308>>2]|0;h=h>>>0>r>>>0?h:r;b=b+304|0;o=o+2|0;if((l|0)!=(o|0)){continue}break}if(!m){break Wa}}m=H[b+160>>2]-H[b+152>>2]|0;h=h>>>0>m>>>0?h:m;b=H[b+164>>2]-H[b+156>>2]|0;h=b>>>0<h>>>0?h:b}Xa:{if(h>>>0>=134217728){break Xa}R=Ia(h<<5);H[J+32>>2]=R;if(!R){break Xa}H[J>>2]=R;Ya:{if(j){r=i-g|0;b=n-k|0;oa=R+32|0;W=j;la=H[C+20>>2];z=1;ea=0;while(1){H[J+8>>2]=r;H[J+40>>2]=b;i=H[q+164>>2];h=H[q+160>>2];g=H[q+156>>2];k=H[q+152>>2];$=(k|0)%2|0;H[J+44>>2]=$;ia=(g|0)%2|0;H[J+12>>2]=ia;M=h-k|0;ba=M-b|0;H[J+36>>2]=ba;k=i-g|0;ha=k-r|0;H[J+4>>2]=ha;i=Y;o=i;h=x;g=h;j=E;m=j;n=t;u=n;Za:{if(!ea&(z|0)==(la|0)){break Za}w=la-z|0;g=0;o=0;if(i){i=w&31;if((w&63)>>>0>=32){l=-1<<i;h=0}else{h=-1<<i;l=h|(1<<i)-1&-1>>>32-i}i=Y+(h^-1)|0;h=l^-1;n=i>>>0<Y>>>0?h+1|0:h;h=w&31;if((w&63)>>>0>=32){o=n>>>h|0}else{o=((1<<h)-1&n)<<32-h|i>>>h}}if(x){g=w&31;if((w&63)>>>0>=32){l=-1<<g;i=0}else{i=-1<<g;l=i|(1<<g)-1&-1>>>32-g}g=x+(i^-1)|0;i=l^-1;h=g>>>0<x>>>0?i+1|0:i;i=w&31;if((w&63)>>>0>=32){g=h>>>i|0}else{g=((1<<i)-1&h)<<32-i|g>>>i}}n=0;j=0;if(E){i=w&31;if((w&63)>>>0>=32){l=-1<<i;h=0}else{h=-1<<i;l=h|(1<<i)-1&-1>>>32-i}i=E+(h^-1)|0;h=l^-1;j=i>>>0<E>>>0?h+1|0:h;h=w&31;if((w&63)>>>0>=32){j=j>>>h|0}else{j=((1<<h)-1&j)<<32-h|i>>>h}}if(t){i=w&31;if((w&63)>>>0>=32){l=-1<<i;h=0}else{h=-1<<i;l=h|(1<<i)-1&-1>>>32-i}i=t+(h^-1)|0;h=l^-1;n=i>>>0<t>>>0?h+1|0:h;h=w&31;if((w&63)>>>0>=32){n=n>>>h|0}else{n=((1<<h)-1&n)<<32-h|i>>>h}}m=0;i=0;S=1<<w-1;if(S>>>0<Y>>>0){i=w&31;if((w&63)>>>0>=32){l=-1<<i;h=0}else{h=-1<<i;l=h|(1<<i)-1&-1>>>32-i}h=h^-1;i=h+(Y-S|0)|0;l=l^-1;l=h>>>0>i>>>0?l+1|0:l;h=w&31;if((w&63)>>>0>=32){i=l>>>h|0}else{i=((1<<h)-1&l)<<32-h|i>>>h}}if(E>>>0>S>>>0){h=w&31;if((w&63)>>>0>=32){l=-1<<h;m=0}else{m=-1<<h;l=m|(1<<h)-1&-1>>>32-h}m=m^-1;h=m+(E-S|0)|0;l=l^-1;l=h>>>0<m>>>0?l+1|0:l;m=w&31;if((w&63)>>>0>=32){m=l>>>m|0}else{m=((1<<m)-1&l)<<32-m|h>>>m}}u=0;h=0;if(x>>>0>S>>>0){h=w&31;if((w&63)>>>0>=32){l=-1<<h;aa=0}else{aa=-1<<h;l=aa|(1<<h)-1&-1>>>32-h}aa=aa^-1;h=aa+(x-S|0)|0;l=l^-1;aa=h>>>0<aa>>>0?l+1|0:l;l=w&31;if((w&63)>>>0>=32){h=aa>>>l|0}else{h=((1<<l)-1&aa)<<32-l|h>>>l}}if(t>>>0<=S>>>0){break Za}l=w&31;if((w&63)>>>0>=32){l=-1<<l;u=0}else{u=-1<<l;l=u|(1<<l)-1&-1>>>32-l}aa=u^-1;u=aa+(t-S|0)|0;l=l^-1;S=u>>>0<aa>>>0?l+1|0:l;l=w&31;if((w&63)>>>0>=32){u=S>>>l|0}else{u=((1<<l)-1&S)<<32-l|u>>>l}}l=H[q+180>>2];w=m-l|0;m=m>>>0>=w>>>0?w:0;w=m+4|0;m=m>>>0>w>>>0?-1:w;ga=m>>>0<ba>>>0?m:ba;m=H[q+216>>2];w=j-m|0;j=j>>>0>=w>>>0?w:0;w=j+4|0;j=j>>>0>w>>>0?-1:w;_=b>>>0>j>>>0?j:b;j=($?ga:_)<<1;w=($?_:ga)<<1|1;j=j>>>0>w>>>0?j:w;S=j>>>0<M>>>0;l=i-l|0;i=i>>>0>=l>>>0?l:0;l=i-4|0;ba=i>>>0>=l>>>0?l:0;i=o-m|0;i=i>>>0<=o>>>0?i:0;m=i-4|0;aa=i>>>0>=m>>>0?m:0;V=($?ba:aa)<<1;ma=($?aa:ba)<<1|1;fa=V>>>0<ma>>>0;m=H[q+184>>2];i=g-m|0;g=g>>>0>=i>>>0?i:0;i=g-4|0;i=g>>>0>=i>>>0?i:0;o=i;g=H[q+220>>2];l=h-g|0;h=h>>>0>=l>>>0?l:0;l=h-4|0;h=h>>>0>=l>>>0?l:0;l=h;m=n-m|0;n=m>>>0<=n>>>0?m:0;m=n+4|0;n=m>>>0<n>>>0?-1:m;n=n>>>0<r>>>0?n:r;m=n;g=u-g|0;g=g>>>0<=u>>>0?g:0;u=g+4|0;g=g>>>0>u>>>0?-1:u;w=g>>>0<ha>>>0?g:ha;u=w;if(ia){l=i;u=m;o=h;m=w}S=S?j:M;j=fa?V:ma;H[J+60>>2]=ga;H[J+56>>2]=ba;H[J+52>>2]=_;H[J+48>>2]=aa;_a:{if(k>>>0<8){b=7;g=0;break _a}g=$<<5;ha=(oa-g|0)+(ba<<6)|0;V=(g+R|0)+(aa<<6)|0;ga=b+ga|0;ma=b+ba|0;fa=r+w|0;pa=h+r|0;sa=R+(j<<5)|0;g=0;while(1){b=g|7;$a:{if(!(g>>>0<n>>>0&b>>>0>=i>>>0|g>>>0<fa>>>0&b>>>0>=pa>>>0)){g=g+8|0;break $a}b=k-g|0;ja=b>>>0>=8?8:b;b=0;while(1){$=b+g|0;ba=$+1|0;wa=b<<2;Oa(Z,aa,$,_,ba,wa+V|0,16,0);Oa(Z,ma,$,ga,ba,ha+wa|0,16,0);b=b+1|0;if((ja|0)!=(b|0)){continue}break}Ta(J+32|0);b=g;g=g+8|0;if(!Za(Z,j,b,S,g,sa,8,1)){break Ya}}b=g|7;if(k>>>0>b>>>0){continue}break}}if(!(!(g>>>0<n>>>0&b>>>0>=i>>>0)&(r+w>>>0<=g>>>0|h+r>>>0>b>>>0)|g>>>0>=k>>>0)){b=J+32|0;$=0;ga=k-g|0;if(ga){while(1){ba=g+$|0;aa=ba+1|0;_=H[b+16>>2];ha=$<<2;Oa(Z,_,ba,H[b+20>>2],aa,ha+((H[b>>2]+(H[b+12>>2]<<5)|0)+(_<<6)|0)|0,16,0);_=H[b+24>>2];V=H[b+8>>2];Oa(Z,_+V|0,ba,V+H[b+28>>2]|0,aa,(ha+((H[b>>2]-(H[b+12>>2]<<5)|0)+(_<<6)|0)|0)+32|0,16,0);$=$+1|0;if((ga|0)!=($|0)){continue}break}}Ta(b);if(!Za(Z,j,g,S,k,R+(j<<5)|0,8,1)){break Ya}}H[J+28>>2]=w;H[J+24>>2]=h;H[J+20>>2]=n;H[J+16>>2]=i;if(j>>>0<S>>>0){b=m<<1;g=u<<1|1;b=b>>>0>g>>>0?b:g;g=b>>>0<k>>>0?b:k;b=ia<<5;m=(oa-b|0)+(h<<6)|0;u=(b+R|0)+(i<<6)|0;w=r+w|0;h=h+r|0;b=o<<1;l=l<<1|1;l=b>>>0<l>>>0?b:l;r=R+(l<<5)|0;while(1){b=S-j|0;b=(b>>>0>=8?8:b)+j|0;Oa(Z,j,i,b,n,u,1,16);Oa(Z,j,h,b,w,m,1,16);Ta(J);if(!Za(Z,j,l,b,g,r,1,8)){break Ya}j=j+8|0;if(S>>>0>j>>>0){continue}break}}q=q+152|0;b=M;r=k;z=z+1|0;ea=z?ea:ea+1|0;if(ea|(z|0)!=(W|0)){continue}break}}o=1;b=H[Q-16>>2];g=H[da>>2];i=H[ka>>2];h=H[Q-8>>2];Oa(Z,b-g|0,H[Q-12>>2]-i|0,h-g|0,H[Q-4>>2]-i|0,H[C+52>>2],1,h-b|0);Va(Z);Ca(R);break Ha}Va(Z);Ca(R);o=0;break Ha}Va(Z);o=0;break Ha}o=0;Sa(x);Ca(E)}na=J- -64|0;if(o){break W}break b}s=s+1080|0;A=A+52|0;C=C+76|0;p=p+1|0;if(p>>>0<K[v+16>>2]){continue}break}s=H[D+32>>2];v=H[H[D+20>>2]>>2]}k=H[s+16>>2];ab:{if(H[D+68>>2]|!k){break ab}A=H[v+20>>2];g=H[A+28>>2];bb:{cb:{i=H[D+64>>2];if(i){p=H[v+16>>2];if(p>>>0<3){break bb}b=H[A+24>>2];if(!((b|0)==H[A+100>>2]&(b|0)==H[A+176>>2])){Ba(f,1,10089,0);break b}h=H[H[D+24>>2]+24>>2];q=H[h+36>>2];db:{if((q|0)!=H[h+88>>2]|(q|0)!=H[h+140>>2]){break db}h=N(b,152);b=h+g|0;b=N(H[b-140>>2]-H[b-148>>2]|0,H[b-144>>2]-H[b-152>>2]|0);g=h+H[A+104>>2]|0;if((b|0)!=(N(H[g-140>>2]-H[g-148>>2]|0,H[g-144>>2]-H[g-152>>2]|0)|0)){break db}g=h+H[A+180>>2]|0;if((N(H[g-140>>2]-H[g-148>>2]|0,H[g-144>>2]-H[g-152>>2]|0)|0)==(b|0)){break cb}}Ba(f,1,10089,0);break b}p=H[v+16>>2];if(p>>>0<3){break bb}h=H[H[D+24>>2]+24>>2];b=H[h+36>>2];eb:{if((b|0)!=H[h+88>>2]){break eb}h=H[h+140>>2];if((h|0)!=(b|0)){break eb}q=N(b,152);b=g+q|0;b=N(H[b+148>>2]-H[b+140>>2]|0,H[b+144>>2]-H[b+136>>2]|0);g=q+H[A+104>>2]|0;if((b|0)!=(N(H[g+148>>2]-H[g+140>>2]|0,H[g+144>>2]-H[g+136>>2]|0)|0)){break eb}g=H[A+180>>2]+N(h,152)|0;if((N(H[g+148>>2]-H[g+140>>2]|0,H[g+144>>2]-H[g+136>>2]|0)|0)==(b|0)){break cb}}Ba(f,1,10089,0);break b}if((k|0)==2){if(!H[s+5608>>2]){break ab}i=Fa(p<<2);if(!i){break b}n=H[v+16>>2];fb:{if(!n){break fb}gb:{hb:{if(H[D+64>>2]){p=n&3;g=0;if(n>>>0>=4){break hb}C=0;break gb}p=n&3;g=0;ib:{if(n>>>0<4){C=0;break ib}k=n&-4;C=0;h=0;while(1){q=i+(C<<2)|0;H[q>>2]=H[A+52>>2];H[q+4>>2]=H[A+128>>2];H[q+8>>2]=H[A+204>>2];H[q+12>>2]=H[A+280>>2];C=C+4|0;A=A+304|0;h=h+4|0;if((k|0)!=(h|0)){continue}break}if(!p){break fb}}while(1){H[i+(C<<2)>>2]=H[A+52>>2];C=C+1|0;A=A+76|0;g=g+1|0;if((p|0)!=(g|0)){continue}break}break fb}k=n&-4;C=0;h=0;while(1){q=i+(C<<2)|0;H[q>>2]=H[A+36>>2];H[q+4>>2]=H[A+112>>2];H[q+8>>2]=H[A+188>>2];H[q+12>>2]=H[A+264>>2];C=C+4|0;A=A+304|0;h=h+4|0;if((k|0)!=(h|0)){continue}break}if(!p){break fb}}while(1){H[i+(C<<2)>>2]=H[A+36>>2];C=C+1|0;A=A+76|0;g=g+1|0;if((p|0)!=(g|0)){continue}break}}h=H[s+5608>>2];g=i;k=0;s=Fa(n<<3);i=0;jb:{if(!s){break jb}if(!(!b|!n)){i=b;u=s+(n<<2)|0;r=n&-4;m=n&3;o=n-1|0;while(1){v=0;p=0;b=0;t=o>>>0<3;kb:{if(!t){while(1){b=v<<2;L[b+s>>2]=L[H[b+g>>2]>>2];q=b|4;L[q+s>>2]=L[H[g+q>>2]>>2];q=b|8;L[q+s>>2]=L[H[g+q>>2]>>2];b=b|12;L[b+s>>2]=L[H[b+g>>2]>>2];v=v+4|0;p=p+4|0;if((r|0)!=(p|0)){continue}break}b=v;if(!m){break kb}}v=0;while(1){q=b<<2;L[q+s>>2]=L[H[g+q>>2]>>2];b=b+1|0;v=v+1|0;if((m|0)!=(v|0)){continue}break}}q=0;b=h;while(1){E=q<<2;j=E+u|0;H[j>>2]=0;ca=O(0);v=0;p=0;lb:{if(!t){while(1){l=s+(v<<2)|0;ca=O(O(L[b>>2]*L[l>>2])+ca);L[j>>2]=ca;ca=O(O(L[b+4>>2]*L[l+4>>2])+ca);L[j>>2]=ca;ca=O(O(L[b+8>>2]*L[l+8>>2])+ca);L[j>>2]=ca;ca=O(O(L[b+12>>2]*L[l+12>>2])+ca);L[j>>2]=ca;v=v+4|0;b=b+16|0;p=p+4|0;if((r|0)!=(p|0)){continue}break}p=v;if(!m){break lb}}v=0;while(1){ca=O(O(L[b>>2]*L[s+(p<<2)>>2])+ca);L[j>>2]=ca;p=p+1|0;b=b+4|0;v=v+1|0;if((m|0)!=(v|0)){continue}break}}v=g+E|0;p=H[v>>2];H[v>>2]=p+4;L[p>>2]=ca;q=q+1|0;if((n|0)!=(q|0)){continue}break}k=k+1|0;if((i|0)!=(k|0)){continue}break}}Ca(s);i=1}b=i;Ca(g);if(b){break ab}break b}if(H[H[s+5584>>2]+20>>2]==1){if(i){cc(H[A+36>>2],H[A+112>>2],H[A+188>>2],b);break ab}cc(H[A+52>>2],H[A+128>>2],H[A+204>>2],b);break ab}if(i){bc(H[A+36>>2],H[A+112>>2],H[A+188>>2],b);break ab}bc(H[A+52>>2],H[A+128>>2],H[A+204>>2],b);break ab}H[ra>>2]=p;Ba(f,1,10150,ra)}m=H[H[D+20>>2]>>2];if(!H[m+16>>2]){X=1;break b}l=H[D+68>>2];k=H[m+20>>2];b=H[H[D+32>>2]+5584>>2];q=H[H[D+24>>2]+24>>2];i=0;while(1){mb:{if(H[l+(i<<2)>>2]?0:l){break mb}h=H[k+28>>2];g=h+N(H[q+36>>2],152)|0;nb:{if(!H[D+64>>2]){h=H[g+148>>2]-H[g+140>>2]|0;v=H[g+144>>2]-H[g+136>>2]|0;r=0;p=52;break nb}h=h+N(H[k+24>>2],152)|0;v=H[g+8>>2]-H[g>>2]|0;r=H[h-144>>2]-(v+H[h-152>>2]|0)|0;h=H[g+12>>2]-H[g+4>>2]|0;p=36}g=H[q+24>>2];ob:{if(H[q+32>>2]){g=1<<g-1;C=g-1|0;s=0-g|0;break ob}C=-1<<g^-1;s=0}if(!v|!h){break mb}X=H[k+p>>2];if(H[b+20>>2]==1){n=v&-2;j=v&1;A=0;r=r<<2;while(1){p=0;pb:{if((v|0)!=1){while(1){g=H[b+1076>>2]+H[X>>2]|0;H[X>>2]=(g|0)<(s|0)?s:(g|0)<(C|0)?g:C;g=H[b+1076>>2]+H[X+4>>2]|0;H[X+4>>2]=(g|0)<(s|0)?s:(g|0)<(C|0)?g:C;X=X+8|0;p=p+2|0;if((n|0)!=(p|0)){continue}break}if(!j){break pb}}g=H[b+1076>>2]+H[X>>2]|0;H[X>>2]=(g|0)<(s|0)?s:(g|0)<(C|0)?g:C;X=X+4|0}X=r+X|0;A=A+1|0;if((A|0)!=(h|0)){continue}break}break mb}u=s>>31;g=0;while(1){p=0;while(1){ca=L[X>>2];j=C;qb:{if(ca>O(2147483648)){break qb}j=s;if(ca<O(-2147483648)){break qb}n=H[b+1076>>2];j=n;za=ca;ca=O(T(ca));Pa=O(za-ca);if(!(Pa<O(.5))){za=O(U(za));rb:{if(Pa>O(.5)){break rb}Pa=ca;ca=O(ca*O(.5));za=O(ca-O(T(ca)))==O(0)?Pa:za}ca=za}t=n>>31;if(O(P(ca))<O(2147483648)){n=~~ca}else{n=-2147483648}o=t+(n>>31)|0;j=j+n|0;n=n>>>0>j>>>0?o+1|0:o;j=j>>>0<s>>>0&(n|0)<=(u|0)|(n|0)<(u|0)?s:j>>>0<C>>>0&(n|0)<=0|(n|0)<0?j:C}H[X>>2]=j;X=X+4|0;p=p+1|0;if((v|0)!=(p|0)){continue}break}X=(r<<2)+X|0;g=g+1|0;if((h|0)!=(g|0)){continue}break}}k=k+76|0;b=b+1080|0;q=q+52|0;X=1;i=i+1|0;if(i>>>0<K[m+16>>2]){continue}break}break b}X=0;Ba(f,1,3372,0)}na=ra+16|0;if(!X){jb(ua);H[a+8>>2]=H[a+8>>2]|32768;Ba(f,1,11451,0);break a}sb:{if(!c){break sb}b=0;q=H[a+232>>2];g=Rb(q,1);if(!((g|0)==-1|d>>>0<g>>>0)){tb:{b=1;d=H[q+24>>2];if(!H[d+16>>2]){break tb}h=H[d+24>>2];k=H[H[H[q+20>>2]>>2]+20>>2];while(1){b=H[h+24>>2];i=b&7;v=b>>>3|0;d=H[k+28>>2];b=d+N(H[h+36>>2],152)|0;ub:{if(H[q+64>>2]){g=d+N(H[k+24>>2],152)|0;d=H[b+8>>2]-H[b>>2]|0;p=H[g-144>>2]-(d+H[g-152>>2]|0)|0;g=H[b+12>>2]-H[b+4>>2]|0;b=36;break ub}g=H[b+148>>2]-H[b+140>>2]|0;d=H[b+144>>2]-H[b+136>>2]|0;p=0;b=52}b=H[b+k>>2];vb:{wb:{xb:{yb:{i=v+((i|0)!=0)|0;switch(((i|0)==3?4:i)-1|0){case 0:break xb;case 1:break wb;case 3:break yb;default:break vb}}if(!g){break vb}d=d<<2;if((g|0)!=1){i=g&1;v=g&-2;g=0;while(1){s=!d;if(!s){B(c,b,d)}n=p<<2;b=n+(b+d|0)|0;c=c+d|0;if(!s){B(c,b,d)}c=c+d|0;b=n+(b+d|0)|0;g=g+2|0;if((v|0)!=(g|0)){continue}break}if(!i){break vb}}if(d){B(c,b,d)}c=c+d|0;break vb}i=!g|!d;if(H[h+32>>2]){if(i){break vb}s=d&-8;v=d&7;i=0;n=d-1>>>0<7;while(1){d=0;zb:{if(!n){while(1){F[c|0]=H[b>>2];F[c+1|0]=H[b+4>>2];F[c+2|0]=H[b+8>>2];F[c+3|0]=H[b+12>>2];F[c+4|0]=H[b+16>>2];F[c+5|0]=H[b+20>>2];F[c+6|0]=H[b+24>>2];F[c+7|0]=H[b+28>>2];c=c+8|0;b=b+32|0;d=d+8|0;if((s|0)!=(d|0)){continue}break}if(!v){break zb}}d=0;while(1){F[c|0]=H[b>>2];c=c+1|0;b=b+4|0;d=d+1|0;if((v|0)!=(d|0)){continue}break}}b=(p<<2)+b|0;i=i+1|0;if((i|0)!=(g|0)){continue}break}break vb}if(i){break vb}s=d&-8;v=d&7;i=0;n=d-1>>>0<7;p=p<<2;while(1){d=0;Ab:{if(!n){while(1){F[c|0]=H[b>>2];F[c+1|0]=H[b+4>>2];F[c+2|0]=H[b+8>>2];F[c+3|0]=H[b+12>>2];F[c+4|0]=H[b+16>>2];F[c+5|0]=H[b+20>>2];F[c+6|0]=H[b+24>>2];F[c+7|0]=H[b+28>>2];c=c+8|0;b=b+32|0;d=d+8|0;if((s|0)!=(d|0)){continue}break}if(!v){break Ab}}d=0;while(1){F[c|0]=H[b>>2];c=c+1|0;b=b+4|0;d=d+1|0;if((v|0)!=(d|0)){continue}break}}b=b+p|0;i=i+1|0;if((i|0)!=(g|0)){continue}break}break vb}i=!g|!d;if(H[h+32>>2]){if(i){break vb}s=d&-8;v=d&7;i=0;n=d-1>>>0<7;while(1){d=0;Bb:{if(!n){while(1){G[c>>1]=H[b>>2];G[c+2>>1]=H[b+4>>2];G[c+4>>1]=H[b+8>>2];G[c+6>>1]=H[b+12>>2];G[c+8>>1]=H[b+16>>2];G[c+10>>1]=H[b+20>>2];G[c+12>>1]=H[b+24>>2];G[c+14>>1]=H[b+28>>2];c=c+16|0;b=b+32|0;d=d+8|0;if((s|0)!=(d|0)){continue}break}if(!v){break Bb}}d=0;while(1){G[c>>1]=H[b>>2];c=c+2|0;b=b+4|0;d=d+1|0;if((v|0)!=(d|0)){continue}break}}b=(p<<2)+b|0;i=i+1|0;if((i|0)!=(g|0)){continue}break}break vb}if(i){break vb}s=d&-8;v=d&7;i=0;n=d-1>>>0<7;while(1){d=0;Cb:{if(!n){while(1){G[c>>1]=H[b>>2];G[c+2>>1]=H[b+4>>2];G[c+4>>1]=H[b+8>>2];G[c+6>>1]=H[b+12>>2];G[c+8>>1]=H[b+16>>2];G[c+10>>1]=H[b+20>>2];G[c+12>>1]=H[b+24>>2];G[c+14>>1]=H[b+28>>2];c=c+16|0;b=b+32|0;d=d+8|0;if((s|0)!=(d|0)){continue}break}if(!v){break Cb}}d=0;while(1){G[c>>1]=H[b>>2];c=c+2|0;b=b+4|0;d=d+1|0;if((v|0)!=(d|0)){continue}break}}b=(p<<2)+b|0;i=i+1|0;if((i|0)!=(g|0)){continue}break}}k=k+76|0;h=h+52|0;b=1;pb=pb+1|0;if(pb>>>0<K[H[q+24>>2]+16>>2]){continue}break}}}if(!b){break a}b=H[ua+5596>>2];if(!b){break sb}Ca(b);H[ua+5596>>2]=0;H[ua+5600>>2]=0}F[a+92|0]=I[a+92|0]&254;H[a+8>>2]=H[a+8>>2]&-129;fb=1;c=Qa(e);b=H[a+8>>2];if(!(c|qa)&(b|0)==64|(b|0)==256){break a}if((Ja(e,Aa+10|0,2,f)|0)!=2){Ba(f,H[a+208>>2]?1:2,2472,0);fb=!H[a+208>>2];break a}Da(Aa+10|0,Aa+12|0,2);b=H[Aa+12>>2];if((b|0)==65424){break a}if((b|0)==65497){H[a+8>>2]=256;H[a+228>>2]=0;break a}if(!(Qa(e)|qa)){H[a+8>>2]=64;Ba(f,2,8419,0);break a}fb=0;Ba(f,1,8306,0)}na=Aa+16|0;return fb|0}function cb(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,v=0,x=0,z=0,A=0,C=0,D=0,E=0,J=0,M=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=O(0),Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,oa=0,pa=0,sa=0,ta=0,ua=0,va=O(0);t=na-80|0;na=t;H[t+40>>2]=65424;v=N(H[a+132>>2],H[a+128>>2]);a:{b:{c:{l=H[a+8>>2];d:{if((l|0)!=8){j=0;if((l|0)!=256){break a}H[t+40>>2]=65497;break d}if(F[a+92|0]&1){break d}Q=v&-2;V=v&1;D=t+77|0;R=t+76|0;U=t+72|0;l=65424;e:{f:{while(1){g:{h:{i:{j:{k:{l:{m:{n:{p=H[a+84>>2];if(!p){break n}n=H[a+80>>2];if(p>>>0<=n>>>0){break n}l=H[a+88>>2]+(n<<3)|0;p=H[l>>2];l=H[l+4>>2];H[a+80>>2]=n+1;if(!bb(j,p,l,k)){Ba(k,1,5440,0);j=0;break a}if((Ja(j,H[a+16>>2],2,k)|0)!=2){Ba(k,1,2472,0);j=0;break a}Da(H[a+16>>2],t+40|0,2);if(H[t+40>>2]==65424){break m}Ba(k,1,4073,0);j=0;break a}if((l|0)==65427){break l}}while(1){if(!(Qa(j)|qa)){H[a+8>>2]=64;break l}if((Ja(j,H[a+16>>2],2,k)|0)!=2){Ba(k,1,2472,0);j=0;break a}Da(H[a+16>>2],t+36|0,2);if(K[t+36>>2]<=1){Ba(k,1,6048,0);j=0;break a}o:{if(H[t+40>>2]!=32896){break o}if(Qa(j)|qa){break o}H[a+8>>2]=64;break l}m=H[a+8>>2];p:{if(!(m&16)){l=H[t+36>>2];break p}l=H[t+36>>2];n=H[a+24>>2];if(!n){break p}p=l+2|0;if(p>>>0>n>>>0){Ba(k,1,8370,0);j=0;break a}H[a+24>>2]=n-p}p=l-2|0;H[t+36>>2]=p;l=24912;A=H[t+40>>2];while(1){n=l;o=H[l>>2];if(o){l=l+12|0;if((o|0)!=(A|0)){continue}}break}if(!(m&H[n+4>>2])){Ba(k,1,5397,0);j=0;break a}q:{if(K[a+20>>2]>=p>>>0){l=H[a+16>>2];break q}l=Qa(j);m=qa;if((m|0)<0){l=1}else{l=l>>>0<p>>>0&(m|0)<=0}if(l){Ba(k,1,5797,0);j=0;break a}l=Ha(H[a+16>>2],H[t+36>>2]);if(!l){Ca(H[a+16>>2]);H[a+16>>2]=0;H[a+20>>2]=0;Ba(k,1,4973,0);j=0;break a}H[a+16>>2]=l;p=H[t+36>>2];H[a+20>>2]=p}l=Ja(j,l,p,k);if((l|0)!=H[t+36>>2]){Ba(k,1,2472,0);j=0;break a}n=H[n+8>>2];if(!n){Ba(k,1,11725,0);j=0;break a}if(!(ra[n|0](a,H[a+16>>2],l,k)|0)){H[t+32>>2]=H[t+40>>2];Ba(k,1,13959,t+32|0);j=0;break a}q=H[j+56>>2];m=H[t+36>>2];A=H[a+224>>2];p=H[A+40>>2];x=H[a+228>>2];r=N(x,40);l=p+r|0;z=H[l+20>>2];E=z+1|0;n=H[l+28>>2];r:{if(E>>>0<=n>>>0){l=H[l+24>>2];break r}X=O(O(n>>>0)+O(100));if(X<O(4294967296)&X>=O(0)){n=~~X>>>0}else{n=0}H[l+28>>2]=n;l=Ha(H[l+24>>2],N(n,24));p=H[A+40>>2];n=r+p|0;if(!l){break k}H[n+24>>2]=l;z=H[n+20>>2];E=z+1|0}l=N(z,24)+l|0;H[l+16>>2]=m+4;n=(q-m|0)-4|0;H[l+8>>2]=n;H[l+12>>2]=n>>31;G[l>>1]=o;l=p+r|0;H[l+20>>2]=E;s:{if((o|0)!=65424){break s}p=H[l+16>>2];t:{if(!p){break t}o=H[l+12>>2];if(o>>>0>=K[l+4>>2]){break t}l=p+N(o,24)|0;H[l>>2]=n;H[l+4>>2]=0}l=(H[j+56>>2]-H[t+36>>2]|0)-4|0;n=H[a+48>>2];p=H[a+52>>2];if((p|0)>0){m=1}else{m=l>>>0<=n>>>0&(p|0)>=0}if(m){break s}H[a+48>>2]=l;H[a+52>>2]=0}if(I[a+92|0]&4){if((rb(j,H[a+24>>2],k)|0)!=H[a+24>>2]|qa){Ba(k,1,2472,0);j=0;break a}H[t+40>>2]=65427;break l}if((Ja(j,H[a+16>>2],2,k)|0)!=2){Ba(k,1,2472,0);j=0;break a}Da(H[a+16>>2],t+40|0,2);if(H[t+40>>2]!=65427){continue}break}}if(!(!(Qa(j)|qa)&H[a+8>>2]==64)){l=I[a+92|0];if(!(l&4)){l=N(H[a+228>>2],5644);n=H[a+180>>2];u:{v:{if(H[a+56>>2]){q=Qa(j);break v}q=H[a+24>>2];if(q>>>0<2){break u}}q=q-2|0;H[a+24>>2]=q}n=l+n|0;if(!q){break j}l=Qa(j);p=qa;if((p|0)<0){l=1}else{l=l>>>0<q>>>0&(p|0)<=0}if(l){if(H[a+208>>2]){Ba(k,1,5842,0);j=0;break a}Ba(k,2,5842,0)}l=H[a+24>>2];if(l>>>0>=4294967294){Ba(k,1,1480,0);j=0;break a}p=H[n+5596>>2];w:{if(p){o=H[n+5600>>2];if(o>>>0>-3-l>>>0){Ba(k,1,1211,0);j=0;break a}l=Ha(p,(l+o|0)+2|0);if(l){H[n+5596>>2]=l;break j}Ca(H[n+5596>>2]);H[n+5596>>2]=0;break w}l=Fa(l+2|0);H[n+5596>>2]=l;if(l){break j}}Ba(k,1,6176,0);j=0;break a}H[a+8>>2]=8;F[a+92|0]=l&250;break i}l=H[t+40>>2];break g}Ca(H[n+24>>2]);a=H[A+40>>2]+N(x,40)|0;H[a+28>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;Ba(k,1,3863,0);j=0;break a}m=H[j+56>>2];p=m-2|0;A=H[j+60>>2];z=A-(m>>>0<2)|0;r=H[a+224>>2];J=H[r+40>>2];M=H[a+228>>2];x=N(M,40);l=J+x|0;o=H[l+16>>2]+N(H[l+12>>2],24)|0;H[o+8>>2]=p;H[o+12>>2]=z;z=m;m=H[a+24>>2];z=z+m|0;H[o+16>>2]=z;H[o+20>>2]=m>>>0>z>>>0?A+1|0:A;m=H[a+24>>2];z=H[l+20>>2];E=z+1|0;o=H[l+28>>2];x:{if(E>>>0<=o>>>0){l=H[l+24>>2];break x}X=O(O(o>>>0)+O(100));if(X<O(4294967296)&X>=O(0)){o=~~X>>>0}else{o=0}H[l+28>>2]=o;l=Ha(H[l+24>>2],N(o,24));J=H[r+40>>2];o=x+J|0;if(!l){break f}H[o+24>>2]=l;z=H[o+20>>2];E=z+1|0}l=N(z,24)+l|0;H[l+16>>2]=m+2;H[l+8>>2]=p;H[l+12>>2]=p>>31;G[l>>1]=65427;H[(x+J|0)+20>>2]=E;y:{if(q){q=Ja(j,H[n+5596>>2]+H[n+5600>>2]|0,H[a+24>>2],k);l=8;if((q|0)==H[a+24>>2]){break y}l=64;if((q|0)!=-1){break y}Ba(k,1,2472,0);j=0;break a}q=0;l=H[a+24>>2]?64:8}H[a+8>>2]=l;H[n+5600>>2]=H[n+5600>>2]+q;z:{if(F[a+92|0]&1){break z}l=H[a+44>>2];if(H[a+76>>2]|((l|0)<0|(l|0)!=H[a+228>>2])){break z}if(!Ab(j)){break z}n=H[a+228>>2];p=H[a+180>>2]+N(n,5644)|0;l=H[p+5592>>2];n=H[H[a+224>>2]+40>>2]+N(n,40)|0;if((l|0)!=H[n+4>>2]){break z}p=H[p+5588>>2]+1|0;if(l>>>0<=p>>>0){break z}A:{l=H[n+16>>2]+N(p,24)|0;n=H[l>>2];l=H[l+4>>2];if((n|0)==H[j+56>>2]&(l|0)==H[j+60>>2]){break A}if(bb(j,n,l,k)){break A}Ba(k,1,5440,0);j=0;break a}if((Ja(j,H[a+16>>2],2,k)|0)!=2){Ba(k,1,2472,0);j=0;break a}Da(H[a+16>>2],t+40|0,2);if(H[t+40>>2]==65424){break h}Ba(k,1,4073,0);j=0;break a}l=I[a+92|0];if((l&9)!=1){break i}F[a+92|0]=l|8;p=H[a+228>>2];if(H[(H[a+180>>2]+N(p,5644)|0)+5592>>2]==1){break i}if(!Ab(j)){break i}l=H[j+60>>2];o=l;m=H[j+56>>2];if((l&m)==-1){break i}B:{while(1){l=1;n=t+70|0;if((Ja(j,n,2,k)|0)!=2){break B}Da(n,t- -64|0,2);if(H[t+64>>2]!=65424){break B}q=2472;if((Ja(j,n,2,k)|0)!=2){break c}Da(n,t+60|0,2);if(H[t+60>>2]!=10){q=6048;break c}H[t+60>>2]=8;n=Ja(j,t+70|0,8,k);if((n|0)!=H[t+60>>2]){break c}if((n|0)!=8){q=4047;break c}Da(t+70|0,t+56|0,2);Da(U,t+52|0,4);Da(R,t+48|0,1);Da(D,t+44|0,1);if((p|0)!=H[t+56>>2]){n=H[t+52>>2];if(n>>>0<14){break B}n=n-12|0;H[t+52>>2]=n;n=rb(j,n,k);if(!qa&H[t+52>>2]==(n|0)){continue}break B}break}l=H[t+48>>2]!=H[t+44>>2]}if(!nc(j,m,o,k)){break b}if(l){break i}F[a+92|0]=I[a+92|0]&238|16;C:{if(!v){break C}p=H[a+180>>2];q=0;l=0;if((v|0)!=1){while(1){n=p+N(q,5644)|0;o=H[n+5592>>2];if(o){H[n+5592>>2]=o+1}o=H[n+11236>>2];if(o){H[n+11236>>2]=o+1}q=q+2|0;l=l+2|0;if((Q|0)!=(l|0)){continue}break}if(!V){break C}}l=p+N(q,5644)|0;n=H[l+5592>>2];if(!n){break C}H[l+5592>>2]=n+1}Ba(k,2,9035,0)}if(F[a+92|0]&1){break h}if((Ja(j,H[a+16>>2],2,k)|0)!=2){if(!(!v|(v|0)!=(H[a+228>>2]+1|0))){j=H[a+180>>2];l=0;while(1){n=j+N(l,5644)|0;if(!(H[n+5588>>2]|H[n+5592>>2])){break e}l=l+1|0;if((v|0)!=(l|0)){continue}break}}Ba(k,1,2472,0);j=0;break a}Da(H[a+16>>2],t+40|0,2)}l=H[t+40>>2];if(F[a+92|0]&1){break g}if((l|0)!=65497){continue}}break}if(H[a+8>>2]==256|(l|0)!=65497){break d}H[a+8>>2]=256;H[a+228>>2]=0;break d}Ca(H[o+24>>2]);a=H[r+40>>2]+N(M,40)|0;H[a+28>>2]=0;H[a+20>>2]=0;H[a+24>>2]=0;Ba(k,1,3863,0);j=0;break a}H[t+16>>2]=l;Ba(k,4,11004,t+16|0);H[a+228>>2]=l;H[t+40>>2]=65497;H[a+8>>2]=256}l=H[a+228>>2];j=H[a+180>>2];D:{E:{if(F[a+92|0]&1){break E}F:{G:{if(l>>>0>=v>>>0){break G}q=j+N(l,5644)|0;while(1){if(H[q+5596>>2]){break G}l=l+1|0;H[a+228>>2]=l;q=q+5644|0;if((l|0)!=(v|0)){continue}break}break F}if((l|0)!=(v|0)){break E}}H[i>>2]=0;break D}H:{I:{n=j+N(l,5644)|0;if(H[n+5172>>2]){a=6837}else{if(!(I[n+5640|0]&2)){break H}p=H[n+5160>>2];J:{if(!p){q=0;break J}o=p&3;m=H[n+5164>>2];j=0;q=0;l=0;if(p>>>0>=4){A=p&-4;p=0;while(1){v=m+(l<<3)|0;q=H[v+28>>2]+(H[v+20>>2]+(H[v+12>>2]+(H[v+4>>2]+q|0)|0)|0)|0;l=l+4|0;p=p+4|0;if((A|0)!=(p|0)){continue}break}if(!o){break J}}while(1){q=H[(m+(l<<3)|0)+4>>2]+q|0;l=l+1|0;j=j+1|0;if((o|0)!=(j|0)){continue}break}}j=Fa(q);H[n+5172>>2]=j;if(j){break I}a=4009}Ba(k,1,a,0);Ba(k,1,8059,0);j=0;break a}H[n+5180>>2]=q;q=H[n+5164>>2];j=H[n+5160>>2];if(j){p=0;l=0;while(1){v=l<<3;o=v+q|0;m=H[o>>2];if(m){j=H[o+4>>2];if(j){B(H[n+5172>>2]+p|0,m,j)}j=v+H[n+5164>>2]|0;o=H[j+4>>2];Ca(H[j>>2]);q=H[n+5164>>2];j=v+q|0;H[j>>2]=0;H[j+4>>2]=0;p=o+p|0;j=H[n+5160>>2]}l=l+1|0;if(l>>>0<j>>>0){continue}break}}H[n+5160>>2]=0;Ca(q);H[n+5164>>2]=0;H[n+5168>>2]=H[n+5172>>2];H[n+5176>>2]=H[n+5180>>2]}l=H[a+232>>2];Y=H[l+28>>2];n=H[a+228>>2];E=H[(H[Y+76>>2]+N(n,5644)|0)+5584>>2];j=H[l+24>>2];Z=H[j+24>>2];v=H[Y+24>>2];p=(n>>>0)/(v>>>0)|0;V=H[H[l+20>>2]>>2];o=H[Y+12>>2];l=H[Y+4>>2]+N(o,n-N(p,v)|0)|0;n=H[j>>2];n=l>>>0>n>>>0?l:n;H[V>>2]=n;v=l+o|0;l=l>>>0>v>>>0?-1:v;v=H[j+8>>2];l=l>>>0<v>>>0?l:v;H[V+8>>2]=l;K:{L:{if(!((l|0)>(n|0)&(n|0)>=0)){Ba(k,1,6682,0);break L}q=H[V+20>>2];l=p;p=H[Y+16>>2];l=H[Y+8>>2]+N(l,p)|0;n=H[j+4>>2];n=l>>>0>n>>>0?l:n;H[V+4>>2]=n;p=l+p|0;l=l>>>0>p>>>0?-1:p;j=H[j+12>>2];j=j>>>0>l>>>0?l:j;H[V+12>>2]=j;if(!((j|0)>(n|0)&(n|0)>=0)){Ba(k,1,6644,0);break L}M:{if(H[E+4>>2]){if(H[V+16>>2]){break M}j=1;break K}Ba(k,1,5358,0);break L}N:{O:{while(1){H[Z+36>>2]=0;j=H[Z>>2];n=j>>31;o=j-1|0;l=H[V>>2];p=o+l|0;m=n-!j|0;v=m+(l>>31)|0;ta=q,ua=ue(p,l>>>0>p>>>0?v+1|0:v,j,n),H[ta>>2]=ua;l=H[Z+4>>2];p=l>>31;v=l-1|0;A=H[V+4>>2];r=v+A|0;x=p-!l|0;z=x+(A>>31)|0;ta=q,ua=ue(r,r>>>0<A>>>0?z+1|0:z,l,p),H[ta+4>>2]=ua;z=o;o=H[V+8>>2];A=z+o|0;m=(o>>31)+m|0;ta=q,ua=ue(A,o>>>0>A>>>0?m+1|0:m,j,n),H[ta+8>>2]=ua;j=H[V+12>>2];H[q+16>>2]=fa;n=x+(j>>31)|0;j=j+v|0;n=j>>>0<v>>>0?n+1|0:n;ta=q,ua=ue(j,n,l,p),H[ta+12>>2]=ua;j=H[E+4>>2];H[q+20>>2]=j;l=H[Y+80>>2];H[q+24>>2]=j>>>0<l>>>0?1:j-l|0;Ca(H[q+52>>2]);H[q+68>>2]=0;H[q+60>>2]=0;H[q+64>>2]=0;H[q+52>>2]=0;H[q+56>>2]=0;j=N(j,152);l=H[q+28>>2];P:{if(!l){l=Fa(j);H[q+28>>2]=l;if(!l){break L}H[q+32>>2]=j;if(!j){break P}y(l,0,j);break P}if(j>>>0<=K[q+32>>2]){break P}l=Ha(l,j);if(!l){Ba(k,1,3090,0);Ca(H[q+28>>2]);H[q+28>>2]=0;H[q+32>>2]=0;break L}H[q+28>>2]=l;n=H[q+32>>2];p=j-n|0;if(p){y(l+n|0,0,p)}H[q+32>>2]=j}j=H[q+20>>2];if(j){ha=E+944|0;ia=E+812|0;da=E+28|0;z=H[q+28>>2];_=0;while(1){n=j-1|0;l=n&31;if((n&63)>>>0>=32){l=-1<<l;p=0}else{p=-1<<l;l=p|(1<<l)-1&-1>>>32-l}p=p^-1;m=H[q>>2];o=p+m|0;v=l^-1;l=v+(m>>31)|0;m=m>>>0>o>>>0?l+1|0:l;l=n&31;if((n&63)>>>0>=32){r=m>>l}else{r=((1<<l)-1&m)<<32-l|o>>>l}H[z>>2]=r;o=H[q+4>>2];l=o+p|0;m=(o>>31)+v|0;m=l>>>0<o>>>0?m+1|0:m;o=n&31;if((n&63)>>>0>=32){x=m>>o}else{x=((1<<o)-1&m)<<32-o|l>>>o}H[z+4>>2]=x;o=H[q+8>>2];l=o+p|0;m=(o>>31)+v|0;m=l>>>0<o>>>0?m+1|0:m;o=n&31;if((n&63)>>>0>=32){m=m>>o}else{m=((1<<o)-1&m)<<32-o|l>>>o}H[z+8>>2]=m;o=H[q+12>>2];l=o+p|0;A=(o>>31)+v|0;A=l>>>0<o>>>0?A+1|0:A;o=n&31;if((n&63)>>>0>=32){A=A>>o}else{A=((1<<o)-1&A)<<32-o|l>>>o}H[z+12>>2]=A;Q=m>>31;D=_<<2;J=H[D+ia>>2];l=J&31;if((J&63)>>>0>=32){l=1<<l;o=0}else{o=1<<l;l=o-1&1>>>32-l}R=o;o=R+m|0;U=o-1|0;l=l+Q|0;o=(o>>>0<R>>>0?l+1|0:l)-!o|0;l=J&31;if((J&63)>>>0>=32){l=o>>l}else{l=((1<<l)-1&o)<<32-l|U>>>l}R=l<<J;if((R|0)<0){break N}U=A>>31;Q=H[D+ha>>2];l=Q&31;if((Q&63)>>>0>=32){l=-1<<l;o=0}else{o=-1<<l;l=o|(1<<l)-1&-1>>>32-l}D=o^-1;o=D+A|0;l=(l^-1)+U|0;D=o>>>0<D>>>0?l+1|0:l;l=Q&31;if((Q&63)>>>0>=32){l=D>>l}else{l=((1<<l)-1&D)<<32-l|o>>>l}l=l<<Q;if((l|0)<0){break N}$=x&-1<<Q;o=(x|0)!=(A|0)?l-$>>Q:0;H[z+20>>2]=o;aa=r&-1<<J;l=(m|0)!=(r|0)?R-aa>>J:0;H[z+16>>2]=l;re(l,0,o);if(!(!l|!qa)){break O}ba=N(l,o);if(ba>>>0>=107374183){break O}D=N(ba,40);if(_){Q=Q-1|0;J=J-1|0;l=$>>31;m=l;o=l+1|0;l=$+1|0;$=((l?m:o)&1)<<31|l>>>1;l=aa>>31;m=l;o=l+1|0;l=aa+1|0;aa=((l?m:o)&1)<<31|l>>>1;l=3}else{l=1}H[z+24>>2]=l;x=z+28|0;o=j;l=j&31;if((j&63)>>>0>=32){l=1<<l;j=0}else{j=1<<l;l=j-1&1>>>32-l}ga=j;A=l;j=H[E+12>>2];R=j>>>0<Q>>>0?j:Q;j=R&31;if((R&63)>>>0>=32){l=-1<<j;m=0}else{m=-1<<j;l=m|(1<<j)-1&-1>>>32-j}ja=m^-1;ka=l^-1;j=H[E+8>>2];U=j>>>0<J>>>0?j:J;j=U&31;if((U&63)>>>0>=32){l=-1<<j;m=0}else{m=-1<<j;l=m|(1<<j)-1&-1>>>32-j}la=m^-1;ma=l^-1;ea=0;while(1){Q:{if(!_){l=H[q+4>>2];j=l+p|0;m=(l>>31)+v|0;m=j>>>0<l>>>0?m+1|0:m;l=n&31;if((n&63)>>>0>=32){S=m>>l}else{S=((1<<l)-1&m)<<32-l|j>>>l}l=H[q>>2];j=l+p|0;m=(l>>31)+v|0;m=j>>>0<l>>>0?m+1|0:m;l=n&31;if((n&63)>>>0>=32){C=m>>l}else{C=((1<<l)-1&m)<<32-l|j>>>l}j=0;m=p;M=m;l=v;T=l;r=n;break Q}j=ea+1|0;r=j>>>1|0;m=n&31;if((n&63)>>>0>=32){l=r<<m;m=0}else{l=(1<<m)-1&r>>>32-m;m=r<<m}s=m^-1;M=s+ga|0;r=H[q+4>>2];m=M+r|0;l=(l^-1)+A|0;T=s>>>0>M>>>0?l+1|0:l;l=T+(r>>31)|0;r=m>>>0<r>>>0?l+1|0:l;l=o&31;if((o&63)>>>0>=32){S=r>>l}else{S=((1<<l)-1&r)<<32-l|m>>>l}r=j&1;m=n&31;if((n&63)>>>0>=32){l=r<<m;m=0}else{l=(1<<m)-1&r>>>32-m;m=r<<m}C=m^-1;m=C+ga|0;s=H[q>>2];r=m+s|0;l=(l^-1)+A|0;l=m>>>0<C>>>0?l+1|0:l;C=l+(s>>31)|0;C=r>>>0<s>>>0?C+1|0:C;s=o&31;if((o&63)>>>0>=32){C=C>>s}else{C=((1<<s)-1&C)<<32-s|r>>>s}r=o}s=r;P=H[q+8>>2];W=P>>31;r=H[q+12>>2];H[x+4>>2]=S;H[x>>2]=C;H[x+16>>2]=j;S=(r>>31)+T|0;C=r;r=r+M|0;S=C>>>0>r>>>0?S+1|0:S;M=s&31;if((s&63)>>>0>=32){r=S>>M}else{r=((1<<M)-1&S)<<32-M|r>>>M}H[x+12>>2]=r;l=l+W|0;C=l+1|0;r=l;l=m+P|0;r=l>>>0<P>>>0?C:r;m=s&31;if((s&63)>>>0>=32){l=r>>m}else{l=((1<<m)-1&r)<<32-m|l>>>m}H[x+8>>2]=l;ca=1;l=H[da>>2];j=(H[Z+24>>2]+(!H[E+20>>2]|!j?0:(j|0)==3?2:1)|0)-l|0;R:{if((j|0)>=1024){ca=898846567431158e293;if(j>>>0<2047){j=j-1023|0;break R}ca=Infinity;j=(j>>>0>=3069?3069:j)-2046|0;break R}if((j|0)>-1023){break R}ca=2004168360008973e-307;if(j>>>0>4294965304){j=j+969|0;break R}ca=0;j=(j>>>0<=4294964336?-2960:j)+1938|0}oa=+H[da+4>>2]*.00048828125+1;u(0,0);u(1,j+1023<<20);ta=x,va=O(oa*(ca*+w())),L[ta+32>>2]=va;H[x+28>>2]=(l+H[E+804>>2]|0)-1;j=H[x+20>>2];S:{T:{if(!(j|!ba)){j=Fa(D);H[x+20>>2]=j;if(!j){Ba(k,1,2854,0);break L}if(D){y(j,0,D)}H[x+24>>2]=D;break T}if(D>>>0>K[x+24>>2]){j=Ha(j,D);if(!j){Ba(k,1,2854,0);Ca(H[x+20>>2]);H[x+20>>2]=0;H[x+24>>2]=0;break L}H[x+20>>2]=j;l=H[x+24>>2];m=D-l|0;if(m){y(j+l|0,0,m)}H[x+24>>2]=D}if(!ba){break S}}j=H[x+20>>2];M=0;while(1){m=H[z+16>>2];l=(M>>>0)/(m>>>0)|0;m=M-N(l,m)|0;r=(m<<J)+aa|0;s=H[x>>2];S=(r|0)>(s|0)?r:s;H[j>>2]=S;r=(l<<Q)+$|0;s=H[x+4>>2];C=(r|0)>(s|0)?r:s;H[j+4>>2]=C;m=(m+1<<J)+aa|0;r=H[x+8>>2];m=(m|0)<(r|0)?m:r;H[j+8>>2]=m;l=(l+1<<Q)+$|0;r=H[x+12>>2];r=(l|0)<(r|0)?l:r;H[j+12>>2]=r;l=(m>>31)+ma|0;T=l+1|0;s=l;l=m+la|0;s=m>>>0>l>>>0?T:s;S=S>>U;m=U&31;if((U&63)>>>0>=32){l=s>>m}else{l=((1<<m)-1&s)<<32-m|l>>>m}s=l-S<<U>>U;H[j+16>>2]=s;l=(r>>31)+ka|0;T=l+1|0;m=l;l=r+ja|0;r=l>>>0<r>>>0?T:m;C=C>>R;m=R&31;if((R&63)>>>0>=32){l=r>>m}else{l=((1<<m)-1&r)<<32-m|l>>>m}l=l-C<<R>>R;H[j+20>>2]=l;r=N(l,s);re(r,0,68);if(qa){Ba(k,1,2935,0);break L}l=N(r,68);m=H[j+24>>2];U:{V:{if(!(m|!r)){m=Fa(l);H[j+24>>2]=m;if(!m){break L}if(!l){break V}y(m,0,l);break V}if(l>>>0<=K[j+28>>2]){break U}m=Ha(m,l);if(!m){Ca(H[j+24>>2]);H[j+24>>2]=0;H[j+28>>2]=0;Ba(k,1,2549,0);break L}H[j+24>>2]=m;s=H[j+28>>2];T=l-s|0;if(!T){break V}y(m+s|0,0,T)}H[j+28>>2]=l}l=H[j+20>>2];m=H[j+16>>2];s=H[j+32>>2];W:{if(!s){l=gc(m,l,k);break W}l=ec(s,m,l,k)}H[j+32>>2]=l;l=H[j+20>>2];m=H[j+16>>2];s=H[j+36>>2];X:{if(!s){l=gc(m,l,k);break X}l=ec(s,m,l,k)}H[j+36>>2]=l;if(r){l=0;while(1){W=H[j+16>>2];T=(l>>>0)/(W>>>0)|0;m=H[j+24>>2]+N(l,68)|0;P=H[m>>2];Y:{if(P){pa=H[m+56>>2];sa=H[m+4>>2];s=H[m+48>>2];Ca(H[m+60>>2]);H[m+48>>2]=0;H[m+52>>2]=0;H[m+64>>2]=0;H[m+56>>2]=0;H[m+60>>2]=0;H[m+40>>2]=0;H[m+44>>2]=0;H[m+32>>2]=0;H[m+36>>2]=0;H[m+24>>2]=0;H[m+28>>2]=0;H[m+16>>2]=0;H[m+20>>2]=0;H[m+8>>2]=0;H[m+12>>2]=0;H[m>>2]=P;H[m+48>>2]=s;Z:{if(!s){break Z}s=N(s,24);if(!s){break Z}y(P,0,s)}H[m+56>>2]=pa;H[m+4>>2]=sa;break Y}s=Ea(10,24);H[m>>2]=s;if(!s){break L}H[m+48>>2]=10}s=(l-N(T,W)|0)+S|0;P=s<<U;W=H[j>>2];H[m+8>>2]=(P|0)>(W|0)?P:W;T=C+T|0;P=T<<R;W=H[j+4>>2];H[m+12>>2]=(P|0)>(W|0)?P:W;s=s+1<<U;P=H[j+8>>2];H[m+16>>2]=(s|0)<(P|0)?s:P;P=m;m=T+1<<R;s=H[j+12>>2];H[P+20>>2]=(m|0)<(s|0)?m:s;l=l+1|0;if((r|0)!=(l|0)){continue}break}}j=j+40|0;M=M+1|0;if((M|0)!=(ba|0)){continue}break}}da=da+8|0;x=x+36|0;ea=ea+1|0;if(ea>>>0<K[z+24>>2]){continue}break}z=z+152|0;j=n;_=_+1|0;if(_>>>0<K[q+20>>2]){continue}break}}Z=Z+52|0;q=q+76|0;E=E+1080|0;fa=fa+1|0;if(fa>>>0<K[V+16>>2]){continue}break}j=1;break K}Ba(k,1,2982,0);break L}Ba(k,1,2373,0)}j=0}if(!j){Ba(k,1,3668,0);j=0;break a}j=H[a+228>>2];H[t+4>>2]=N(H[a+128>>2],H[a+132>>2]);H[t>>2]=j+1;Ba(k,4,11825,t);H[b>>2]=H[a+228>>2];H[i>>2]=1;if(c){b=Rb(H[a+232>>2],0);H[c>>2]=b;j=0;if((b|0)==-1){break a}}b=H[H[H[a+232>>2]+20>>2]>>2];H[d>>2]=H[b>>2];H[e>>2]=H[b+4>>2];H[f>>2]=H[b+8>>2];H[g>>2]=H[b+12>>2];H[h>>2]=H[b+16>>2];H[a+8>>2]=H[a+8>>2]|128}j=1;break a}Ba(k,1,q,0)}Ba(k,1,3702,0);j=0}a=j;na=t+80|0;return a|0}function Vb(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,L=0,M=0,O=0,P=0,Q=0,R=0,S=0,T=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{switch(H[a+84>>2]){case 0:k:{c=H[a+52>>2];b=H[a+196>>2];if(c>>>0<b>>>0){q=H[a+64>>2];if(q>>>0<b+1>>>0){break k}}Ba(H[a+236>>2],1,8491,0);break b}if(!H[a+44>>2]){k=H[a+36>>2];b=0;break i}H[a+44>>2]=0;i=H[a+68>>2];b=1;break i;case 1:l:{c=H[a+52>>2];b=H[a+196>>2];if(c>>>0<b>>>0){q=H[a+64>>2];if(q>>>0<b+1>>>0){break l}}Ba(H[a+236>>2],1,8536,0);break b}if(!H[a+44>>2]){e=H[a+36>>2];b=0;break e}H[a+44>>2]=0;i=H[a+48>>2];b=1;break e;case 2:m:{A=H[a+52>>2];x=H[a+196>>2];if(A>>>0<x>>>0){r=H[a+64>>2];if(r>>>0<x+1>>>0){break m}}Ba(H[a+236>>2],1,8671,0);break b}if(!H[a+44>>2]){y=H[a+40>>2];break f}H[a+228>>2]=0;H[a+232>>2]=0;H[a+44>>2]=0;j=H[a+200>>2];while(1){O=j+(u<<4)|0;l=H[O+8>>2];if(l){q=H[O+12>>2];b=0;while(1){g=l+(b^-1)|0;d=q+(b<<4)|0;s=g+H[d>>2]|0;n:{if(s>>>0>31){break n}c=H[O>>2];if(c>>>0>-1>>>s>>>0){break n}c=c<<s;k=k?c>>>0>k>>>0?k:c:c;H[a+228>>2]=k}g=g+H[d+4>>2]|0;o:{if(g>>>0>31){break o}c=H[O+4>>2];if(c>>>0>-1>>>g>>>0){break o}c=c<<g;i=i?c>>>0>i>>>0?i:c:c;H[a+232>>2]=i}b=b+1|0;if((l|0)!=(b|0)){continue}break}}u=u+1|0;if((x|0)!=(u|0)){continue}break};if(!k|!i){break d}if(!I[a|0]){H[a+108>>2]=H[a+208>>2];H[a+100>>2]=H[a+204>>2];H[a+112>>2]=H[a+216>>2];H[a+104>>2]=H[a+212>>2]}o=H[a+48>>2];b=1;break f;case 3:p:{A=H[a+52>>2];l=H[a+196>>2];if(A>>>0<l>>>0){P=H[a+64>>2];if(P>>>0<l+1>>>0){break p}}Ba(H[a+236>>2],1,8626,0);break b}if(!H[a+44>>2]){B=H[a+200>>2];e=H[a+28>>2];y=B+(e<<4)|0;E=H[a+40>>2];break g}H[a+228>>2]=0;H[a+232>>2]=0;H[a+44>>2]=0;B=H[a+200>>2];while(1){x=(p<<4)+B|0;s=H[x+8>>2];if(s){q=H[x+12>>2];b=0;while(1){g=s+(b^-1)|0;d=q+(b<<4)|0;j=g+H[d>>2]|0;q:{if(j>>>0>31){break q}c=H[x>>2];if(c>>>0>-1>>>j>>>0){break q}c=c<<j;k=k?c>>>0>k>>>0?k:c:c;H[a+228>>2]=k}g=g+H[d+4>>2]|0;r:{if(g>>>0>31){break r}c=H[x+4>>2];if(c>>>0>-1>>>g>>>0){break r}c=c<<g;i=i?c>>>0>i>>>0?i:c:c;H[a+232>>2]=i}b=b+1|0;if((s|0)!=(b|0)){continue}break}}p=p+1|0;if((l|0)!=(p|0)){continue}break};if(!k|!i){break d}s:{if(I[a|0]){p=H[a+108>>2];break s}p=H[a+208>>2];H[a+108>>2]=p;H[a+100>>2]=H[a+204>>2];H[a+112>>2]=H[a+216>>2];H[a+104>>2]=H[a+212>>2]}b=1;break g;case 4:break j;default:break d}}t:{p=H[a+52>>2];b=H[a+196>>2];if(p>>>0<b>>>0){r=H[a+64>>2];if(r>>>0<b+1>>>0){break t}}Ba(H[a+236>>2],1,8581,0);break d}if(!H[a+44>>2]){p=H[a+28>>2];o=H[a+200>>2]+(p<<4)|0;u=H[a+40>>2];b=0;break h}H[a+28>>2]=p;H[a+44>>2]=0;b=1;break h}u:while(1){v:{w:{if(!b){k=k+1|0;break w}H[a+40>>2]=i;if(K[a+56>>2]<=i>>>0){break b}e=H[a+48>>2];b=0;break v}b=1}x:while(1){y:{z:{A:{B:{if(!b){H[a+32>>2]=e;if(K[a+60>>2]<=e>>>0){break B}H[a+28>>2]=c;b=c;o=0;break y}H[a+36>>2]=k;if(K[a+76>>2]<=k>>>0){b=H[a+28>>2];o=1;break y}b=((N(H[a+16>>2],H[a+32>>2])+N(H[a+12>>2],H[a+40>>2])|0)+N(H[a+20>>2],H[a+28>>2])|0)+N(H[a+24>>2],k)|0;if(b>>>0>=K[a+8>>2]){break c}b=H[a+4>>2]+(b<<1)|0;if(J[b>>1]){break A}break a}i=H[a+40>>2]+1|0;break z}b=0;continue u}b=1;continue u}while(1){C:{D:{E:{if(!o){if(b>>>0>=q>>>0){break E}g=H[a+32>>2];d=H[a+200>>2]+(b<<4)|0;if(g>>>0>=K[d+8>>2]){break C}if(!I[a|0]){b=H[d+12>>2]+(g<<4)|0;H[a+76>>2]=N(H[b+12>>2],H[b+8>>2])}k=H[a+72>>2];b=1;continue x}b=b+1|0;H[a+28>>2]=b;break D}e=H[a+32>>2]+1|0;b=0;continue x}o=0;continue}o=1;continue}}}}F:while(1){G:{H:{if(!b){u=u+1|0;H[a+40>>2]=u;break H}if(p>>>0>=r>>>0){break b}H[a+228>>2]=0;H[a+232>>2]=0;o=H[a+200>>2]+(p<<4)|0;s=H[o+8>>2];if(!s){break b}q=H[o+12>>2];k=0;e=0;b=0;while(1){g=s+(b^-1)|0;d=q+(b<<4)|0;j=g+H[d>>2]|0;I:{if(j>>>0>31){break I}c=H[o>>2];if(c>>>0>-1>>>j>>>0){break I}c=c<<j;e=e?c>>>0>e>>>0?e:c:c;H[a+228>>2]=e}g=g+H[d+4>>2]|0;J:{if(g>>>0>31){break J}c=H[o+4>>2];if(c>>>0>-1>>>g>>>0){break J}c=c<<g;k=k?c>>>0>k>>>0?k:c:c;H[a+232>>2]=k}b=b+1|0;if((s|0)!=(b|0)){continue}break}if(!e|!k){break d}K:{if(I[a|0]){k=H[a+108>>2];break K}k=H[a+208>>2];H[a+108>>2]=k;H[a+100>>2]=H[a+204>>2];H[a+112>>2]=H[a+216>>2];H[a+104>>2]=H[a+212>>2]}b=0;break G}b=1}L:while(1){M:{N:{O:{P:{if(!b){H[a+224>>2]=k;if(K[a+112>>2]<=k>>>0){break P}B=H[a+100>>2];b=0;break M}if(K[a+56>>2]<=u>>>0){i=H[a+32>>2];b=1;break M}b=((N(H[a+16>>2],H[a+32>>2])+N(H[a+12>>2],u)|0)+N(H[a+20>>2],p)|0)+N(H[a+24>>2],H[a+36>>2])|0;if(b>>>0>=K[a+8>>2]){break c}b=H[a+4>>2]+(b<<1)|0;if(J[b>>1]){break O}break a}p=p+1|0;H[a+28>>2]=p;break N}b=0;continue F}b=1;continue F}while(1){Q:{R:{S:{T:{if(!b){H[a+220>>2]=B;if(K[a+104>>2]<=B>>>0){break S}i=H[a+48>>2];break T}i=i+1|0}H[a+32>>2]=i;b=H[a+60>>2];d=H[o+8>>2];if((b>>>0<d>>>0?b:d)>>>0>i>>>0){g=H[o>>2];c=g;n=d+(i^-1)|0;m=n;d=m&31;if((m&63)>>>0>=32){b=c<<d;v=0}else{b=(1<<d)-1&g>>>32-d;v=g<<d}q=c;f=b;c=v;d=m&31;if((m&63)>>>0>=32){b=b>>>d|0}else{b=((1<<d)-1&b)<<32-d|c>>>d}if((q|0)!=(b|0)){break Q}b=m&31;if((m&63)>>>0>=32){b=-1>>>b|0}else{b=(1<<b)-1<<32-b|-1>>>b}c=H[o+4>>2];if((b&c)!=(c|0)){break Q}d=m&31;if((m&63)>>>0>=32){b=c<<d;w=0}else{b=(1<<d)-1&c>>>32-d;w=c<<d}C=b;q=b-!w|0;h=q;F=w-1|0;d=H[a+216>>2];j=F+d|0;O=ve(j,d>>>0>j>>>0?h+1|0:h,w,b);b=h;L=H[a+208>>2];d=F+L|0;b=L>>>0>d>>>0?b+1|0:b;s=ve(d,b,w,C);A=v-1|0;j=H[a+212>>2];l=A+j|0;d=f-!v|0;b=d;x=ve(l,l>>>0<j>>>0?b+1|0:b,v,f);D=H[a+204>>2];j=A+D|0;b=D>>>0>j>>>0?b+1|0:b;j=ve(j,b,v,f);z=H[o+12>>2]+(i<<4)|0;M=H[z>>2];t=M+n|0;b=t&31;if((t&63)>>>0>=32){b=-1>>>b|0}else{b=(1<<b)-1<<32-b|-1>>>b}if((g|0)!=(b&g)){break Q}h=c;P=H[z+4>>2];n=P+n|0;e=n&31;if((n&63)>>>0>=32){b=c<<e;e=0}else{b=(1<<e)-1&c>>>32-e;e=c<<e}c=e;l=n&31;if((n&63)>>>0>=32){c=b>>>l|0}else{c=((1<<l)-1&b)<<32-l|c>>>l}if((h|0)!=(c|0)){break Q}l=H[a+224>>2];e=!!(we(l,e,b)|qa);b=n&31;if((n&63)>>>0>=32){h=-1<<b;b=0}else{c=(1<<b)-1&-1>>>32-b;b=-1<<b;h=c|b}b=b^-1;c=h^-1;Q=e;R=b;b=0;n=s;e=m&31;if((m&63)>>>0>=32){h=n<<e;b=0}else{h=(1<<e)-1&n>>>32-e|b<<e;b=n<<e}if(Q&(!(R&b|c&h)|(l|0)!=(L|0))){break Q}n=t&31;c=H[a+220>>2];if((t&63)>>>0>=32){b=g<<n;e=0}else{b=(1<<n)-1&g>>>32-n;e=g<<n}n=!!(we(c,e,b)|qa);b=t&31;if((t&63)>>>0>=32){h=-1<<b;b=0}else{e=(1<<b)-1&-1>>>32-b;b=-1<<b;h=e|b}b=b^-1;g=h^-1;e=n;Q=b;b=0;n=j;t=m&31;if((m&63)>>>0>=32){h=j<<t;b=0}else{h=(1<<t)-1&n>>>32-t|b<<t;b=n<<t}if(e&(!(Q&b|g&h)|(c|0)!=(D|0))){break Q}n=H[z+8>>2];if(!n|(!H[z+12>>2]|(j|0)==(x|0))){break Q}if((s|0)==(O|0)){break Q}u=H[a+68>>2];H[a+40>>2]=u;b=d;c=c+A|0;b=c>>>0<A>>>0?b+1|0:b;g=(ve(c,b,v,f)>>>M)-(j>>>M)|0;b=q;c=l+F|0;b=c>>>0<l>>>0?b+1|0:b;S=a,T=N(n,(ve(c,b,w,C)>>>P)-(s>>>P)|0)+g|0,H[S+36>>2]=T;b=1;continue L}c=H[a+220>>2];b=H[a+228>>2];B=c+b-(c>>>0)%(b>>>0)|0;break R}c=H[a+224>>2];b=H[a+232>>2];k=c+b-(c>>>0)%(b>>>0)|0;b=0;continue L}b=0;continue}b=1;continue}}}}U:while(1){V:{W:{if(!b){E=E+1|0;H[a+40>>2]=E;break W}H[a+224>>2]=p;if(K[a+112>>2]<=p>>>0){break b}v=H[a+100>>2];b=0;break V}b=1}X:while(1){Y:{Z:{_:{$:{if(!b){H[a+220>>2]=v;if(K[a+104>>2]<=v>>>0){break $}H[a+28>>2]=A;e=A;b=0;break Y}if(K[a+56>>2]<=E>>>0){u=H[a+32>>2];b=1;break Y}b=((N(H[a+16>>2],H[a+32>>2])+N(H[a+12>>2],E)|0)+N(H[a+20>>2],e)|0)+N(H[a+24>>2],H[a+36>>2])|0;if(b>>>0>=K[a+8>>2]){break c}b=H[a+4>>2]+(b<<1)|0;if(J[b>>1]){break _}break a}c=H[a+224>>2];b=H[a+232>>2];p=c+b-(c>>>0)%(b>>>0)|0;break Z}b=0;continue U}b=1;continue U}while(1){aa:{ba:{ca:{da:{if(!b){if(e>>>0>=P>>>0){break ca}u=H[a+48>>2];H[a+32>>2]=u;y=(e<<4)+B|0;break da}u=u+1|0;H[a+32>>2]=u}b=H[a+60>>2];d=H[y+8>>2];if((b>>>0<d>>>0?b:d)>>>0>u>>>0){g=H[y>>2];c=g;f=d+(u^-1)|0;i=f;d=f&31;if((f&63)>>>0>=32){b=c<<d;k=0}else{b=(1<<d)-1&g>>>32-d;k=g<<d}q=c;t=b;c=k;d=i&31;if((i&63)>>>0>=32){b=b>>>d|0}else{b=((1<<d)-1&b)<<32-d|c>>>d}if((q|0)!=(b|0)){break aa}b=i&31;if((i&63)>>>0>=32){b=-1>>>b|0}else{b=(1<<b)-1<<32-b|-1>>>b}c=H[y+4>>2];if((b&c)!=(c|0)){break aa}d=i&31;if((i&63)>>>0>=32){b=c<<d;o=0}else{b=(1<<d)-1&c>>>32-d;o=c<<d}n=b;q=b-!o|0;h=q;F=o-1|0;d=H[a+216>>2];j=F+d|0;O=ve(j,d>>>0>j>>>0?h+1|0:h,o,b);b=h;w=H[a+208>>2];d=w+F|0;b=w>>>0>d>>>0?b+1|0:b;s=ve(d,b,o,n);C=k-1|0;j=H[a+212>>2];l=C+j|0;d=t-!k|0;b=d;x=ve(l,l>>>0<j>>>0?b+1|0:b,k,t);L=H[a+204>>2];j=C+L|0;b=L>>>0>j>>>0?b+1|0:b;j=ve(j,b,k,t);D=H[y+12>>2]+(u<<4)|0;z=H[D>>2];m=z+f|0;b=m&31;if((m&63)>>>0>=32){b=-1>>>b|0}else{b=(1<<b)-1<<32-b|-1>>>b}if((g|0)!=(b&g)){break aa}h=c;M=H[D+4>>2];f=M+f|0;r=f&31;if((f&63)>>>0>=32){b=c<<r;r=0}else{b=(1<<r)-1&c>>>32-r;r=c<<r}c=r;l=f&31;if((f&63)>>>0>=32){c=b>>>l|0}else{c=((1<<l)-1&b)<<32-l|c>>>l}if((h|0)!=(c|0)){break aa}l=H[a+224>>2];r=!!(we(l,r,b)|qa);b=f&31;if((f&63)>>>0>=32){h=-1<<b;b=0}else{c=(1<<b)-1&-1>>>32-b;b=-1<<b;h=c|b}b=b^-1;c=h^-1;Q=r;R=b;b=0;f=s;r=i&31;if((i&63)>>>0>=32){h=f<<r;b=0}else{h=(1<<r)-1&f>>>32-r|b<<r;b=f<<r}if(Q&(!(R&b|c&h)|(l|0)!=(w|0))){break aa}f=m&31;c=H[a+220>>2];if((m&63)>>>0>=32){b=g<<f;f=0}else{b=(1<<f)-1&g>>>32-f;f=g<<f}f=!!(we(c,f,b)|qa);b=m&31;if((m&63)>>>0>=32){h=-1<<b;b=0}else{g=(1<<b)-1&-1>>>32-b;b=-1<<b;h=g|b}b=b^-1;g=h^-1;r=f;w=b;b=0;f=j;m=i&31;if((i&63)>>>0>=32){h=f<<m;b=0}else{h=(1<<m)-1&f>>>32-m|b<<m;b=f<<m}if(r&(!(w&b|g&h)|(c|0)!=(L|0))){break aa}f=H[D+8>>2];if(!f|(!H[D+12>>2]|(j|0)==(x|0))){break aa}if((s|0)==(O|0)){break aa}E=H[a+68>>2];H[a+40>>2]=E;b=d;c=c+C|0;b=c>>>0<C>>>0?b+1|0:b;g=(ve(c,b,k,t)>>>z)-(j>>>z)|0;b=q;c=l+F|0;b=c>>>0<l>>>0?b+1|0:b;S=a,T=N(f,(ve(c,b,o,n)>>>M)-(s>>>M)|0)+g|0,H[S+36>>2]=T;b=1;continue X}e=e+1|0;H[a+28>>2]=e;break ba}c=H[a+220>>2];b=H[a+228>>2];v=c+b-(c>>>0)%(b>>>0)|0;b=0;continue X}b=0;continue}b=1;continue}}}}ea:while(1){fa:{ga:{if(!b){y=y+1|0;H[a+40>>2]=y;break ga}H[a+32>>2]=o;if(K[a+60>>2]<=o>>>0){break b}E=H[a+108>>2];b=0;break fa}b=1}ha:while(1){ia:{ja:{ka:{la:{if(!b){H[a+224>>2]=E;if(K[a+112>>2]<=E>>>0){break la}B=H[a+100>>2];b=0;break ia}if(K[a+56>>2]<=y>>>0){p=H[a+28>>2];b=1;break ia}b=((N(H[a+16>>2],H[a+32>>2])+N(H[a+12>>2],y)|0)+N(H[a+20>>2],H[a+28>>2])|0)+N(H[a+24>>2],H[a+36>>2])|0;if(b>>>0>=K[a+8>>2]){break c}b=H[a+4>>2]+(b<<1)|0;if(J[b>>1]){break ka}break a}o=H[a+32>>2]+1|0;break ja}b=0;continue ea}b=1;continue ea}while(1){ma:{na:{oa:{pa:{if(!b){H[a+220>>2]=B;if(K[a+104>>2]<=B>>>0){break oa}H[a+28>>2]=A;p=A;break pa}p=p+1|0;H[a+28>>2]=p}if(p>>>0<r>>>0){m=H[a+32>>2];e=H[a+200>>2]+(p<<4)|0;b=H[e+8>>2];if(m>>>0>=b>>>0){break ma}g=H[e>>2];c=g;f=b+(m^-1)|0;i=f;d=f&31;if((f&63)>>>0>=32){b=c<<d;v=0}else{b=(1<<d)-1&g>>>32-d;v=g<<d}q=c;t=b;c=v;d=i&31;if((i&63)>>>0>=32){b=b>>>d|0}else{b=((1<<d)-1&b)<<32-d|c>>>d}if((q|0)!=(b|0)){break ma}b=i&31;if((i&63)>>>0>=32){b=-1>>>b|0}else{b=(1<<b)-1<<32-b|-1>>>b}c=H[e+4>>2];if((b&c)!=(c|0)){break ma}d=i&31;if((i&63)>>>0>=32){b=c<<d;w=0}else{b=(1<<d)-1&c>>>32-d;w=c<<d}n=b;q=b-!w|0;h=q;F=w-1|0;d=H[a+216>>2];j=F+d|0;O=ve(j,d>>>0>j>>>0?h+1|0:h,w,b);b=h;L=H[a+208>>2];d=F+L|0;b=L>>>0>d>>>0?b+1|0:b;s=ve(d,b,w,n);C=v-1|0;j=H[a+212>>2];l=C+j|0;d=t-!v|0;b=d;x=ve(l,l>>>0<j>>>0?b+1|0:b,v,t);D=H[a+204>>2];j=C+D|0;b=D>>>0>j>>>0?b+1|0:b;j=ve(j,b,v,t);z=H[e+12>>2]+(m<<4)|0;M=H[z>>2];m=M+f|0;b=m&31;if((m&63)>>>0>=32){b=-1>>>b|0}else{b=(1<<b)-1<<32-b|-1>>>b}if((g|0)!=(b&g)){break ma}h=c;P=H[z+4>>2];f=P+f|0;e=f&31;if((f&63)>>>0>=32){b=c<<e;e=0}else{b=(1<<e)-1&c>>>32-e;e=c<<e}c=e;l=f&31;if((f&63)>>>0>=32){c=b>>>l|0}else{c=((1<<l)-1&b)<<32-l|c>>>l}if((h|0)!=(c|0)){break ma}l=H[a+224>>2];e=!!(we(l,e,b)|qa);b=f&31;if((f&63)>>>0>=32){h=-1<<b;b=0}else{c=(1<<b)-1&-1>>>32-b;b=-1<<b;h=c|b}b=b^-1;c=h^-1;k=e;Q=b;b=0;f=s;e=i&31;if((i&63)>>>0>=32){h=f<<e;b=0}else{h=(1<<e)-1&f>>>32-e|b<<e;b=f<<e}if(k&(!(Q&b|c&h)|(l|0)!=(L|0))){break ma}f=m&31;c=H[a+220>>2];if((m&63)>>>0>=32){b=g<<f;f=0}else{b=(1<<f)-1&g>>>32-f;f=g<<f}f=!!(we(c,f,b)|qa);b=m&31;if((m&63)>>>0>=32){h=-1<<b;b=0}else{e=(1<<b)-1&-1>>>32-b;b=-1<<b;h=e|b}b=b^-1;g=h^-1;e=f;k=b;b=0;f=j;m=i&31;if((i&63)>>>0>=32){h=f<<m;b=0}else{h=(1<<m)-1&f>>>32-m|b<<m;b=f<<m}if(e&(!(k&b|g&h)|(c|0)!=(D|0))){break ma}f=H[z+8>>2];if(!f|(!H[z+12>>2]|(j|0)==(x|0))){break ma}if((s|0)==(O|0)){break ma}y=H[a+68>>2];H[a+40>>2]=y;b=d;c=c+C|0;b=c>>>0<C>>>0?b+1|0:b;g=(ve(c,b,v,t)>>>M)-(j>>>M)|0;b=q;c=l+F|0;b=c>>>0<l>>>0?b+1|0:b;S=a,T=N(f,(ve(c,b,w,n)>>>P)-(s>>>P)|0)+g|0,H[S+36>>2]=T;b=1;continue ha}c=H[a+220>>2];b=H[a+228>>2];B=c+b-(c>>>0)%(b>>>0)|0;break na}c=H[a+224>>2];b=H[a+232>>2];E=c+b-(c>>>0)%(b>>>0)|0;b=0;continue ha}b=0;continue}b=1;continue}}}}qa:while(1){ra:{sa:{if(!b){e=e+1|0;break sa}H[a+32>>2]=i;if(K[a+60>>2]<=i>>>0){break b}k=H[a+68>>2];b=0;break ra}b=1}ta:while(1){ua:{va:{wa:{xa:{if(!b){H[a+40>>2]=k;if(K[a+56>>2]<=k>>>0){break xa}H[a+28>>2]=c;b=c;o=0;break ua}H[a+36>>2]=e;if(K[a+76>>2]<=e>>>0){b=H[a+28>>2];o=1;break ua}b=((N(H[a+16>>2],H[a+32>>2])+N(H[a+12>>2],H[a+40>>2])|0)+N(H[a+20>>2],H[a+28>>2])|0)+N(H[a+24>>2],e)|0;if(b>>>0>=K[a+8>>2]){break c}b=H[a+4>>2]+(b<<1)|0;if(J[b>>1]){break wa}break a}i=H[a+32>>2]+1|0;break va}b=0;continue qa}b=1;continue qa}while(1){ya:{za:{Aa:{if(!o){if(b>>>0>=q>>>0){break Aa}g=H[a+32>>2];d=H[a+200>>2]+(b<<4)|0;if(g>>>0>=K[d+8>>2]){break ya}if(!I[a|0]){b=H[d+12>>2]+(g<<4)|0;H[a+76>>2]=N(H[b+12>>2],H[b+8>>2])}e=H[a+72>>2];b=1;continue ta}b=b+1|0;H[a+28>>2]=b;break za}k=H[a+40>>2]+1|0;b=0;continue ta}o=0;continue}o=1;continue}}}}return 0}Ba(H[a+236>>2],1,1343,0)}return 0}G[b>>1]=1;return 1}function nd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=O(0),t=0,u=0,v=0,w=O(0),x=0,z=0,A=0,C=O(0),D=O(0),E=O(0),G=0,J=0,K=0,L=0,M=0,Q=O(0),R=0,S=0,T=0;n=na-8320|0;na=n;H[n+64>>2]=0;j=2;g=H[a>>2];a:{b:{if((g|0)==176622093){break b}if((g|0)!=1375686655){if(!((g|0)!=201326592|H[a+4>>2]!=538988650)&H[a+8>>2]==176622093){break b}Y(1101);j=1;break a}j=0}g=Ea(1,96);k=0;c:{if(!g){break c}H[g+76>>2]=1;d:{e:{f:{switch(j|0){case 0:H[g+88>>2]=68;H[g+84>>2]=69;H[g+80>>2]=70;H[g+16>>2]=71;H[g+4>>2]=72;H[g+28>>2]=73;H[g+24>>2]=74;H[g+20>>2]=75;H[g>>2]=76;H[g+92>>2]=77;H[g+44>>2]=78;H[g+40>>2]=79;H[g+36>>2]=80;H[g+32>>2]=81;H[g+12>>2]=82;H[g+8>>2]=83;i=Jb();H[g+48>>2]=i;if(i){break e}break d;case 2:break f;default:break d}}H[g+88>>2]=84;H[g+84>>2]=85;H[g+80>>2]=86;H[g+16>>2]=87;H[g+4>>2]=88;H[g+92>>2]=89;H[g+44>>2]=90;H[g+40>>2]=91;H[g+36>>2]=92;H[g+32>>2]=93;H[g+28>>2]=94;H[g+24>>2]=95;H[g+20>>2]=96;H[g+12>>2]=97;H[g+8>>2]=98;H[g>>2]=99;i=Ea(1,136);g:{if(i){k=Jb();H[i>>2]=k;h:{if(!k){break h}F[i+124|0]=0;H[i+116>>2]=0;H[i+120>>2]=0;H[i+108>>2]=0;H[i+112>>2]=0;k=qb();H[i+4>>2]=k;if(!k){break h}k=qb();H[i+8>>2]=k;if(!k){break h}break g}Fc(i)}i=0}H[g+48>>2]=i;if(!i){break d}}H[g+72>>2]=1;H[g+64>>2]=1;H[g+60>>2]=0;H[g+52>>2]=0;H[g+56>>2]=0;H[g+68>>2]=1;k=g;break c}Ca(g);k=0}g=k;if(g){H[g+60>>2]=0;H[g+72>>2]=100}if(g){H[g+56>>2]=0;H[g+68>>2]=101}if(g){H[g+52>>2]=0;H[g+64>>2]=102}i=n+68|0;if(i){y(i,0,8248);H[i+8248>>2]=0;H[i+8200>>2]=-1;H[i+8204>>2]=-1}if(d){H[n+8316>>2]=H[n+8316>>2]|1}H[n+60>>2]=b;H[n+56>>2]=a;H[n+52>>2]=a;j=1;b=0;i=n+52|0;i:{if(!i){break i}a=Ea(1,72);if(a){j:{H[a+64>>2]=1048576;k=Fa(1048576);H[a+32>>2]=k;if(!k){Ca(a);a=0;break j}H[a+36>>2]=k;H[a+28>>2]=2;H[a+24>>2]=3;H[a+20>>2]=4;H[a+16>>2]=5;H[a+44>>2]=6;H[a+40>>2]=8;H[a+68>>2]=H[a+68>>2]|2}}else{a=0}if(!a){break i}if(a){H[a+4>>2]=0;H[a>>2]=i}if(a){H[a+8>>2]=H[i+8>>2];H[a+12>>2]=0}if(!(!a|!(I[a+68|0]&2))){H[a+16>>2]=64}if(a){H[a+24>>2]=66}if(a){H[a+28>>2]=67}b=a}a=n+68|0;if(!g|!a){a=0}else{k:{if(!H[g+76>>2]){Ba(g+52|0,1,9902,0);a=0;break k}ra[H[g+24>>2]](H[g+48>>2],a);a=1}}if(!a){Y(1153);fb(b);hb(g);break a}if(!b|!g){a=0}else{l:{if(!H[g+76>>2]){Ba(g+52|0,1,9983,0);a=0;break l}a=ra[H[g>>2]](b,H[g+48>>2],n- -64|0,g+52|0)|0}}if(!a){Y(1181);fb(b);hb(g);Ua(H[n+64>>2]);break a}m:{if(!f){break m}if(g){a=ra[H[g+40>>2]](H[g+48>>2],f,g+52|0)|0}else{a=0}if(a){break m}Y(1116);fb(b);hb(g);Ua(H[n+64>>2]);break a}a=H[n+64>>2];n:{if(!H[g+76>>2]|(!g|!b)){a=0}else{a=ra[H[g+4>>2]](H[g+48>>2],b,a,g+52|0)|0}if(a){if(!H[g+76>>2]|(!g|!b)){a=0}else{a=ra[H[g+16>>2]](H[g+48>>2],b,g+52|0)|0}if(a){break n}}Y(1316);hb(g);fb(b);Ua(H[n+64>>2]);break a}fb(b);hb(g);l=H[n+64>>2];a=H[l+28>>2];if(a){Ca(a);l=H[n+64>>2];H[l+28>>2]=0;H[l+32>>2]=0}v=H[l+16>>2];o:{p:{if(!c){if(!(!e|(v|0)!=4)){p=1;v=4;break o}q:{b=H[l+20>>2];if(!((b|0)==3|(v|0)!=3)){a=H[l+24>>2];if(H[a>>2]!=H[a+4>>2]|H[a+52>>2]==1){break q}H[l+20>>2]=3;break p}if(v>>>0>2){break q}H[l+20>>2]=2;break o}r:{switch(b-3|0){case 2:s:{t:{if(v>>>0<4){break t}b=H[l+24>>2];a=H[b>>2];if((a|0)!=H[b+52>>2]|(a|0)!=H[b+104>>2]|(a|0)!=H[b+156>>2]){break t}a=H[b+4>>2];if((a|0)!=H[b+56>>2]|(a|0)!=H[b+108>>2]){break t}if((a|0)==H[b+160>>2]){break s}}H[n+20>>2]=1053;H[n+16>>2]=1373;Ga(26072,8179,n+16|0);break o}f=N(H[b+12>>2],H[b+8>>2]);C=O(O(1)/O((-1<<H[b+180>>2]^-1)>>>0));D=O(O(1)/O((-1<<H[b+128>>2]^-1)>>>0));w=O(O(1)/O((-1<<H[b+76>>2]^-1)>>>0));Q=O(O(1)/O((-1<<H[b+24>>2]^-1)>>>0));a=0;while(1){if((a|0)!=(f|0)){c=a<<2;g=c+H[b+148>>2]|0;i=H[g>>2];k=c+H[b+96>>2]|0;j=H[k>>2];m=c+H[b+44>>2]|0;s=O(O(1)-O(C*O(H[c+H[b+200>>2]>>2])));E=O(O(O(O(1)-O(Q*O(H[m>>2])))*O(255))*s);if(O(P(E))<O(2147483648)){c=~~E}else{c=-2147483648}H[m>>2]=c;E=O(O(O(O(1)-O(w*O(j|0)))*O(255))*s);if(O(P(E))<O(2147483648)){c=~~E}else{c=-2147483648}H[k>>2]=c;s=O(O(O(O(1)-O(D*O(i|0)))*O(255))*s);if(O(P(s))<O(2147483648)){c=~~s}else{c=-2147483648}H[g>>2]=c;a=a+1|0;continue}break};Ca(H[b+200>>2]);a=H[l+24>>2];H[a+128>>2]=8;H[a+76>>2]=8;H[a+24>>2]=8;H[a+200>>2]=0;H[l+20>>2]=1;a=H[l+16>>2]-1|0;H[l+16>>2]=a;h=3;while(1){if(a>>>0<=h>>>0){break o}a=H[l+24>>2]+N(h,52)|0;B(a,a+52|0,52);h=h+1|0;a=H[l+16>>2];continue};case 0:break p;case 1:break r;default:break o}}b=H[l+24>>2];a=H[b>>2];u:{v:{if((a|0)!=H[b+52>>2]|(a|0)!=H[b+104>>2]){break v}a=H[b+4>>2];if((a|0)!=H[b+56>>2]){break v}if((a|0)==H[b+108>>2]){break u}}H[n+36>>2]=1115;H[n+32>>2]=1373;Ga(26072,8221,n+32|0);break o}a=H[b+24>>2];c=-1<<a^-1;a=1<<a-1;g=H[b+136>>2]?0:a;i=H[b+84>>2]?0:a;k=N(H[b+12>>2],H[b+8>>2]);a=0;while(1){if((a|0)!=(k|0)){f=a<<2;j=f+H[b+44>>2]|0;m=f+H[b+148>>2]|0;s=O(H[m>>2]-g|0);h=f+H[b+96>>2]|0;C=O(H[h>>2]-i|0);D=O(H[j>>2]);w=O(O(O(s*O(1.4019900560379028))+O(O(C*O(-3680000008898787e-20))+D))+O(.5));if(O(P(w))<O(2147483648)){f=~~w}else{f=-2147483648}H[j>>2]=(c|0)<(f|0)?c:(f|0)>0?f:0;w=O(O(O(s*O(-.7141128182411194))+O(O(D*O(1.0003000497817993))+O(C*O(-.34412500262260437))))+O(.5));if(O(P(w))<O(2147483648)){f=~~w}else{f=-2147483648}H[h>>2]=(c|0)<(f|0)?c:(f|0)>0?f:0;s=O(O(O(s*O(-7999999979801942e-21))+O(O(D*O(.9998229742050171))+O(C*O(1.7720400094985962))))+O(.5));if(O(P(s))<O(2147483648)){f=~~s}else{f=-2147483648}H[m>>2]=(c|0)<(f|0)?c:(f|0)>0?f:0;a=a+1|0;continue}break}H[l+20>>2]=1;break o}v=c>>>0>v>>>0?v:c;p=1;break o}w:{x:{c=H[l+24>>2];if(H[c>>2]!=1){break x}y:{switch(H[c+52>>2]-1|0){case 1:if(H[c+104>>2]!=2){break x}if(!(H[c+4>>2]!=1|H[c+56>>2]!=2|H[c+108>>2]!=2)){b=H[c+24>>2];h=H[c+148>>2];a=H[c+96>>2];j=H[c+44>>2];G=H[c+60>>2];q=H[c+8>>2];f=H[c+12>>2];c=N(q,f)<<2;g=Ia(c);i=Ia(c);k=Ia(c);if(!(!g|!i|!k)){m=-1<<b^-1;o=1<<b-1;b=H[l+4>>2]&1;L=f-b|0;K=H[l>>2]&1;x=q-K|0;if(!b){c=k;f=i;b=g;break w}c=k;f=i;b=g;while(1){if((p|0)==(q|0)){break w}Ka(o,m,H[j>>2],0,0,b,f,c);p=p+1|0;c=c+4|0;f=f+4|0;b=b+4|0;j=j+4|0;continue}}Ca(g);Ca(i);Ca(k);break o}if(H[c+4>>2]!=1|H[c+56>>2]!=1|H[c+108>>2]!=1){break x}a=H[c+24>>2];f=H[c+148>>2];b=H[c+96>>2];h=H[c+44>>2];t=H[c+60>>2];g=H[c+8>>2];x=H[c+12>>2];c=N(g,x)<<2;i=Ia(c);k=Ia(c);m=Ia(c);if(!(!i|!k|!m)){o=-1<<a^-1;r=1<<a-1;z=H[l>>2]&1;a=g-z|0;G=a&1;u=a>>>1|0;J=a&-2;a=m;j=k;c=i;while(1){if((q|0)!=(x|0)){if(z){Ka(r,o,H[h>>2],0,0,c,j,a);j=j+4|0;c=c+4|0;h=h+4|0;a=a+4|0}g=0;while(1){if(g>>>0<J>>>0){Ka(r,o,H[h>>2],H[b>>2],H[f>>2],c,j,a);Ka(r,o,H[h+4>>2],H[b>>2],H[f>>2],c+4|0,j+4|0,a+4|0);g=g+2|0;f=f+4|0;b=b+4|0;a=a+8|0;j=j+8|0;c=c+8|0;h=h+8|0;continue}break}z:{if(!G){break z}g=H[h>>2];A:{if((t|0)==(u|0)){Ka(r,o,g,0,0,c,j,a);break A}Ka(r,o,g,H[b>>2],H[f>>2],c,j,a)}a=a+4|0;j=j+4|0;c=c+4|0;h=h+4|0;if(t>>>0<=u>>>0){break z}f=f+4|0;b=b+4|0}q=q+1|0;continue}break}Ca(H[H[l+24>>2]+44>>2]);a=H[l+24>>2];H[a+44>>2]=i;Ca(H[a+96>>2]);a=H[l+24>>2];H[a+96>>2]=k;Ca(H[a+148>>2]);a=H[l+24>>2];H[a+148>>2]=m;b=H[a+8>>2];H[a+112>>2]=b;H[a+60>>2]=b;b=H[a+12>>2];H[a+116>>2]=b;H[a+64>>2]=b;b=H[a>>2];H[a+104>>2]=b;H[a+52>>2]=b;b=H[a+4>>2];H[a+108>>2]=b;H[a+56>>2]=b;H[l+20>>2]=1;break o}Ca(i);Ca(k);Ca(m);break o;case 0:break y;default:break x}}if(H[c+104>>2]!=1|H[c+4>>2]!=1|(H[c+56>>2]!=1|H[c+108>>2]!=1)){break x}b=H[c+24>>2];h=H[c+148>>2];a=H[c+96>>2];j=H[c+44>>2];o=N(H[c+12>>2],H[c+8>>2]);c=o<<2;i=Ia(c);k=Ia(c);m=Ia(c);if(!(!i|!k|!m)){q=-1<<b^-1;r=1<<b-1;c=0;f=m;b=k;g=i;while(1){if((c|0)!=(o|0)){Ka(r,q,H[j>>2],H[a>>2],H[h>>2],g,b,f);c=c+1|0;f=f+4|0;b=b+4|0;g=g+4|0;h=h+4|0;a=a+4|0;j=j+4|0;continue}break}Ca(H[H[l+24>>2]+44>>2]);a=H[l+24>>2];H[a+44>>2]=i;Ca(H[a+96>>2]);a=H[l+24>>2];H[a+96>>2]=k;Ca(H[a+148>>2]);H[H[l+24>>2]+148>>2]=m;H[l+20>>2]=1;break o}Ca(i);Ca(k);Ca(m);break o}H[n+4>>2]=463;H[n>>2]=1373;Ga(26072,8264,n);break o}J=x>>>1|0;z=x&-2;R=L&-2;u=q<<2;while(1){if(M>>>0<R>>>0){p=c+u|0;r=f+u|0;q=b+u|0;t=j+u|0;if(K){Ka(o,m,H[j>>2],0,0,b,f,c);Ka(o,m,H[t>>2],H[a>>2],H[h>>2],q,r,p);p=p+4|0;r=r+4|0;q=q+4|0;t=t+4|0;c=c+4|0;f=f+4|0;j=j+4|0;b=b+4|0}A=0;while(1){if(z>>>0>A>>>0){Ka(o,m,H[j>>2],H[a>>2],H[h>>2],b,f,c);Ka(o,m,H[j+4>>2],H[a>>2],H[h>>2],b+4|0,f+4|0,c+4|0);Ka(o,m,H[t>>2],H[a>>2],H[h>>2],q,r,p);Ka(o,m,H[t+4>>2],H[a>>2],H[h>>2],q+4|0,r+4|0,p+4|0);A=A+2|0;h=h+4|0;a=a+4|0;p=p+8|0;r=r+8|0;q=q+8|0;t=t+8|0;c=c+8|0;f=f+8|0;b=b+8|0;j=j+8|0;continue}break}B:{if((x|0)==(z|0)){break B}A=H[j>>2];C:{if((G|0)==(J|0)){Ka(o,m,A,0,0,b,f,c);Ka(o,m,H[t>>2],0,0,q,r,p);break C}Ka(o,m,A,H[a>>2],H[h>>2],b,f,c);Ka(o,m,H[t>>2],H[a>>2],H[h>>2],q,r,p)}c=c+4|0;f=f+4|0;b=b+4|0;j=j+4|0;if(G>>>0<=J>>>0){break B}h=h+4|0;a=a+4|0}M=M+2|0;c=c+u|0;f=f+u|0;b=b+u|0;j=j+u|0;continue}break}D:{if(!(L&1)){break D}if(K){Ka(o,m,H[j>>2],0,0,b,f,c);c=c+4|0;f=f+4|0;j=j+4|0;b=b+4|0}p=0;while(1){if(p>>>0<z>>>0){Ka(o,m,H[j>>2],H[a>>2],H[h>>2],b,f,c);Ka(o,m,H[j+4>>2],H[a>>2],H[h>>2],b+4|0,f+4|0,c+4|0);p=p+2|0;h=h+4|0;a=a+4|0;c=c+8|0;f=f+8|0;b=b+8|0;j=j+8|0;continue}break}if((x|0)==(z|0)){break D}j=H[j>>2];if((G|0)==(J|0)){Ka(o,m,j,0,0,b,f,c);break D}Ka(o,m,j,H[a>>2],H[h>>2],b,f,c)}Ca(H[H[l+24>>2]+44>>2]);a=H[l+24>>2];H[a+44>>2]=g;Ca(H[a+96>>2]);a=H[l+24>>2];H[a+96>>2]=i;Ca(H[a+148>>2]);a=H[l+24>>2];H[a+148>>2]=k;b=H[a+8>>2];H[a+112>>2]=b;H[a+60>>2]=b;b=H[a+12>>2];H[a+116>>2]=b;H[a+64>>2]=b;b=H[a>>2];H[a+104>>2]=b;H[a+52>>2]=b;b=H[a+4>>2];H[a+108>>2]=b;H[a+56>>2]=b;H[l+20>>2]=1;p=0}c=H[n+64>>2];E:{if(d){break E}b=0;while(1){if((b|0)==(v|0)){break E}a=H[c+24>>2]+N(b,52)|0;d=H[a+24>>2];if((d|0)!=8){F:{if(d>>>0<=7){f=N(H[a+12>>2],H[a+8>>2]);g=H[a+44>>2];if(H[a+32>>2]){i=1<<d-1;h=0;while(1){if((f|0)==(h|0)){break F}d=g+(h<<2)|0;m=d;d=H[d>>2];k=d>>31<<7|d>>>25;S=m,T=ue(d<<7,k,i,0),H[S>>2]=T;h=h+1|0;continue}}d=-1<<d^-1;h=0;while(1){if((f|0)==(h|0)){break F}i=g+(h<<2)|0;k=ve(re(H[i>>2],0,255),qa,d,0);H[i>>2]=k;h=h+1|0;continue}}d=d-8|0;f=N(H[a+12>>2],H[a+8>>2]);g=H[a+44>>2];h=0;if(H[a+32>>2]){while(1){if((f|0)==(h|0)){break F}i=g+(h<<2)|0;H[i>>2]=H[i>>2]>>d;h=h+1|0;continue}}while(1){if((f|0)==(h|0)){break F}i=g+(h<<2)|0;H[i>>2]=H[i>>2]>>>d;h=h+1|0;continue}}H[a+24>>2]=8}b=b+1|0;continue}}a=H[c+24>>2];b=N(H[a+12>>2],H[a+8>>2]);G:{if(!p){if(H[c+20>>2]==2){if(H[c+16>>2]==1){ma(H[a+44>>2],b|0);break G}if(!e){break G}da(H[a+44>>2],H[a+96>>2],b|0);break G}ca(H[a+44>>2],H[a+96>>2],H[a+148>>2],b|0);break G}H:{switch(v-1|0){case 0:ba(H[a+44>>2],b|0);break G;case 2:aa(H[a+44>>2],H[a+96>>2],H[a+148>>2],b|0);break G;case 3:break H;default:break G}}$(H[a+44>>2],H[a+96>>2],H[a+148>>2],H[a+200>>2],b|0)}Ua(H[n+64>>2]);j=0}na=n+8320|0;return j|0}function ac(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,z=0,A=0,C=0,D=0,E=0,F=0,G=0,I=0,J=0,L=0,M=0,O=0,P=0;j=H[a>>2];a:{if(j>>>0<d>>>0|b>>>0>=d>>>0|b>>>0>=j>>>0){break a}j=H[a+4>>2];if(j>>>0<e>>>0|c>>>0>=e>>>0|c>>>0>=j>>>0){break a}E=(c>>>0)/K[a+12>>2]|0;s=H[a+8>>2];G=(b>>>0)/(s>>>0)|0;M=(N(s,G)-b|0)+s|0;I=(g|0)!=8;z=c;while(1){k=H[a+12>>2];j=k;j=(c|0)==(z|0)?j-((c>>>0)%(j>>>0)|0)|0:j;t=e-z|0;r=j>>>0<t>>>0?j:t;A=r&-4;u=r&3;O=r&-8;J=r&7;x=r-1|0;P=(g|0)==2&(r|0)==1;L=N(k-j|0,s);C=(N(z-c|0,h)<<2)+f|0;F=G;t=b;while(1){j=(b|0)==(t|0)?M:s;k=d-t|0;q=j>>>0<k>>>0?j:k;k=s-j|0;l=F<<2;j=H[l+(H[a+24>>2]+(N(H[a+16>>2],E)<<2)|0)>>2];b:{c:{d:{e:{f:{g:{if(i){h:{i:{j:{k:{if(j){l=((L<<2)+j|0)+(k<<2)|0;j=t-b|0;if((g|0)==1){break h}m=(N(g,j)<<2)+C|0;if((q|0)==1){break i}if(P){break j}if(q>>>0<=7|I){break k}if(!r){break b}o=q&-4;k=0;while(1){j=0;while(1){H[(j<<5)+m>>2]=H[(j<<2)+l>>2];n=j|1;H[(n<<5)+m>>2]=H[(n<<2)+l>>2];n=j|2;H[(n<<5)+m>>2]=H[(n<<2)+l>>2];n=j|3;H[(n<<5)+m>>2]=H[(n<<2)+l>>2];j=j+4|0;if(o>>>0>j>>>0){continue}break}if(j>>>0<q>>>0){while(1){H[(j<<5)+m>>2]=H[(j<<2)+l>>2];j=j+1|0;if((q|0)!=(j|0)){continue}break}}l=(s<<2)+l|0;m=(h<<2)+m|0;k=k+1|0;if((r|0)!=(k|0)){continue}break}break b}if((g|0)!=1){if(!r){break b}p=q&-4;n=q&3;l=(N(t-b|0,g)<<2)+C|0;o=0;D=q-1>>>0<3;while(1){l:{if(!q){break l}m=0;j=0;k=0;if(!D){while(1){H[(N(g,j)<<2)+l>>2]=0;H[(N(j|1,g)<<2)+l>>2]=0;H[(N(j|2,g)<<2)+l>>2]=0;H[(N(j|3,g)<<2)+l>>2]=0;j=j+4|0;k=k+4|0;if((p|0)!=(k|0)){continue}break}if(!n){break l}}while(1){H[(N(g,j)<<2)+l>>2]=0;j=j+1|0;m=m+1|0;if((n|0)!=(m|0)){continue}break}}l=(h<<2)+l|0;o=o+1|0;if((r|0)!=(o|0)){continue}break}break b}if(!r){break b}l=q<<2;k=(t-b<<2)+C|0;o=0;if(x>>>0>=7){break g}break f}if(!r){break b}D=q&-4;p=q&3;n=0;v=q-1>>>0<3;break c}j=0;k=q&-4;if(k){while(1){H[(j<<3)+m>>2]=H[(j<<2)+l>>2];o=j|1;H[(o<<3)+m>>2]=H[(o<<2)+l>>2];o=j|2;H[(o<<3)+m>>2]=H[(o<<2)+l>>2];o=j|3;H[(o<<3)+m>>2]=H[(o<<2)+l>>2];j=j+4|0;if(k>>>0>j>>>0){continue}break}}if(j>>>0>=q>>>0){break b}o=0;k=j;n=q-j&3;if(n){while(1){H[(k<<3)+m>>2]=H[(k<<2)+l>>2];k=k+1|0;o=o+1|0;if((n|0)!=(o|0)){continue}break}}if(j-q>>>0>4294967292){break b}while(1){H[(k<<3)+m>>2]=H[(k<<2)+l>>2];j=k+1|0;H[(j<<3)+m>>2]=H[(j<<2)+l>>2];j=k+2|0;H[(j<<3)+m>>2]=H[(j<<2)+l>>2];j=k+3|0;H[(j<<3)+m>>2]=H[(j<<2)+l>>2];k=k+4|0;if((q|0)!=(k|0)){continue}break}break b}if(!r){break b}k=0;if(x>>>0>=3){while(1){H[m>>2]=H[l>>2];j=h<<2;m=j+m|0;p=l;l=s<<2;o=p+l|0;H[m>>2]=H[o>>2];m=j+m|0;o=l+o|0;H[m>>2]=H[o>>2];m=j+m|0;o=l+o|0;H[m>>2]=H[o>>2];l=l+o|0;m=j+m|0;k=k+4|0;if((A|0)!=(k|0)){continue}break}if(!u){break b}}j=0;while(1){H[m>>2]=H[l>>2];l=(s<<2)+l|0;m=(h<<2)+m|0;j=j+1|0;if((u|0)!=(j|0)){continue}break}break b}j=(j<<2)+C|0;if((q|0)!=4){if(!r){break b}m=q<<2;o=0;if(x>>>0>=3){break e}break d}if(!r){break b}o=0;if(x>>>0>=3){while(1){k=H[l+12>>2];H[j+8>>2]=H[l+8>>2];H[j+12>>2]=k;k=H[l+4>>2];H[j>>2]=H[l>>2];H[j+4>>2]=k;k=l;l=s<<2;k=k+l|0;n=H[k+12>>2];m=h<<2;j=m+j|0;H[j+8>>2]=H[k+8>>2];H[j+12>>2]=n;n=H[k+4>>2];H[j>>2]=H[k>>2];H[j+4>>2]=n;k=l+k|0;n=H[k+12>>2];j=j+m|0;H[j+8>>2]=H[k+8>>2];H[j+12>>2]=n;n=H[k+4>>2];H[j>>2]=H[k>>2];H[j+4>>2]=n;k=l+k|0;n=H[k+12>>2];j=j+m|0;H[j+8>>2]=H[k+8>>2];H[j+12>>2]=n;n=H[k+4>>2];H[j>>2]=H[k>>2];H[j+4>>2]=n;l=l+k|0;j=j+m|0;o=o+4|0;if((A|0)!=(o|0)){continue}break}if(!u){break b}}m=0;while(1){k=H[l+12>>2];H[j+8>>2]=H[l+8>>2];H[j+12>>2]=k;k=H[l+4>>2];H[j>>2]=H[l>>2];H[j+4>>2]=k;l=(s<<2)+l|0;j=(h<<2)+j|0;m=m+1|0;if((u|0)!=(m|0)){continue}break}break b}if(!j){j=Ea(1,N(H[a+8>>2],H[a+12>>2])<<2);if(!j){return 0}H[l+(H[a+24>>2]+(N(H[a+16>>2],E)<<2)|0)>>2]=j}l=((L<<2)+j|0)+(k<<2)|0;j=t-b|0;m:{n:{o:{p:{q:{r:{if((g|0)!=1){m=(N(g,j)<<2)+C|0;if((q|0)==1){break r}if(q>>>0<=7|I){break q}if(!r){break b}o=q&-4;k=0;while(1){j=0;while(1){H[(j<<2)+l>>2]=H[(j<<5)+m>>2];n=j|1;H[(n<<2)+l>>2]=H[(n<<5)+m>>2];n=j|2;H[(n<<2)+l>>2]=H[(n<<5)+m>>2];n=j|3;H[(n<<2)+l>>2]=H[(n<<5)+m>>2];j=j+4|0;if(o>>>0>j>>>0){continue}break}if(j>>>0<q>>>0){while(1){H[(j<<2)+l>>2]=H[(j<<5)+m>>2];j=j+1|0;if((q|0)!=(j|0)){continue}break}}l=(s<<2)+l|0;m=(h<<2)+m|0;k=k+1|0;if((r|0)!=(k|0)){continue}break}break b}j=(j<<2)+C|0;if((q|0)==4){break p}if(!r){break b}m=q<<2;o=0;if(x>>>0>=3){break o}break n}if(!r){break b}o=0;if(x>>>0>=3){while(1){H[l>>2]=H[m>>2];j=s<<2;l=j+l|0;k=h<<2;m=k+m|0;H[l>>2]=H[m>>2];l=j+l|0;m=k+m|0;H[l>>2]=H[m>>2];l=j+l|0;m=k+m|0;H[l>>2]=H[m>>2];l=j+l|0;m=k+m|0;o=o+4|0;if((A|0)!=(o|0)){continue}break}if(!u){break b}}j=0;while(1){H[l>>2]=H[m>>2];l=(s<<2)+l|0;m=(h<<2)+m|0;j=j+1|0;if((u|0)!=(j|0)){continue}break}break b}if(!r){break b}D=q&-4;p=q&3;n=0;break m}if(!r){break b}o=0;if(x>>>0>=3){while(1){k=H[j+12>>2];H[l+8>>2]=H[j+8>>2];H[l+12>>2]=k;k=H[j+4>>2];H[l>>2]=H[j>>2];H[l+4>>2]=k;m=h<<2;j=m+j|0;n=H[j+12>>2];k=l;l=s<<2;k=k+l|0;H[k+8>>2]=H[j+8>>2];H[k+12>>2]=n;n=H[j+4>>2];H[k>>2]=H[j>>2];H[k+4>>2]=n;j=j+m|0;n=H[j+12>>2];k=l+k|0;H[k+8>>2]=H[j+8>>2];H[k+12>>2]=n;n=H[j+4>>2];H[k>>2]=H[j>>2];H[k+4>>2]=n;j=j+m|0;n=H[j+12>>2];k=l+k|0;H[k+8>>2]=H[j+8>>2];H[k+12>>2]=n;n=H[j+4>>2];H[k>>2]=H[j>>2];H[k+4>>2]=n;j=j+m|0;l=l+k|0;o=o+4|0;if((A|0)!=(o|0)){continue}break}if(!u){break b}}m=0;while(1){k=H[j+12>>2];H[l+8>>2]=H[j+8>>2];H[l+12>>2]=k;k=H[j+4>>2];H[l>>2]=H[j>>2];H[l+4>>2]=k;j=(h<<2)+j|0;l=(s<<2)+l|0;m=m+1|0;if((u|0)!=(m|0)){continue}break}break b}while(1){k=!m;if(!k){B(l,j,m)}p=j;j=h<<2;n=p+j|0;p=l;l=s<<2;p=p+l|0;if(!k){B(p,n,m)}n=j+n|0;p=l+p|0;if(!k){B(p,n,m)}n=j+n|0;p=l+p|0;if(!k){B(p,n,m)}j=j+n|0;l=l+p|0;o=o+4|0;if((A|0)!=(o|0)){continue}break}if(!u){break b}}k=0;while(1){if(m){B(l,j,m)}j=(h<<2)+j|0;l=(s<<2)+l|0;k=k+1|0;if((u|0)!=(k|0)){continue}break}break b}while(1){s:{if(!q){break s}k=0;j=0;o=0;if(q>>>0>=4){while(1){H[(j<<2)+l>>2]=H[(N(g,j)<<2)+m>>2];v=j|1;H[(v<<2)+l>>2]=H[(N(g,v)<<2)+m>>2];v=j|2;H[(v<<2)+l>>2]=H[(N(g,v)<<2)+m>>2];v=j|3;H[(v<<2)+l>>2]=H[(N(g,v)<<2)+m>>2];j=j+4|0;o=o+4|0;if((D|0)!=(o|0)){continue}break}if(!p){break s}}while(1){H[(j<<2)+l>>2]=H[(N(g,j)<<2)+m>>2];j=j+1|0;k=k+1|0;if((p|0)!=(k|0)){continue}break}}l=(s<<2)+l|0;m=(h<<2)+m|0;n=n+1|0;if((r|0)!=(n|0)){continue}break}break b}while(1){j=!l;if(!j){y(k,0,l)}p=k;k=h<<2;m=p+k|0;if(!j){y(m,0,l)}m=k+m|0;if(!j){y(m,0,l)}m=k+m|0;if(!j){y(m,0,l)}m=k+m|0;if(!j){y(m,0,l)}m=k+m|0;if(!j){y(m,0,l)}m=k+m|0;if(!j){y(m,0,l)}m=k+m|0;if(!j){y(m,0,l)}k=k+m|0;o=o+8|0;if((O|0)!=(o|0)){continue}break}if(!J){break b}}j=0;while(1){if(l){y(k,0,l)}k=(h<<2)+k|0;j=j+1|0;if((J|0)!=(j|0)){continue}break}break b}while(1){k=!m;if(!k){B(j,l,m)}p=l;l=s<<2;n=p+l|0;p=j;j=h<<2;p=p+j|0;if(!k){B(p,n,m)}n=l+n|0;p=j+p|0;if(!k){B(p,n,m)}n=l+n|0;p=j+p|0;if(!k){B(p,n,m)}l=l+n|0;j=j+p|0;o=o+4|0;if((A|0)!=(o|0)){continue}break}if(!u){break b}}k=0;while(1){if(m){B(j,l,m)}l=(s<<2)+l|0;j=(h<<2)+j|0;k=k+1|0;if((u|0)!=(k|0)){continue}break}break b}while(1){t:{if(!q){break t}k=0;j=0;o=0;if(!v){while(1){H[(N(g,j)<<2)+m>>2]=H[(j<<2)+l>>2];w=j|1;H[(N(w,g)<<2)+m>>2]=H[(w<<2)+l>>2];w=j|2;H[(N(w,g)<<2)+m>>2]=H[(w<<2)+l>>2];w=j|3;H[(N(w,g)<<2)+m>>2]=H[(w<<2)+l>>2];j=j+4|0;o=o+4|0;if((D|0)!=(o|0)){continue}break}if(!p){break t}}while(1){H[(N(g,j)<<2)+m>>2]=H[(j<<2)+l>>2];j=j+1|0;k=k+1|0;if((p|0)!=(k|0)){continue}break}}l=(s<<2)+l|0;m=(h<<2)+m|0;n=n+1|0;if((r|0)!=(n|0)){continue}break}}F=F+1|0;t=q+t|0;if(t>>>0<d>>>0){continue}break}E=E+1|0;z=r+z|0;if(z>>>0<e>>>0){continue}break}}return 1}function Od(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;if(!c){return 0}if(!Gb(H[a>>2],b,c,d)){Ba(d,1,6210,0);return 0}n=c;m=d;g=na-240|0;na=g;r=1;o=a;a:{if(H[H[a>>2]+60>>2]|H[a+128>>2]){break a}b:{c=H[a+116>>2];c:{if(!c){a=H[a+120>>2];break c}b=H[n+16>>2];a=H[o+120>>2];if(!(!a|!H[a+12>>2])){b=I[a+18|0]}d:{d=J[c+4>>1];if(d){c=H[c>>2];while(1){f=c+N(e,6)|0;h=J[f>>1];if(h>>>0>=b>>>0){H[g+180>>2]=b;H[g+176>>2]=h;Ba(m,1,13715,g+176|0);r=0;break a}e:{f=J[f+4>>1];if((f+1&65535)>>>0<2){break e}f=f-1|0;if(f>>>0<b>>>0){break e}H[g+164>>2]=b;H[g+160>>2]=f;Ba(m,1,13715,g+160|0);r=0;break a}e=e+1|0;if((d|0)!=(e|0)){continue}break}break d}if(b){break b}break c}while(1){b=b-1|0;e=0;while(1){if(J[c+N(e,6)>>1]!=(b|0)){e=e+1|0;if((d|0)!=(e|0)){continue}break b}break}if(b){continue}break}}f:{if(!a){break f}c=H[a+12>>2];if(!c){break f}g:{b=I[a+18|0];h:{if(b){e=0;h=1;while(1){a=H[n+16>>2];d=J[c+(e<<2)>>1];if(a>>>0<=d>>>0){H[g+148>>2]=a;H[g+144>>2]=d;Ba(m,1,13715,g+144|0);h=0}e=e+1|0;if((b|0)!=(e|0)){continue}break}a=Ea(b,4);if(!a){break h}e=0;while(1){d=c+(e<<2)|0;f=I[d+2|0];i:{if(f>>>0>=2){H[g+68>>2]=f;H[g+64>>2]=e;Ba(m,1,12094,g- -64|0);h=0;break i}d=I[d+3|0];if(d>>>0>=b>>>0){H[g+128>>2]=d;Ba(m,1,12038,g+128|0);h=0;break i}j=(f|0)!=1;i=(d<<2)+a|0;if(!(j|!H[i>>2])){H[g+80>>2]=d;Ba(m,1,11527,g+80|0);h=0;break i}if(!(f|!d)){H[g+100>>2]=d;H[g+96>>2]=e;Ba(m,1,11901,g+96|0);h=0;break i}if(!(j|(d|0)==(e|0))){H[g+120>>2]=d;H[g+116>>2]=e;H[g+112>>2]=e;Ba(m,1,11937,g+112|0);h=0;break i}H[i>>2]=1}e=e+1|0;if((b|0)!=(e|0)){continue}break}h=!h;e=0;while(1){j:{d=e<<2;if(I[(c+d|0)+2|0]?H[d+a>>2]:1){e=e+1|0;if((b|0)!=(e|0)){continue}if(h&1){break j}if(H[n+16>>2]!=1){break g}e=0;while(1){if(H[(e<<2)+a>>2]){e=e+1|0;if((b|0)!=(e|0)){continue}break g}break}d=0;Ba(m,2,9253,0);f=b&3;e=0;if(b>>>0>=4){h=b&252;b=0;while(1){j=c+(e<<2)|0;F[j+3|0]=e;F[j+2|0]=1;j=e|1;i=c+(j<<2)|0;F[i+3|0]=j;F[i+2|0]=1;j=e|2;i=c+(j<<2)|0;F[i+3|0]=j;F[i+2|0]=1;j=e|3;i=c+(j<<2)|0;F[i+3|0]=j;F[i+2|0]=1;e=e+4|0;b=b+4|0;if((h|0)!=(b|0)){continue}break}if(!f){break g}}while(1){b=c+(e<<2)|0;F[b+3|0]=e;F[b+2|0]=1;e=e+1|0;d=d+1|0;if((f|0)!=(d|0)){continue}break}break g}H[g+48>>2]=e;h=1;Ba(m,1,11101,g+48|0);e=e+1|0;if((b|0)!=(e|0)){continue}}break}Ca(a);r=0;break a}a=Ea(b,4);if(a){break g}}r=0;Ba(m,1,12285,0);break a}Ca(a)}a=H[o+120>>2];k:{if(!a){break k}l=H[a+12>>2];if(!l){Ca(H[a+4>>2]);Ca(H[H[o+120>>2]+8>>2]);Ca(H[H[o+120>>2]>>2]);a=H[o+120>>2];b=H[a+12>>2];if(b){Ca(b);a=H[o+120>>2]}Ca(a);H[o+120>>2]=0;break k}j=H[n+24>>2];l:{c=I[a+18|0];m:{if(c){u=H[a>>2];h=H[a+4>>2];i=H[a+8>>2];e=0;n:{while(1){if(H[(j+N(J[l+(e<<2)>>1],52)|0)+44>>2]){e=e+1|0;if((c|0)!=(e|0)){continue}break n}break}H[g+32>>2]=e;Ba(m,1,13877,g+32|0);r=0;break a}f=Fa(N(c,52));if(!f){break m}d=0;while(1){a=l+(d<<2)|0;e=J[a>>1];b=N(I[a+2|0]?I[a+3|0]:d,52)+f|0;a=j+N(e,52)|0;H[b+48>>2]=H[a+48>>2];e=H[a+44>>2];H[b+40>>2]=H[a+40>>2];H[b+44>>2]=e;e=H[a+36>>2];H[b+32>>2]=H[a+32>>2];H[b+36>>2]=e;e=H[a+28>>2];H[b+24>>2]=H[a+24>>2];H[b+28>>2]=e;e=H[a+20>>2];H[b+16>>2]=H[a+16>>2];H[b+20>>2]=e;e=H[a+12>>2];H[b+8>>2]=H[a+8>>2];H[b+12>>2]=e;e=H[a+4>>2];H[b>>2]=H[a>>2];H[b+4>>2]=e;b=N(d,52)+f|0;a=Ia(N(H[a+8>>2],H[a+12>>2])<<2);H[b+44>>2]=a;if(!a){if(d){a=d&65535;while(1){Ca(H[(N(a,52)+f|0)-8>>2]);a=a-1|0;if(a){continue}break}}Ca(f);r=0;Ba(m,1,13825,0);break a}H[b+24>>2]=I[d+i|0];H[b+32>>2]=I[d+h|0];d=d+1|0;if((c|0)!=(d|0)){continue}break}h=J[H[o+120>>2]+16>>1]-1|0;while(1){a=N(q,52)+f|0;d=N(H[a+12>>2],H[a+8>>2]);b=l+(q<<2)|0;e=H[(j+N(J[b>>1],52)|0)+44>>2];o:{if(!I[b+2|0]){if(!d){break o}i=H[a+44>>2];p=d&3;a=0;b=0;if(d>>>0>=4){t=d&-4;k=0;while(1){d=b<<2;H[d+i>>2]=H[d+e>>2];s=d|4;H[s+i>>2]=H[e+s>>2];s=d|8;H[s+i>>2]=H[e+s>>2];d=d|12;H[d+i>>2]=H[d+e>>2];b=b+4|0;k=k+4|0;if((t|0)!=(k|0)){continue}break}if(!p){break o}}while(1){d=b<<2;H[d+i>>2]=H[d+e>>2];b=b+1|0;a=a+1|0;if((p|0)!=(a|0)){continue}break}break o}if(!d){break o}b=I[b+3|0];a=(b<<2)+u|0;i=H[(N(b,52)+f|0)+44>>2];b=0;if((d|0)!=1){t=d&1;s=d&-2;d=0;while(1){k=b<<2;p=H[k+e>>2];H[i+k>>2]=H[a+(N(c,(p|0)>=0?(h|0)>(p|0)?p:h:0)<<2)>>2];k=k|4;p=H[k+e>>2];H[i+k>>2]=H[a+(N(c,(p|0)>=0?(h|0)>(p|0)?p:h:0)<<2)>>2];b=b+2|0;d=d+2|0;if((s|0)!=(d|0)){continue}break}if(!t){break o}}d=b<<2;b=H[d+e>>2];H[d+i>>2]=H[a+(N(c,(b|0)>=0?(b|0)<(h|0)?b:h:0)<<2)>>2]}q=q+1|0;if((c|0)!=(q|0)){continue}break}break l}f=Fa(N(c,52));if(f){break l}}r=0;Ba(m,1,13825,0);break a}a=H[n+16>>2];if(a){e=0;while(1){b=H[(j+N(e,52)|0)+44>>2];if(b){Ca(b)}e=e+1|0;if((a|0)!=(e|0)){continue}break}}Ca(j);H[n+16>>2]=c;H[n+24>>2]=f}e=H[o+116>>2];if(!e){break a}h=H[e>>2];i=J[e+4>>1];if(i){e=0;p=i-2&65535;d=1;while(1){a=H[n+16>>2];q=N(e,6)+h|0;b=J[q>>1];p:{if(a>>>0<=b>>>0){H[g+20>>2]=a;H[g+16>>2]=b;Ba(m,2,7334,g+16|0);break p}c=J[q+4>>1];if((c+1&65535)>>>0<=1){G[(H[n+24>>2]+N(b,52)|0)+48>>1]=J[q+2>>1];break p}c=c-1|0;j=c&65535;if(j>>>0>=a>>>0){H[g+4>>2]=a;H[g>>2]=j;Ba(m,2,7293,g);break p}q:{if(J[q+2>>1]|(b|0)==(j|0)){break q}f=H[n+24>>2];a=f+N(b,52)|0;H[g+232>>2]=H[a+48>>2];l=H[a+44>>2];H[g+224>>2]=H[a+40>>2];H[g+228>>2]=l;l=H[a+36>>2];H[g+216>>2]=H[a+32>>2];H[g+220>>2]=l;l=H[a+28>>2];H[g+208>>2]=H[a+24>>2];H[g+212>>2]=l;l=H[a+20>>2];H[g+200>>2]=H[a+16>>2];H[g+204>>2]=l;l=H[a+12>>2];H[g+192>>2]=H[a+8>>2];H[g+196>>2]=l;l=H[a+4>>2];H[g+184>>2]=H[a>>2];H[g+188>>2]=l;l=N(j,52);f=l+f|0;H[a+48>>2]=H[f+48>>2];k=H[f+44>>2];H[a+40>>2]=H[f+40>>2];H[a+44>>2]=k;k=H[f+36>>2];H[a+32>>2]=H[f+32>>2];H[a+36>>2]=k;k=H[f+28>>2];H[a+24>>2]=H[f+24>>2];H[a+28>>2]=k;k=H[f+20>>2];H[a+16>>2]=H[f+16>>2];H[a+20>>2]=k;k=H[f+12>>2];H[a+8>>2]=H[f+8>>2];H[a+12>>2]=k;k=H[f+4>>2];H[a>>2]=H[f>>2];H[a+4>>2]=k;a=l+H[n+24>>2]|0;H[a+48>>2]=H[g+232>>2];f=H[g+228>>2];H[a+40>>2]=H[g+224>>2];H[a+44>>2]=f;f=H[g+220>>2];H[a+32>>2]=H[g+216>>2];H[a+36>>2]=f;f=H[g+212>>2];H[a+24>>2]=H[g+208>>2];H[a+28>>2]=f;f=H[g+204>>2];H[a+16>>2]=H[g+200>>2];H[a+20>>2]=f;f=H[g+196>>2];H[a+8>>2]=H[g+192>>2];H[a+12>>2]=f;f=H[g+188>>2];H[a>>2]=H[g+184>>2];H[a+4>>2]=f;if(i>>>0<=e+1>>>0){break q}f=d;if(!(e-i&1)){a=c;f=N(d,6)+h|0;l=J[f>>1];r:{if((l|0)!=(b|0)){a=b;if((l|0)!=(j|0)){break r}}G[f>>1]=a}f=d+1|0}if((p|0)==(e&65535)){break q}while(1){a=c;l=N(f,6)+h|0;k=J[l>>1];s:{if((k|0)!=(b|0)){a=b;if((k|0)!=(j|0)){break s}}G[l>>1]=a}a=c;k=J[l+6>>1];t:{if((k|0)!=(b|0)){a=b;if((k|0)!=(j|0)){break t}}G[l+6>>1]=a}f=f+2|0;if((i|0)!=(f&65535)){continue}break}}G[(H[n+24>>2]+N(b,52)|0)+48>>1]=J[q+2>>1]}d=d+1|0;e=e+1|0;if((i|0)!=(e|0)){continue}break}e=H[o+116>>2];h=H[e>>2]}if(h){Ca(h);e=H[o+116>>2]}Ca(e);H[o+116>>2]=0;break a}r=0;Ba(m,1,9499,0)}na=g+240|0;return r|0}function Tc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=O(0),p=0;k=na-48|0;na=k;H[a+8>>2]=1;a:{b:{d=k+40|0;c:{if((Ja(b,d,2,c)|0)!=2){break c}Da(d,k+44|0,2);if(H[k+44>>2]!=65359){break c}H[a+8>>2]=2;d=H[b+56>>2];e=d-2|0;d=H[b+60>>2]-(d>>>0<2)|0;g=H[a+224>>2];H[g>>2]=e;H[g+4>>2]=d;H[k+16>>2]=e;H[k+20>>2]=d;Ba(c,4,12769,k+16|0);f=H[a+224>>2];j=H[f>>2];e=H[f+24>>2];d=e+1|0;g=H[f+32>>2];if(d>>>0<=g>>>0){g=H[f+28>>2];break b}o=O(O(g>>>0)+O(100));if(o<O(4294967296)&o>=O(0)){d=~~o>>>0}else{d=0}H[f+32>>2]=d;g=Ha(H[f+28>>2],N(d,24));if(g){H[f+28>>2]=g;e=H[f+24>>2];d=e+1|0;break b}Ca(H[f+28>>2]);H[f+32>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;Ba(c,1,3899,0)}Ba(c,1,15656,0);a=0;break a}e=N(e,24)+g|0;H[e+16>>2]=2;H[e+8>>2]=j;H[e+12>>2]=j>>31;G[e>>1]=65359;H[f+24>>2]=d;if((Ja(b,H[a+16>>2],2,c)|0)!=2){Ba(c,1,2472,0);a=0;break a}Da(H[a+16>>2],k+40|0,2);d:{e:{g=H[k+40>>2];if((g|0)!=65424){while(1){e=24912;if(g>>>0<=65279){H[k>>2]=g;Ba(c,1,2268,k);a=0;break a}while(1){d=e;f=H[d>>2];if(f){e=d+12|0;if((f|0)!=(g|0)){continue}}break}f:{g:{if(f){break g}h=2;Ba(c,2,3847,0);e=2472;h:{i:{if((Ja(b,H[a+16>>2],2,c)|0)!=2){break i}while(1){Da(H[a+16>>2],k+44|0,2);f=24912;g=H[k+44>>2];if(g>>>0>=65280){while(1){d=f;i=H[d>>2];if(i){f=d+12|0;if((g|0)!=(i|0)){continue}}break}if(!(H[d+4>>2]&H[a+8>>2])){e=5397;break i}if(i){if((i|0)==65424){H[k+40>>2]=65424;break f}j=H[b+56>>2];f=H[a+224>>2];g=H[f+24>>2];e=g+1|0;d=H[f+32>>2];if(e>>>0<=d>>>0){d=H[f+28>>2];break h}o=O(O(d>>>0)+O(100));if(o<O(4294967296)&o>=O(0)){d=~~o>>>0}else{d=0}H[f+32>>2]=d;d=Ha(H[f+28>>2],N(d,24));if(d){H[f+28>>2]=d;g=H[f+24>>2];e=g+1|0;break h}Ca(H[f+28>>2]);H[f+32>>2]=0;H[f+24>>2]=0;H[f+28>>2]=0;e=3899;break i}h=h+2|0}if((Ja(b,H[a+16>>2],2,c)|0)==2){continue}break}}Ba(c,1,e,0);Ba(c,1,9847,0);a=0;break a}d=N(g,24)+d|0;H[d+16>>2]=h;g=j-h|0;H[d+8>>2]=g;H[d+12>>2]=g>>31;G[d>>1]=0;H[f+24>>2]=e;H[k+40>>2]=i;g=24912;if((i|0)==65424){break f}while(1){d=g;f=H[d>>2];if(!f){break g}g=d+12|0;if((f|0)!=(i|0)){continue}break}}if(!(H[d+4>>2]&H[a+8>>2])){Ba(c,1,5397,0);a=0;break a}if((Ja(b,H[a+16>>2],2,c)|0)!=2){Ba(c,1,2472,0);a=0;break a}Da(H[a+16>>2],k+36|0,2);e=H[k+36>>2];if(e>>>0<=1){Ba(c,1,6074,0);a=0;break a}e=e-2|0;H[k+36>>2]=e;g=H[a+16>>2];if(K[a+20>>2]<e>>>0){g=Ha(g,e);if(!g){Ca(H[a+16>>2]);H[a+16>>2]=0;H[a+20>>2]=0;Ba(c,1,4973,0);a=0;break a}H[a+16>>2]=g;e=H[k+36>>2];H[a+20>>2]=e}e=Ja(b,g,e,c);if((e|0)!=H[k+36>>2]){Ba(c,1,2472,0);a=0;break a}if(!(ra[H[d+8>>2]](a,H[a+16>>2],e,c)|0)){Ba(c,1,2490,0);a=0;break a}j=H[b+56>>2];i=H[k+36>>2];d=H[a+224>>2];g=H[d+24>>2];h=g+1|0;e=H[d+32>>2];j:{if(h>>>0<=e>>>0){e=H[d+28>>2];break j}o=O(O(e>>>0)+O(100));if(o<O(4294967296)&o>=O(0)){e=~~o>>>0}else{e=0}H[d+32>>2]=e;e=Ha(H[d+28>>2],N(e,24));if(!e){break d}H[d+28>>2]=e;g=H[d+24>>2];h=g+1|0}e=N(g,24)+e|0;H[e+16>>2]=i+4;g=(j-i|0)-4|0;H[e+8>>2]=g;H[e+12>>2]=g>>31;G[e>>1]=f;H[d+24>>2]=h;if((Ja(b,H[a+16>>2],2,c)|0)!=2){Ba(c,1,2472,0);a=0;break a}m=(f|0)==65372?1:m;l=(f|0)==65362?1:l;n=(f|0)==65361?1:n;Da(H[a+16>>2],k+40|0,2);g=H[k+40>>2];if((g|0)!=65424){continue}}break}if(n){break e}}Ba(c,1,4785,0);a=0;break a}if(!l){Ba(c,1,4831,0);a=0;break a}if(!m){Ba(c,1,4877,0);a=0;break a}d=0;e=0;h=0;j=na-16|0;na=j;m=1;k:{if(!(F[a+212|0]&1)){break k}l:{f=H[a+136>>2];if(!f){break l}m:{while(1){g=H[a+140>>2]+(h<<3)|0;l=H[g>>2];if(l){i=H[g+4>>2];g=d-i|0;g=d>>>0>=g>>>0?g:0;if(d>>>0<i>>>0){f=i-d|0;l=d+l|0;while(1){if(f>>>0<4){d=5671;break m}Da(l,j+12|0,4);d=H[j+12>>2];if((d^-1)>>>0<e>>>0){d=5645;break m}i=f-4|0;n=i>>>0<d>>>0;g=n?d-i|0:g;e=d+e|0;f=i-d|0;l=((n?0:d)+l|0)+4|0;if(d>>>0<i>>>0){continue}break}f=H[a+136>>2]}d=g}h=h+1|0;if(h>>>0<f>>>0){continue}break}if(!d){break l}m=0;Ba(c,1,3067,0);break k}m=0;Ba(c,1,d,0);break k}d=Fa(e);H[a+160>>2]=d;if(!d){m=0;Ba(c,1,4337,0);break k}H[a+148>>2]=e;h=H[a+140>>2];n:{f=H[a+136>>2];if(f){e=0;d=0;g=0;while(1){l=g<<3;n=l+h|0;i=H[n>>2];if(i){h=H[a+160>>2]+d|0;f=H[n+4>>2];o:{if(f>>>0<=e>>>0){if(f){B(h,i,f)}d=d+f|0;e=e-f|0;break o}if(e){B(h,i,e)}d=d+e|0;h=f-e|0;e=e+i|0;while(1){if(h>>>0<4){break n}Da(e,j+8|0,4);e=e+4|0;i=H[a+160>>2]+d|0;f=h-4|0;h=H[j+8>>2];if(f>>>0<h>>>0){if(f){B(i,e,f)}d=d+f|0;e=H[j+8>>2]-f|0;break o}if(h){B(i,e,h)}h=H[j+8>>2];d=h+d|0;e=e+h|0;h=f-h|0;if(h){continue}break}e=0}Ca(H[l+H[a+140>>2]>>2]);h=H[a+140>>2];f=l+h|0;H[f>>2]=0;H[f+4>>2]=0;f=H[a+136>>2]}g=g+1|0;if(g>>>0<f>>>0){continue}break}e=H[a+148>>2];d=H[a+160>>2]}H[a+168>>2]=e;H[a+144>>2]=d;H[a+136>>2]=0;Ca(h);H[a+140>>2]=0;break k}m=0;Ba(c,1,5671,0)}na=j+16|0;if(!m){Ba(c,1,8085,0);a=0;break a}Ba(c,4,11754,0);d=H[a+224>>2];e=H[b+56>>2];e=e-2|0;H[d+8>>2]=e;H[d+12>>2]=0;b=0;h=0;i=na-16|0;na=i;g=H[a+68>>2];p:{if(!g){H[a+76>>2]=1;break p}if(H[a+76>>2]){break p}d=H[a+72>>2];j=H[a+224>>2];e=H[j+40>>2];q:{if((g|0)!=1){m=g&1;l=g&-2;while(1){n=(b<<3)+d|0;p=J[n>>1];f=e+N(p,40)|0;H[f>>2]=p;H[f+8>>2]=H[f+8>>2]+1;n=J[n+8>>1];f=e+N(n,40)|0;H[f>>2]=n;H[f+8>>2]=H[f+8>>2]+1;b=b+2|0;h=h+2|0;if((l|0)!=(h|0)){continue}break}if(!m){break q}}f=J[(b<<3)+d>>1];b=e+N(f,40)|0;H[b>>2]=f;H[b+8>>2]=H[b+8>>2]+1}f=H[j+36>>2];r:{if(f){b=0;while(1){if(!H[(e+N(b,40)|0)+8>>2]){H[i>>2]=b;Ba(c,1,9304,i);break r}b=b+1|0;if((f|0)!=(b|0)){continue}break}}f=H[j+8>>2];b=H[j+12>>2];e=0;while(1){s:{l=e<<3;m=H[H[a+224>>2]+40>>2]+N(J[l+d>>1],40)|0;h=H[m+16>>2];if(!h){h=Ea(H[m+8>>2],24);H[m+16>>2]=h;if(!h){break s}g=H[a+68>>2];d=H[a+72>>2]}p=h;h=H[m+4>>2];j=p+N(h,24)|0;H[j>>2]=f;H[j+4>>2]=b;l=H[(d+l|0)+4>>2];f=l+f|0;H[j+16>>2]=f;b=f>>>0<l>>>0?b+1|0:b;H[j+20>>2]=b;H[m+4>>2]=h+1;e=e+1|0;if(g>>>0>e>>>0){continue}break p}break}Ba(c,1,6882,0)}H[a+76>>2]=1;if(!H[a+68>>2]){break p}d=H[H[a+224>>2]+40>>2];b=0;while(1){c=N(J[H[a+72>>2]+(b<<3)>>1],40);d=c+d|0;H[d+8>>2]=0;Ca(H[d+16>>2]);d=H[H[a+224>>2]+40>>2];H[(c+d|0)+16>>2]=0;b=b+1|0;if(b>>>0<K[a+68>>2]){continue}break}}na=i+16|0;H[a+8>>2]=8;a=1;break a}Ca(H[d+28>>2]);H[d+32>>2]=0;H[d+24>>2]=0;H[d+28>>2]=0;Ba(c,1,3899,0);a=0}na=k+48|0;return a|0}function ge(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;f=na-160|0;na=f;a:{if(c>>>0<=35){c=0;Ba(d,1,6095,0);break a}j=H[a+96>>2];c=c-36|0;h=(c>>>0)/3|0;if((N(h,3)|0)!=(c|0)){c=0;Ba(d,1,6095,0);break a}c=f+156|0;Da(b,c,2);G[a+104>>1]=H[f+156>>2];Da(b+2|0,j+8|0,4);Da(b+6|0,j+12|0,4);Da(b+10|0,j,4);Da(b+14|0,j+4|0,4);Da(b+18|0,a+116|0,4);Da(b+22|0,a+120|0,4);Da(b+26|0,a+108|0,4);Da(b+30|0,a+112|0,4);Da(b+34|0,c,2);b:{c:{d:{c=H[f+156>>2];if(c>>>0<=16384){H[j+16>>2]=c;if((c|0)!=(h|0)){H[f+132>>2]=h;H[f+128>>2]=c;Ba(d,1,14980,f+128|0);c=0;break a}c=H[j+4>>2];g=H[j+12>>2];l=H[j+8>>2];e=H[j>>2];if(!(c>>>0<g>>>0&l>>>0>e>>>0)){H[f+120>>2]=g-c;H[f+124>>2]=0-(c>>>0>g>>>0);H[f+112>>2]=l-e;H[f+116>>2]=0-(e>>>0>l>>>0);Ba(d,1,14542,f+112|0);c=0;break a}i=H[a+116>>2];k=H[a+120>>2];if(!(k?i:0)){H[f+4>>2]=k;H[f>>2]=i;Ba(d,1,15094,f);c=0;break a}e:{n=H[a+108>>2];f:{if(n>>>0>e>>>0){break f}i=i+n|0;if(e>>>0>=(i>>>0<n>>>0?-1:i)>>>0){break f}i=H[a+112>>2];if(i>>>0>c>>>0){break f}k=i+k|0;if(c>>>0<(i>>>0>k>>>0?-1:k)>>>0){break e}}c=0;Ba(d,1,2792,0);break a}g:{if(H[a+248>>2]){break g}i=H[a+240>>2];if(!i){break g}k=H[a+244>>2];if(!k){break g}e=l-e|0;c=g-c|0;if((e|0)==(i|0)&(c|0)==(k|0)){break g}H[f+108>>2]=c;H[f+104>>2]=e;H[f+100>>2]=k;H[f+96>>2]=i;Ba(d,1,14006,f+96|0);c=0;break a}e=Ea(h,52);H[j+24>>2]=e;if(!e){break d}h:{if(!H[j+16>>2]){break h}c=f+152|0;Da(b+36|0,c,1);h=H[f+152>>2];k=h>>>7|0;H[e+32>>2]=k;n=(h&127)+1|0;H[e+24>>2]=n;l=H[a+248>>2];Da(b+37|0,c,1);H[e>>2]=H[f+152>>2];Da(b+38|0,c,1);g=H[f+152>>2];H[e+4>>2]=g;c=0;i=H[e>>2];if(i-256>>>0<4294967041){h=0;break b}h=0;if(g-256>>>0<4294967041){break b}g=H[e+24>>2];if(g>>>0>31){break c}H[e+36>>2]=0;H[e+40>>2]=H[a+184>>2];h=1;if(K[j+16>>2]<=1){break h}k=l?0:k;l=l?0:n;b=b+39|0;while(1){Da(b,f+152|0,1);i=H[f+152>>2];g=i>>>7|0;H[e+84>>2]=g;i=(i&127)+1|0;H[e+76>>2]=i;if(!(H[a+248>>2]|(I[a+212|0]&4|(i|0)==(l|0)&(g|0)==(k|0)))){H[f+84>>2]=g;H[f+80>>2]=i;H[f+76>>2]=h;H[f+72>>2]=k;H[f+68>>2]=l;H[f+64>>2]=h;Ba(d,2,14778,f- -64|0)}g=f+152|0;Da(b+1|0,g,1);H[e+52>>2]=H[f+152>>2];Da(b+2|0,g,1);g=H[f+152>>2];H[e+56>>2]=g;i=H[e+52>>2];if(i-256>>>0<4294967041|g-256>>>0<=4294967040){break b}g=H[e+76>>2];if(g>>>0>=32){break c}b=b+3|0;H[e+88>>2]=0;H[e+92>>2]=H[a+184>>2];e=e+52|0;h=h+1|0;if(h>>>0<K[j+16>>2]){continue}break}}c=0;h=H[a+116>>2];if(!h){break a}g=H[a+120>>2];if(!g){break a}l=0-!h|0;e=l;p=H[a+108>>2];k=H[j+8>>2]-p|0;i=h-1|0;b=k+i|0;e=k>>>0>b>>>0?e+1|0:e;b=ve(b,e,h,0);H[a+128>>2]=b;n=0-!g|0;e=n;q=H[a+112>>2];o=H[j+12>>2]-q|0;m=o;k=g-1|0;o=o+k|0;e=m>>>0>o>>>0?e+1|0:e;e=ve(o,e,g,0);H[a+132>>2]=e;i:{if(!(!b|!e)){if(b>>>0<=65535/(e>>>0)>>>0){break i}}H[f+20>>2]=e;H[f+16>>2]=b;Ba(d,1,14120,f+16|0);break a}o=N(b,e);j:{if(I[a+92|0]&2){H[a+28>>2]=(H[a+28>>2]-p>>>0)/(h>>>0);H[a+32>>2]=(H[a+32>>2]-q>>>0)/(g>>>0);e=l;b=H[a+36>>2]-p|0;m=b;b=b+i|0;e=m>>>0>b>>>0?e+1|0:e;v=a,w=ve(b,e,h,0),H[v+36>>2]=w;e=n;b=H[a+40>>2]-q|0;m=b;b=b+k|0;e=m>>>0>b>>>0?e+1|0:e;v=a,w=ve(b,e,g,0),H[v+40>>2]=w;break j}H[a+40>>2]=e;H[a+36>>2]=b;H[a+28>>2]=0;H[a+32>>2]=0}b=Ea(o,5644);H[a+180>>2]=b;if(!b){Ba(d,1,3935,0);break a}b=Ea(H[j+16>>2],1080);H[H[a+12>>2]+5584>>2]=b;if(!H[H[a+12>>2]+5584>>2]){Ba(d,1,3935,0);break a}b=Ea(10,20);H[H[a+12>>2]+5616>>2]=b;b=H[a+12>>2];if(!H[b+5616>>2]){Ba(d,1,3935,0);break a}H[b+5624>>2]=10;b=Ea(10,20);H[H[a+12>>2]+5628>>2]=b;b=H[a+12>>2];if(!H[b+5628>>2]){Ba(d,1,3935,0);break a}H[b+5636>>2]=10;e=H[j+16>>2];k:{if(!e){break k}h=H[j+24>>2];b=0;if((e|0)!=1){g=e&1;l=e&-2;e=0;while(1){i=h+N(b,52)|0;if(!H[i+32>>2]){H[(H[H[a+12>>2]+5584>>2]+N(b,1080)|0)+1076>>2]=1<<H[i+24>>2]-1}i=b|1;k=h+N(i,52)|0;if(!H[k+32>>2]){H[(H[H[a+12>>2]+5584>>2]+N(i,1080)|0)+1076>>2]=1<<H[k+24>>2]-1}b=b+2|0;e=e+2|0;if((l|0)!=(e|0)){continue}break}if(!g){break k}}e=h+N(b,52)|0;if(H[e+32>>2]){break k}H[(H[H[a+12>>2]+5584>>2]+N(b,1080)|0)+1076>>2]=1<<H[e+24>>2]-1}if(o){b=H[a+180>>2];e=0;while(1){h=Ea(H[j+16>>2],1080);H[b+5584>>2]=h;if(!h){Ba(d,1,3935,0);break a}b=b+5644|0;e=e+1|0;if(o>>>0>e>>>0){continue}break}}b=N(H[a+132>>2],H[a+128>>2]);H[H[a+224>>2]+36>>2]=b;b=Ea(b,40);d=H[a+224>>2];H[d+40>>2]=b;e=0;l:{if(!b){break l}e=1;if(!H[d+36>>2]){break l}d=0;while(1){m:{e=0;g=N(d,40);b=g+b|0;H[b+20>>2]=0;H[b+28>>2]=100;h=Ea(100,24);l=H[a+224>>2];b=H[l+40>>2];H[(g+b|0)+24>>2]=h;if(!h){break m}e=1;d=d+1|0;if(d>>>0<K[l+36>>2]){continue}}break}}if(!e){break a}H[a+8>>2]=4;r=H[j+16>>2];if(r){b=H[a+112>>2];d=H[a+120>>2];c=b+N(d,H[a+132>>2]-1|0)|0;d=c+d|0;c=c>>>0>d>>>0?-1:d;d=H[j+12>>2];c=c>>>0<d>>>0?c:d;l=c-1|0;k=0-!c|0;c=H[a+108>>2];d=H[a+116>>2];a=c+N(d,H[a+128>>2]-1|0)|0;d=a+d|0;a=a>>>0>d>>>0?-1:d;d=H[j+8>>2];a=a>>>0<d>>>0?a:d;i=a-1|0;n=0-!a|0;a=H[j+4>>2];b=a>>>0<b>>>0?b:a;o=b-1|0;p=0-!b|0;a=H[j>>2];b=a>>>0<c>>>0?c:a;q=b-1|0;u=0-!b|0;a=H[j+24>>2];b=0;while(1){e=p;d=H[a+4>>2];c=d+o|0;j=ve(c,c>>>0<d>>>0?e+1|0:e,d,0);H[a+20>>2]=j;e=u;h=H[a>>2];c=h+q|0;s=ve(c,c>>>0<h>>>0?e+1|0:e,h,0);H[a+16>>2]=s;c=H[a+40>>2];g=c&31;if((c&63)>>>0>=32){e=-1<<g;m=0}else{m=-1<<g;e=m|(1<<g)-1&-1>>>32-g}g=m^-1;e=e^-1;m=e;e=k;t=d+l|0;e=t>>>0<l>>>0?e+1|0:e;e=ve(t,e,d,0)-j|0;d=m;j=e;e=e+g|0;d=j>>>0>e>>>0?d+1|0:d;j=e;e=c&31;if((c&63)>>>0>=32){d=d>>>e|0}else{d=((1<<e)-1&d)<<32-e|j>>>e}H[a+12>>2]=d;e=n;d=h+i|0;e=d>>>0<i>>>0?e+1|0:e;d=ve(d,e,h,0)-s|0;e=m;d=d+g|0;e=d>>>0<g>>>0?e+1|0:e;h=d;d=c&31;if((c&63)>>>0>=32){c=e>>>d|0}else{c=((1<<d)-1&e)<<32-d|h>>>d}H[a+8>>2]=c;a=a+52|0;b=b+1|0;if((r|0)!=(b|0)){continue}break}}c=1;break a}H[f+144>>2]=c;Ba(d,1,7932,f+144|0);c=0;break a}c=0;H[j+16>>2]=0;Ba(d,1,3935,0);break a}H[f+52>>2]=g;H[f+48>>2]=h;Ba(d,1,15402,f+48|0);break a}H[f+40>>2]=g;H[f+36>>2]=i;H[f+32>>2]=h;Ba(d,1,14340,f+32|0)}na=f+160|0;return c|0}function fd(a,b,c,d,e,f){a=a|0;b=+b;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,t=0,u=0,v=0,w=0,y=0,z=0,A=0,B=0,C=0;n=na-560|0;na=n;H[n+44>>2]=0;x(+b);i=s(1)|0;s(0)|0;a:{if((i|0)<0){r=1;y=1082;b=-b;x(+b);i=s(1)|0;s(0)|0;break a}if(e&2048){r=1;y=1085;break a}r=e&1;y=r?1088:1083;A=!r}b:{if((i&2146435072)==2146435072){d=r+3|0;Na(a,32,c,d,e&-65537);La(a,y,r);f=f&32;La(a,b!=b?f?1207:1435:f?1312:1476,3);Na(a,32,c,d,e^8192);l=(c|0)>(d|0)?c:d;break b}v=n+16|0;c:{d:{e:{b=pc(b,n+44|0);b=b+b;if(b!=0){g=H[n+44>>2];H[n+44>>2]=g-1;t=f|32;if((t|0)!=97){break e}break c}t=f|32;if((t|0)==97){break c}m=H[n+44>>2];break d}m=g-29|0;H[n+44>>2]=m;b=b*268435456}k=(d|0)<0?6:d;p=(n+48|0)+((m|0)>=0?288:0)|0;h=p;while(1){d=b<4294967295&b>=0?~~b>>>0:0;H[h>>2]=d;h=h+4|0;b=(b-+(d>>>0))*1e9;if(b!=0){continue}break}f:{if((m|0)<=0){i=m;g=h;j=p;break f}j=p;i=m;while(1){z=i>>>0>=29?29:i;g=h-4|0;g:{if(j>>>0>g>>>0){break g}d=0;i=0;while(1){w=H[g>>2];o=z&31;if((z&63)>>>0>=32){l=w<<o;w=0}else{l=(1<<o)-1&w>>>32-o;w=w<<o}o=w+d|0;i=i+l|0;l=d>>>0>o>>>0?i+1|0:i;d=ve(o,l,1e9,0);i=qa;B=g,C=o+re(d,i,-1e9)|0,H[B>>2]=C;g=g-4|0;if(j>>>0<=g>>>0){continue}break}if(!l&o>>>0<1e9){break g}j=j-4|0;H[j>>2]=d}while(1){g=h;if(j>>>0<g>>>0){h=g-4|0;if(!H[h>>2]){continue}}break}i=H[n+44>>2]-z|0;H[n+44>>2]=i;h=g;if((i|0)>0){continue}break}}if((i|0)<0){u=((k+25>>>0)/9|0)+1|0;l=(t|0)==102;while(1){d=0-i|0;d=d>>>0>=9?9:d;h:{if(g>>>0<=j>>>0){h=H[j>>2]?0:4;break h}o=1e9>>>d|0;z=-1<<d^-1;i=0;h=j;while(1){w=i;i=H[h>>2];H[h>>2]=w+(i>>>d|0);i=N(o,i&z);h=h+4|0;if(h>>>0<g>>>0){continue}break}h=H[j>>2]?0:4;if(!i){break h}H[g>>2]=i;g=g+4|0}i=d+H[n+44>>2]|0;H[n+44>>2]=i;j=h+j|0;d=l?p:j;g=g-d>>2>(u|0)?d+(u<<2)|0:g;if((i|0)<0){continue}break}}i=0;i:{if(g>>>0<=j>>>0){break i}i=N(p-j>>2,9);h=10;d=H[j>>2];if(d>>>0<10){break i}while(1){i=i+1|0;h=N(h,10);if(d>>>0>=h>>>0){continue}break}}d=(k-((t|0)!=102?i:0)|0)-((t|0)==103&(k|0)!=0)|0;if((d|0)<(N(g-p>>2,9)-9|0)){h=(n+48|0)+((m|0)<0?-4092:-3804)|0;d=d+9216|0;m=(d|0)/9|0;l=h+(m<<2)|0;h=10;d=d+N(m,-9)|0;if((d|0)<=7){while(1){h=N(h,10);d=d+1|0;if((d|0)!=8){continue}break}}m=H[l>>2];u=(m>>>0)/(h>>>0)|0;d=N(u,h);o=l+4|0;j:{if((d|0)==(m|0)&(o|0)==(g|0)){break j}m=m-d|0;k:{if(!(u&1)){b=9007199254740992;if(!(F[l-4|0]&1)|((h|0)!=1e9|j>>>0>=l>>>0)){break k}}b=9007199254740994}q=(g|0)==(o|0)?1:1.5;o=h>>>1|0;q=m>>>0<o>>>0?.5:(o|0)==(m|0)?q:1.5;if(!(I[y|0]!=45|A)){q=-q;b=-b}H[l>>2]=d;if(b+q==b){break j}d=d+h|0;H[l>>2]=d;if(d>>>0>=1e9){while(1){H[l>>2]=0;l=l-4|0;if(l>>>0<j>>>0){j=j-4|0;H[j>>2]=0}d=H[l>>2]+1|0;H[l>>2]=d;if(d>>>0>999999999){continue}break}}i=N(p-j>>2,9);h=10;d=H[j>>2];if(d>>>0<10){break j}while(1){i=i+1|0;h=N(h,10);if(d>>>0>=h>>>0){continue}break}}d=l+4|0;g=d>>>0<g>>>0?d:g}while(1){h=g;m=g>>>0<=j>>>0;if(!m){g=g-4|0;if(!H[g>>2]){continue}}break}l:{if((t|0)!=103){d=e&8;break l}d=k?k:1;g=(d|0)>(i|0)&(i|0)>-5;k=(g?i^-1:-1)+d|0;f=(g?-1:-2)+f|0;d=e&8;if(d){break l}g=-9;m:{if(m){break m}l=H[h-4>>2];if(!l){break m}d=10;g=0;if((l>>>0)%10|0){break m}while(1){m=g;g=g+1|0;d=N(d,10);if(!((l>>>0)%(d>>>0)|0)){continue}break}g=m^-1}m=N(h-p>>2,9);if((f&-33)==70){d=0;g=(g+m|0)-9|0;g=(g|0)>0?g:0;k=(g|0)>(k|0)?k:g;break l}d=0;g=((i+m|0)+g|0)-9|0;g=(g|0)>0?g:0;k=(g|0)>(k|0)?k:g}l=-1;t=d|k;if(((t?2147483645:2147483646)|0)<(k|0)){break b}m=(((t|0)!=0)+k|0)+1|0;o=f&-33;n:{if((o|0)==70){if((m^2147483647)<(i|0)){break b}g=(i|0)>0?i:0;break n}g=i>>31;g=$a((g^i)-g|0,0,v);if((v-g|0)<=1){while(1){g=g-1|0;F[g|0]=48;if((v-g|0)<2){continue}break}}u=g-2|0;F[u|0]=f;F[g-1|0]=(i|0)<0?45:43;g=v-u|0;if((g|0)>(m^2147483647)){break b}}f=g+m|0;if((f|0)>(r^2147483647)){break b}f=f+r|0;Na(a,32,c,f,e);La(a,y,r);Na(a,48,c,f,e^65536);o:{p:{q:{if((o|0)==70){d=n+16|9;i=j>>>0>p>>>0?p:j;j=i;while(1){g=$a(H[j>>2],0,d);r:{if((i|0)!=(j|0)){if(n+16>>>0>=g>>>0){break r}while(1){g=g-1|0;F[g|0]=48;if(n+16>>>0<g>>>0){continue}break}break r}if((d|0)!=(g|0)){break r}g=g-1|0;F[g|0]=48}La(a,g,d-g|0);j=j+4|0;if(p>>>0>=j>>>0){continue}break}if(t){La(a,1684,1)}if((k|0)<=0|h>>>0<=j>>>0){break q}while(1){g=$a(H[j>>2],0,d);if(g>>>0>n+16>>>0){while(1){g=g-1|0;F[g|0]=48;if(n+16>>>0<g>>>0){continue}break}}La(a,g,(k|0)>=9?9:k);g=k-9|0;j=j+4|0;if(h>>>0<=j>>>0){break p}i=(k|0)>9;k=g;if(i){continue}break}break p}s:{if((k|0)<0){break s}p=h>>>0>j>>>0?h:j+4|0;i=n+16|9;h=j;while(1){g=$a(H[h>>2],0,i);if((i|0)==(g|0)){g=g-1|0;F[g|0]=48}t:{if((h|0)!=(j|0)){if(n+16>>>0>=g>>>0){break t}while(1){g=g-1|0;F[g|0]=48;if(n+16>>>0<g>>>0){continue}break}break t}La(a,g,1);g=g+1|0;if(!(d|k)){break t}La(a,1684,1)}m=g;g=i-g|0;La(a,m,(g|0)<(k|0)?g:k);k=k-g|0;h=h+4|0;if(p>>>0<=h>>>0){break s}if((k|0)>=0){continue}break}}Na(a,48,k+18|0,18,0);La(a,u,v-u|0);break o}g=k}Na(a,48,g+9|0,9,0)}Na(a,32,c,f,e^8192);l=(c|0)>(f|0)?c:f;break b}j=(f<<26>>31&9)+y|0;u:{if(d>>>0>11){break u}g=12-d|0;q=16;while(1){q=q*16;g=g-1|0;if(g){continue}break}if(I[j|0]==45){b=-(q+(-b-q));break u}b=b+q-q}h=H[n+44>>2];g=h>>31;g=$a((g^h)-g|0,0,v);if((v|0)==(g|0)){g=g-1|0;F[g|0]=48;h=H[n+44>>2]}k=f&32;i=g-2|0;F[i|0]=f+15;F[g-1|0]=(h|0)<0?45:43;g=!(e&8)&(d|0)<=0;h=n+16|0;while(1){f=h;p=P(b)<2147483647?~~b:-2147483648;F[h|0]=k|I[p+26048|0];b=(b-+(p|0))*16;h=h+1|0;if(!(g&b==0|(h-(n+16|0)|0)!=1)){F[f+1|0]=46;h=f+2|0}if(b!=0){continue}break}l=-1;g=v-i|0;if((2147483643-(g+r|0)|0)<(d|0)){break b}f=h;h=n+16|0;f=f-h|0;k=d?(f-2|0)<(d|0)?d+2|0:f:f;p=r|2;d=k+(p+g|0)|0;Na(a,32,c,d,e);La(a,j,p);Na(a,48,c,d,e^65536);La(a,h,f);Na(a,48,k-f|0,0,0);La(a,i,g);Na(a,32,c,d,e^8192);l=(c|0)>(d|0)?c:d}na=n+560|0;return l|0}function sc(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;j=na+-64|0;na=j;H[j+60>>2]=b;z=j+41|0;A=j+39|0;t=j+40|0;a:{b:{c:{d:{e:while(1){h=0;f:while(1){k=b;if((o^2147483647)<(h|0)){break d}o=h+o|0;g:{h:{i:{j:{h=b;i=I[h|0];if(i){while(1){k:{b=i&255;l:{if(!b){b=h;break l}if((b|0)!=37){break k}i=h;while(1){if(I[i+1|0]!=37){b=i;break l}h=h+1|0;n=I[i+2|0];b=i+2|0;i=b;if((n|0)==37){continue}break}}h=h-k|0;y=o^2147483647;if((h|0)>(y|0)){break d}if(a){La(a,k,h)}if(h){continue f}H[j+60>>2]=b;h=b+1|0;q=-1;i=F[b+1|0]-48|0;if(!(I[b+2|0]!=36|i>>>0>9)){w=1;q=i;h=b+3|0}H[j+60>>2]=h;l=0;i=F[h|0];b=i-32|0;m:{if(b>>>0>31){n=h;break m}n=h;b=1<<b;if(!(b&75913)){break m}while(1){n=h+1|0;H[j+60>>2]=n;l=b|l;i=F[h+1|0];b=i-32|0;if(b>>>0>=32){break m}h=n;b=1<<b;if(b&75913){continue}break}}n:{if((i|0)==42){b=F[n+1|0]-48|0;o:{if(!(I[n+2|0]!=36|b>>>0>9)){p:{if(!a){H[(b<<2)+e>>2]=10;b=0;break p}b=H[(b<<3)+d>>2]}p=b;b=n+3|0;i=1;break o}if(w){break j}b=n+1|0;if(!a){H[j+60>>2]=b;w=0;p=0;break n}h=H[c>>2];H[c>>2]=h+4;p=H[h>>2];i=0}w=i;H[j+60>>2]=b;if((p|0)>=0){break n}p=0-p|0;l=l|8192;break n}p=rc(j+60|0);if((p|0)<0){break d}b=H[j+60>>2]}h=0;m=-1;u=0;q:{if(I[b|0]!=46){break q}if(I[b+1|0]==42){i=F[b+2|0]-48|0;r:{if(!(I[b+3|0]!=36|i>>>0>9)){b=b+4|0;s:{if(!a){H[(i<<2)+e>>2]=10;m=0;break s}m=H[(i<<3)+d>>2]}break r}if(w){break j}b=b+2|0;m=0;if(!a){break r}i=H[c>>2];H[c>>2]=i+4;m=H[i>>2]}H[j+60>>2]=b;u=(m|0)>=0;break q}H[j+60>>2]=b+1;m=rc(j+60|0);b=H[j+60>>2];u=1}while(1){x=h;n=28;r=b;i=F[b|0];if(i-123>>>0<4294967238){break c}b=b+1|0;h=I[(i+N(h,58)|0)+25519|0];if((h-1&255)>>>0<8){continue}break}H[j+60>>2]=b;t:{if((h|0)!=27){if(!h){break c}if((q|0)>=0){if(!a){H[(q<<2)+e>>2]=h;continue e}h=(q<<3)+d|0;i=H[h+4>>2];H[j+48>>2]=H[h>>2];H[j+52>>2]=i;break t}if(!a){break g}qc(j+48|0,h,c,g);break t}if((q|0)>=0){break c}h=0;if(!a){continue f}}if(I[a|0]&32){break b}i=l&-65537;l=l&8192?i:l;q=0;v=1072;n=t;u:{v:{w:{x:{y:{z:{A:{B:{C:{D:{E:{F:{G:{H:{I:{J:{K:{r=I[r|0];h=r<<24>>24;h=x?(r&15)==3?h&-45:h:h;switch(h-88|0){case 0:case 32:break G;case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 10:case 16:case 18:case 19:case 20:case 21:case 25:case 26:case 28:case 30:case 31:break h;case 9:case 13:case 14:case 15:break u;case 11:break B;case 12:case 17:break E;case 22:break I;case 23:break F;case 24:break H;case 27:break A;case 29:break J;default:break K}}L:{switch(h-65|0){case 1:case 3:break h;case 0:case 4:case 5:case 6:break u;case 2:break z;default:break L}}if((h|0)==83){break y}break h}i=H[j+48>>2];r=H[j+52>>2];v=1072;break D}h=0;M:{switch(x|0){case 0:H[H[j+48>>2]>>2]=o;continue f;case 1:H[H[j+48>>2]>>2]=o;continue f;case 2:k=H[j+48>>2];H[k>>2]=o;H[k+4>>2]=o>>31;continue f;case 3:G[H[j+48>>2]>>1]=o;continue f;case 4:F[H[j+48>>2]]=o;continue f;case 6:H[H[j+48>>2]>>2]=o;continue f;case 7:break M;default:continue f}}k=H[j+48>>2];H[k>>2]=o;H[k+4>>2]=o>>31;continue f}m=m>>>0<=8?8:m;l=l|8;h=120}b=t;k=H[j+52>>2];r=k;i=H[j+48>>2];s=i;if(i|k){x=h&32;while(1){b=b-1|0;F[b|0]=x|I[(s&15)+26048|0];s=(k&15)<<28|s>>>4;k=k>>>4|0;if(s|k){continue}break}}k=b;if(!(l&8)|!(i|r)){break C}v=(h>>>4|0)+1072|0;q=2;break C}b=t;k=H[j+52>>2];r=k;i=H[j+48>>2];s=i;if(i|k){while(1){b=b-1|0;F[b|0]=s&7|48;s=(k&7)<<29|s>>>3;k=k>>>3|0;if(s|k){continue}break}}k=b;if(!(l&8)){break C}b=z-b|0;m=(b|0)<(m|0)?m:b;break C}i=H[j+48>>2];b=H[j+52>>2];r=b;if((b|0)<0){h=0-(b+((i|0)!=0)|0)|0;r=h;i=0-i|0;H[j+48>>2]=i;H[j+52>>2]=h;q=1;v=1072;break D}if(l&2048){q=1;v=1073;break D}q=l&1;v=q?1074:1072}k=$a(i,r,t)}if((m|0)<0&u){break d}l=u?l&-65537:l;if(!((i|r)!=0|m)){k=t;m=0;break h}b=!(i|r)+(t-k|0)|0;m=(b|0)<(m|0)?m:b;break h}h=I[j+48|0];break i}h=m>>>0>=2147483647?2147483647:m;l=h;n=(h|0)!=0;b=H[j+48>>2];k=b?b:1686;b=k;N:{O:{P:{Q:{if(!(b&3)|!h){break Q}while(1){if(!I[b|0]){break P}l=l-1|0;n=(l|0)!=0;b=b+1|0;if(!(b&3)){break Q}if(l){continue}break}}if(!n){break O}if(!(!I[b|0]|l>>>0<4)){while(1){n=H[b>>2];if(((16843008-n|n)&-2139062144)!=-2139062144){break P}b=b+4|0;l=l-4|0;if(l>>>0>3){continue}break}}if(!l){break O}}while(1){if(!I[b|0]){break N}b=b+1|0;l=l-1|0;if(l){continue}break}}b=0}b=b?b-k|0:h;n=b+k|0;if((m|0)>=0){l=i;m=b;break h}l=i;m=b;if(I[n|0]){break d}break h}h=H[j+48>>2];if(h|H[j+52>>2]){break x}h=0;break i}if(m){i=H[j+48>>2];break w}h=0;Na(a,32,p,0,l);break v}H[j+12>>2]=0;H[j+8>>2]=h;i=j+8|0;H[j+48>>2]=i;m=-1}h=0;while(1){R:{k=H[i>>2];if(!k){break R}k=oc(j+4|0,k);if((k|0)<0){break b}if(k>>>0>m-h>>>0){break R}i=i+4|0;h=h+k|0;if(m>>>0>h>>>0){continue}}break}n=61;if((h|0)<0){break c}Na(a,32,p,h,l);if(!h){h=0;break v}n=0;i=H[j+48>>2];while(1){k=H[i>>2];if(!k){break v}m=j+4|0;k=oc(m,k);n=k+n|0;if(n>>>0>h>>>0){break v}La(a,m,k);i=i+4|0;if(h>>>0>n>>>0){continue}break}}Na(a,32,p,h,l^8192);h=(h|0)<(p|0)?p:h;continue f}if((m|0)<0&u){break d}n=61;h=ra[f|0](a,M[j+48>>3],p,m,l,h)|0;if((h|0)>=0){continue f}break c}i=I[h+1|0];h=h+1|0;continue}}if(a){break a}if(!w){break g}h=1;while(1){a=H[(h<<2)+e>>2];if(a){qc((h<<3)+d|0,a,c,g);o=1;h=h+1|0;if((h|0)!=10){continue}break a}break}if(h>>>0>=10){o=1;break a}while(1){if(H[(h<<2)+e>>2]){break j}o=1;h=h+1|0;if((h|0)!=10){continue}break}break a}n=28;break c}F[j+39|0]=h;m=1;k=A;l=i}i=n-k|0;m=(i|0)<(m|0)?m:i;if((m|0)>(q^2147483647)){break d}n=61;b=m+q|0;h=(b|0)<(p|0)?p:b;if(y>>>0<h>>>0){break c}Na(a,32,h,b,l);La(a,v,q);Na(a,48,h,b,l^65536);Na(a,48,m,i,0);La(a,k,i);Na(a,32,h,b,l^8192);b=H[j+60>>2];continue}break}break}o=0;break a}n=61}H[6597]=n}o=-1}na=j- -64|0;return o}function Pc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;i=na-80|0;na=i;H[i+76>>2]=1;a:{b:{if(H[a+128>>2]!=1|H[a+132>>2]!=1|(H[a+108>>2]|H[a+112>>2])){break b}j=H[a+100>>2];if(H[j>>2]|H[j+4>>2]|(H[j+8>>2]!=H[a+116>>2]|H[j+12>>2]!=H[a+120>>2])){break b}if(!cb(a,i+72|0,0,i+68|0,i- -64|0,i+60|0,i+56|0,i+52|0,i+76|0,b,c)){break a}c:{d:{if(!H[i+76>>2]){break d}if(!ib(a,H[i+72>>2],0,0,b,c)){break d}b=H[a+100>>2];if(H[b+16>>2]){break c}d=1;break a}Ba(c,1,8776,0);break a}e=H[b+24>>2];while(1){b=N(g,52);Ca(H[(b+e|0)+44>>2]);c=H[a+100>>2];e=H[c+24>>2];j=b+e|0;m=H[a+232>>2];d=H[H[H[m+20>>2]>>2]+20>>2]+N(g,76)|0;H[j+44>>2]=H[d+36>>2];H[j+36>>2]=H[(b+H[H[m+24>>2]+24>>2]|0)+36>>2];H[d+36>>2]=0;d=1;g=g+1|0;if(g>>>0<K[c+16>>2]){continue}break}break a}H[a+80>>2]=0;H[a+84>>2]=0;Ca(H[a+88>>2]);H[a+88>>2]=0;e:{if(!(H[a+28>>2]|H[a+32>>2]|H[a+36>>2]!=H[a+128>>2])){j=2;if(H[a+40>>2]==H[a+132>>2]){break e}}j=2;if(H[a+76>>2]){break e}if(!Ab(b)){break e}q=H[a+128>>2];j=N(q,H[a+132>>2]);if(j){h=H[H[a+224>>2]+40>>2];f:{g:{if((j|0)==1){j=0;break g}k=j&1;n=j&-2;j=0;while(1){d=h+N(g,40)|0;f=H[d+4>>2];if(f){l=(H[d+16>>2]+N(f,24)|0)-8|0;f=H[l>>2];o=f;p=f>>>0>j>>>0;f=H[l+4>>2];l=p&(f|0)>=(m|0)|(f|0)>(m|0);j=l?o:j;m=l?f:m}f=H[d+44>>2];if(f){f=(H[d+56>>2]+N(f,24)|0)-8|0;d=H[f>>2];o=d;l=d>>>0>j>>>0;d=H[f+4>>2];f=l&(d|0)>=(m|0)|(d|0)>(m|0);j=f?o:j;m=f?d:m}g=g+2|0;e=e+2|0;if((n|0)!=(e|0)){continue}break}if(!k){break f}}d=h+N(g,40)|0;h=H[d+4>>2];if(!h){break f}h=(H[d+16>>2]+N(h,24)|0)-8|0;d=H[h>>2];f=d;k=d>>>0>j>>>0;d=H[h+4>>2];h=k&(d|0)>=(m|0)|(d|0)>(m|0);j=h?f:j;m=h?d:m}j=j+2|0;m=j>>>0<2?m+1|0:m}else{j=2;m=0}g=0;k=H[a+32>>2];p=H[a+40>>2];h:{if(k>>>0>=p>>>0){break h}h=H[a+28>>2];f=H[a+36>>2];if(h>>>0>=f>>>0){break h}n=f-h&3;s=H[H[a+224>>2]+40>>2];t=h-f>>>0>4294967292;while(1){l=s+N(N(k,q),40)|0;d=h;e=0;if(n){while(1){g=H[(l+N(d,40)|0)+4>>2]+g|0;d=d+1|0;e=e+1|0;if((n|0)!=(e|0)){continue}break}}if(!t){while(1){e=l+N(d,40)|0;g=H[e+124>>2]+(H[e+84>>2]+(H[e+44>>2]+(H[e+4>>2]+g|0)|0)|0)|0;d=d+4|0;if((f|0)!=(d|0)){continue}break}}k=k+1|0;if((p|0)!=(k|0)){continue}break}}f=Fa(g<<3);H[a+88>>2]=f;if(!g|!f){break e}g=0;d=H[a+40>>2];n=H[a+32>>2];i:{if(d>>>0<=n>>>0){break i}e=H[a+36>>2];if(e>>>0<=K[a+28>>2]){break i}while(1){f=H[a+28>>2];if(e>>>0>f>>>0){s=H[H[a+224>>2]+40>>2]+N(N(H[a+128>>2],n),40)|0;while(1){h=s+N(f,40)|0;d=H[h+4>>2];if(d){q=d&3;p=H[h+16>>2];h=0;j:{k:{if(d>>>0<4){d=0;break k}t=d&-4;d=0;k=0;while(1){e=p+N(d,24)|0;r=H[e+4>>2];l=g<<3;o=l+H[a+88>>2]|0;H[o>>2]=H[e>>2];H[o+4>>2]=r;r=H[e+28>>2];o=l+H[a+88>>2]|0;H[o+8>>2]=H[e+24>>2];H[o+12>>2]=r;r=H[e+52>>2];o=l+H[a+88>>2]|0;H[o+16>>2]=H[e+48>>2];H[o+20>>2]=r;o=H[e+76>>2];l=l+H[a+88>>2]|0;H[l+24>>2]=H[e+72>>2];H[l+28>>2]=o;d=d+4|0;g=g+4|0;k=k+4|0;if((t|0)!=(k|0)){continue}break}if(!q){break j}}while(1){k=p+N(d,24)|0;l=H[k+4>>2];e=H[a+88>>2]+(g<<3)|0;H[e>>2]=H[k>>2];H[e+4>>2]=l;d=d+1|0;g=g+1|0;h=h+1|0;if((q|0)!=(h|0)){continue}break}}e=H[a+36>>2]}f=f+1|0;if(e>>>0>f>>>0){continue}break}d=H[a+40>>2]}n=n+1|0;if(n>>>0<d>>>0){continue}break}f=H[a+88>>2]}H[a+84>>2]=g;e=na-208|0;na=e;H[e+8>>2]=1;H[e+12>>2]=0;h=g<<3;l:{if(!h){break l}H[e+16>>2]=8;H[e+20>>2]=8;d=2;while(1){g=(e+16|0)+(d<<2)|0;k=H[g-4>>2]+(H[g-8>>2]+8|0)|0;H[g>>2]=k;d=d+1|0;if(h>>>0>k>>>0){continue}break}d=h-8|0;m:{if((d|0)<=0){g=0;h=1;d=1;k=0;break m}g=d+f|0;h=1;d=1;while(1){n:{if((h&3)==3){Bb(f,d,e+16|0);ub(e+8|0,2);d=d+2|0;break n}n=e+16|0;k=d-1|0;o:{if(K[n+(k<<2)>>2]>=g-f>>>0){tb(f,h,H[e+12>>2],d,0,n);break o}Bb(f,d,e+16|0)}if((d|0)==1){sb(e+8|0,1);d=0;break n}sb(e+8|0,k);d=1}h=H[e+8>>2]|1;H[e+8>>2]=h;f=f+8|0;if(g>>>0>f>>>0){continue}break}g=H[e+12>>2];k=(g|0)!=0}tb(f,h,g,d,0,e+16|0);h=H[e+8>>2];if(!(k|((d|0)!=1|(h|0)!=1))){break l}while(1){p:{if((d|0)<=1){h=wc(h,g);ub(e+8|0,h);d=d+h|0;break p}g=e+8|0;sb(g,2);H[e+8>>2]=H[e+8>>2]^7;ub(g,1);n=f-8|0;k=e+16|0;h=d-2|0;tb(n-H[k+(h<<2)>>2]|0,H[e+8>>2],H[e+12>>2],d-1|0,1,k);sb(g,1);d=H[e+8>>2]|1;H[e+8>>2]=d;tb(n,d,H[e+12>>2],h,1,k);d=h}f=f-8|0;g=H[e+12>>2];h=H[e+8>>2];if(g|((d|0)!=1|(h|0)!=1)){continue}break}}na=e+208|0}d=H[a+128>>2];e=0;q:{while(1){r:{if(!(!H[H[a+180>>2]+5596>>2]|((d|0)!=1|H[a+132>>2]!=1))){H[i+72>>2]=0;H[a+228>>2]=0;H[a+8>>2]=H[a+8>>2]|128;d=0;break r}d=0;if(!cb(a,i+72|0,0,i+68|0,i- -64|0,i+60|0,i+56|0,i+52|0,i+76|0,b,c)){break a}if(!H[i+76>>2]){break q}d=H[i+72>>2]}h=d+1|0;f=ib(a,d,0,0,b,c);g=N(H[a+128>>2],H[a+132>>2]);if(!f){H[i+4>>2]=g;H[i>>2]=h;Ba(c,1,7537,i);d=0;break a}H[i+36>>2]=g;H[i+32>>2]=h;Ba(c,4,11795,i+32|0);if(!Hc(H[a+232>>2],H[H[a+100>>2]+24>>2])){d=0;break a}s:{if(!(H[a+128>>2]!=1|H[a+132>>2]!=1)){g=H[a+100>>2];f=H[a+96>>2];if(H[g>>2]!=H[f>>2]|H[g+4>>2]!=H[f+4>>2]|(H[g+8>>2]!=H[f+8>>2]|H[g+12>>2]!=H[f+12>>2])){break s}}d=H[a+180>>2]+N(d,5644)|0;g=H[d+5596>>2];if(!g){break s}Ca(g);H[d+5596>>2]=0;H[d+5600>>2]=0}H[i+16>>2]=h;Ba(c,4,16601,i+16|0);if(!(Qa(b)|qa)&H[a+8>>2]==64){break q}e=e+1|0;d=H[a+128>>2];if((e|0)==(N(d,H[a+132>>2])|0)){break q}h=H[a+84>>2];if(!h|(h|0)!=H[a+80>>2]){continue}break}nc(b,j,m,c)}d=Gc(a,c)}na=i+80|0;return d|0}function Ya(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=H[a+32>>2];a:{if(d){break a}b:{h=H[a+16>>2];if((h|0)>=6){b=H[a+8>>2];f=H[a+12>>2];d=h;break b}b=H[a+20>>2];c:{d:{if((b|0)>=5){c=H[a>>2];d=H[c>>2];H[a>>2]=c+4;g=b-4|0;break d}if((b|0)<=0){d=-1;break c}c=H[a>>2];e:{if((b|0)==1){e=-1;b=0;break e}d=0;f:{g:{if((b|0)==2){e=-1;i=b;break g}f=b-1|0;k=f&1;j=f&-2;e=-1;i=b;while(1){f=c;H[a>>2]=c+1;l=I[c|0];c=c+2|0;H[a>>2]=c;H[a+20>>2]=i-1;f=I[f+1|0];i=i-2|0;H[a+20>>2]=i;e=((255<<d^-1)&e|l<<d)&(65280<<d^-1)|f<<(d|8);d=d+16|0;m=m+2|0;if((j|0)!=(m|0)){continue}break}if(!k){break f}}f=c+1|0;H[a>>2]=f;c=I[c|0];H[a+20>>2]=i-1;e=(255<<d^-1)&e|c<<d;c=f}b=(b<<3)-8|0}H[a>>2]=c+1;d=(255<<b^-1)&e|(I[c|0]|15)<<b}H[a+20>>2]=g}b=H[a+24>>2];c=d>>>24|0;H[a+24>>2]=(c|0)==255;g=d>>>16&255;k=(g|0)==255;f=d&255;e=(f|0)==255;j=b+e|0;b=d>>>8&255;i=(b|0)==255;j=k+(j+i|0)|0;d=(h-j|0)+32|0;H[a+16>>2]=d;l=H[a+12>>2];b=c|(g|(b|f<<(e?7:8))<<(i?7:8))<<(k?7:8);f=(j-h|0)+32|0;c=f&31;if((f&63)>>>0>=32){i=b<<c;g=0}else{i=(1<<c)-1&b>>>32-c;g=b<<c}b=g|H[a+8>>2];c=i|l;f=c;H[a+8>>2]=b;H[a+12>>2]=c;if((d|0)>=6){break b}d=0;break a}e=H[a+28>>2];i=H[(e<<2)+20752>>2];h:{if((f|0)<0){d=d-1|0;c=(-1<<i^-1)<<1;i=1;e=((e|0)>=11?11:e)+1|0;break h}g=b;h=63-i|0;c=h&31;if((h&63)>>>0>=32){g=f>>>c|0}else{g=((1<<c)-1&f)<<32-c|g>>>c}c=(g&(-1<<i^-1))<<1|1;i=i+1|0;d=d-i|0;e=((e|0)<=1?1:e)-1|0}H[a+16>>2]=d;H[a+28>>2]=e;g=b;h=i&31;if((i&63)>>>0>=32){b=b<<h;g=0}else{b=(1<<h)-1&g>>>32-h|f<<h;g=g<<h}f=b;H[a+8>>2]=g;H[a+12>>2]=b;i=H[a+44>>2]|c>>31;j=H[a+40>>2]&-64|c;H[a+40>>2]=j;H[a+44>>2]=i;if((d|0)<6){d=1;break a}b=H[(e<<2)+20752>>2];i:{if((f|0)<0){d=d-1|0;c=(-1<<b^-1)<<1;b=1;e=((e|0)>=11?11:e)+1|0;break i}k=g;h=63-b|0;c=h&31;if((h&63)>>>0>=32){k=f>>>c|0}else{k=((1<<c)-1&f)<<32-c|k>>>c}c=(k&(-1<<b^-1))<<1|1;b=b+1|0;d=d-b|0;e=((e|0)<=1?1:e)-1|0}H[a+16>>2]=d;H[a+28>>2]=e;k=g;h=b&31;if((b&63)>>>0>=32){b=g<<h;k=0}else{b=(1<<h)-1&k>>>32-h|f<<h;k=k<<h}f=b;H[a+8>>2]=k;H[a+12>>2]=b;b=c>>31<<7|c>>>25|i;h=b;j=j&-8065|c<<7;H[a+40>>2]=j;H[a+44>>2]=b;if((d|0)<6){d=2;break a}b=H[(e<<2)+20752>>2];j:{if((f|0)<0){d=d-1|0;c=(-1<<b^-1)<<1;b=1;e=((e|0)>=11?11:e)+1|0;break j}g=k;i=63-b|0;c=i&31;if((i&63)>>>0>=32){g=f>>>c|0}else{g=((1<<c)-1&f)<<32-c|g>>>c}c=(g&(-1<<b^-1))<<1|1;b=b+1|0;d=d-b|0;e=((e|0)<=1?1:e)-1|0}H[a+16>>2]=d;H[a+28>>2]=e;l=k;g=b&31;if((b&63)>>>0>=32){i=k<<g;g=0}else{i=(1<<g)-1&l>>>32-g|f<<g;g=l<<g}H[a+8>>2]=g;f=i;H[a+12>>2]=f;b=c>>31<<14|c>>>18|h;i=b;k=j&-1032193|c<<14;H[a+40>>2]=k;H[a+44>>2]=b;if((d|0)<6){d=3;break a}b=H[(e<<2)+20752>>2];k:{if((f|0)<0){d=d-1|0;c=(-1<<b^-1)<<1;b=1;e=((e|0)>=11?11:e)+1|0;break k}j=g;h=63-b|0;c=h&31;if((h&63)>>>0>=32){j=f>>>c|0}else{j=((1<<c)-1&f)<<32-c|j>>>c}c=(j&(-1<<b^-1))<<1|1;b=b+1|0;d=d-b|0;e=((e|0)<=1?1:e)-1|0}H[a+16>>2]=d;H[a+28>>2]=e;j=g;h=b&31;if((b&63)>>>0>=32){b=g<<h;g=0}else{b=(1<<h)-1&j>>>32-h|f<<h;g=j<<h}f=b;H[a+8>>2]=g;H[a+12>>2]=b;b=c>>31<<21|c>>>11|i;j=b;k=k&-132120577|c<<21;H[a+40>>2]=k;H[a+44>>2]=b;if((d|0)<6){d=4;break a}b=H[(e<<2)+20752>>2];l:{if((f|0)<0){c=(-1<<b^-1)<<1;b=1;h=((e|0)>=11?11:e)+1|0;d=d-1|0;break l}h=g;i=63-b|0;c=i&31;if((i&63)>>>0>=32){i=f>>>c|0}else{i=((1<<c)-1&f)<<32-c|h>>>c}c=(i&(-1<<b^-1))<<1|1;h=((e|0)<=1?1:e)-1|0;b=b+1|0;d=d-b|0}H[a+16>>2]=d;H[a+28>>2]=h;i=g;e=b&31;if((b&63)>>>0>=32){b=g<<e;g=0}else{b=(1<<e)-1&i>>>32-e|f<<e;g=i<<e}H[a+8>>2]=g;f=b;H[a+12>>2]=b;b=j&-4|(c>>31<<28|c>>>4);j=b;k=k&268435455|c<<28;H[a+40>>2]=k;H[a+44>>2]=b;if((d|0)<6){d=5;break a}b=H[(h<<2)+20752>>2];m:{if((f|0)<0){e=(-1<<b^-1)<<1;b=1;h=((h|0)>=11?11:h)+1|0;i=d-1|0;break m}i=g;e=63-b|0;c=e&31;if((e&63)>>>0>=32){i=f>>>c|0}else{i=((1<<c)-1&f)<<32-c|i>>>c}e=(i&(-1<<b^-1))<<1|1;h=((h|0)<=1?1:h)-1|0;b=b+1|0;i=d-b|0}H[a+16>>2]=i;H[a+28>>2]=h;d=g;c=b&31;if((b&63)>>>0>=32){b=d<<c;g=0}else{b=(1<<c)-1&d>>>32-c|f<<c;g=d<<c}c=b;H[a+8>>2]=g;H[a+12>>2]=b;b=j&-505|e<<3;l=b;H[a+40>>2]=k;H[a+44>>2]=b;d=6;if((i|0)<6){break a}b=H[(h<<2)+20752>>2];n:{if((c|0)<0){e=(-1<<b^-1)<<1;b=1;h=((h|0)>=11?11:h)+1|0;d=i-1|0;break n}d=g;e=63-b|0;f=e&31;if((e&63)>>>0>=32){f=c>>>f|0}else{f=((1<<f)-1&c)<<32-f|d>>>f}e=(f&(-1<<b^-1))<<1|1;h=((h|0)<=1?1:h)-1|0;b=b+1|0;d=i-b|0}H[a+16>>2]=d;H[a+28>>2]=h;j=g;f=b&31;if((b&63)>>>0>=32){i=g<<f;g=0}else{i=(1<<f)-1&j>>>32-f|c<<f;g=j<<f}H[a+8>>2]=g;f=i;H[a+12>>2]=f;i=k;b=l&-64513|e<<10;k=b;H[a+40>>2]=i;H[a+44>>2]=b;if((d|0)<6){d=7;break a}b=H[(h<<2)+20752>>2];o:{if((f|0)<0){d=d-1|0;c=(-1<<b^-1)<<1;b=1;e=((h|0)>=11?11:h)+1|0;break o}j=g;e=63-b|0;c=e&31;if((e&63)>>>0>=32){j=f>>>c|0}else{j=((1<<c)-1&f)<<32-c|j>>>c}c=(j&(-1<<b^-1))<<1|1;b=b+1|0;d=d-b|0;e=((h|0)<=1?1:h)-1|0}H[a+16>>2]=d;H[a+28>>2]=e;d=g;e=b&31;if((b&63)>>>0>=32){b=d<<e;g=0}else{b=(1<<e)-1&d>>>32-e|f<<e;g=d<<e}H[a+8>>2]=g;H[a+12>>2]=b;H[a+40>>2]=i;H[a+44>>2]=k&-8257537|c<<17;d=8}H[a+32>>2]=d-1;f=H[a+44>>2];b=f>>>7|0;c=H[a+40>>2];H[a+40>>2]=(f&127)<<25|c>>>7;H[a+44>>2]=b;return c&127}function Ub(a,b,c,d,e,f,g,h,i){var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,z=0,A=0;p=na-32|0;na=p;H[p+24>>2]=f;r=H[(N(H[d+28>>2],76)+b|0)+28>>2]+N(H[d+32>>2],152)|0;a:{if(!(H[d+40>>2]|!H[r+24>>2])){k=r+28|0;while(1){b:{if(Qb(k)){break b}b=H[d+36>>2];if(b>>>0>=K[k+24>>2]/40>>>0){Ba(i,1,2836,0);break a}b=H[k+20>>2]+N(b,40)|0;fc(H[b+32>>2]);fc(H[b+36>>2]);o=N(H[b+20>>2],H[b+16>>2]);if(!o){break b}q=o&7;b=H[b+24>>2];if(o>>>0>=8){o=o&-8;j=0;while(1){H[b+516>>2]=0;H[b+520>>2]=0;H[b+448>>2]=0;H[b+452>>2]=0;H[b+380>>2]=0;H[b+384>>2]=0;H[b+312>>2]=0;H[b+316>>2]=0;H[b+244>>2]=0;H[b+248>>2]=0;H[b+176>>2]=0;H[b+180>>2]=0;H[b+108>>2]=0;H[b+112>>2]=0;H[b+40>>2]=0;H[b+44>>2]=0;b=b+544|0;j=j+8|0;if((o|0)!=(j|0)){continue}break}if(!q){break b}}j=0;while(1){H[b+40>>2]=0;H[b+44>>2]=0;b=b+68|0;j=j+1|0;if((q|0)!=(j|0)){continue}break}}k=k+36|0;n=n+1|0;if(n>>>0<K[r+24>>2]){continue}break}}q=f;c:{if(!(I[c|0]&2)){break c}if(h>>>0<=5){Ba(i,2,4196,0);break c}if(!(I[f|0]==255&I[f+1|0]==145)){Ba(i,2,4238,0);break c}q=f+6|0;H[p+24>>2]=q}l=Fa(20);if(!l){break a}d:{if(F[a+108|0]&1){q=H[a+40>>2];o=a+44|0;h=a+40|0;break d}if(I[c+5640|0]&2){q=H[c+5168>>2];o=c+5180|0;h=c+5168|0;break d}H[p+28>>2]=(f+h|0)-q;o=p+28|0;h=p+24|0}a=H[o>>2];H[l+12>>2]=0;H[l+16>>2]=0;H[l+8>>2]=q;H[l>>2]=q;H[l+4>>2]=a+q;if(!Ra(l,1)){hc(l);a=ic(l);db(l);a=a+q|0;b=H[h>>2];d=H[o>>2];if(I[c|0]&4){if(b+(d-a|0)>>>0<=1){Ba(i,1,4422,0);break a}if(!(I[a|0]==255&I[a+1|0]==146)){Ba(i,1,4401,0);break a}a=a+2|0}a=a-b|0;H[o>>2]=d-a;H[h>>2]=a+b;H[e>>2]=0;H[g>>2]=H[p+24>>2]-f;x=1;break a}if(H[r+24>>2]){t=r+28|0;while(1){a=H[d+36>>2];b=H[t+20>>2];e:{if(Qb(t)){break e}u=b+N(a,40)|0;z=N(H[u+20>>2],H[u+16>>2]);if(!z){break e}k=H[u+24>>2];v=0;while(1){f:{g:{if(!H[k+40>>2]){a=dc(l,H[u+32>>2],v,H[d+40>>2]+1|0);break g}a=Ra(l,1)}if(!a){H[k+36>>2]=0;break f}if(!H[k+40>>2]){b=0;while(1){a=b;b=b+1|0;if(!dc(l,H[u+36>>2],v,a)){continue}break}b=H[t+28>>2];H[k+32>>2]=3;H[k+24>>2]=b;H[k+28>>2]=(b-a|0)+1}a=1;h:{if(!Ra(l,1)){break h}a=2;if(!Ra(l,1)){break h}a=Ra(l,2);if((a|0)!=3){a=a+3|0;break h}a=Ra(l,5);if((a|0)!=31){a=a+6|0;break h}a=Ra(l,7)+37|0}H[k+36>>2]=a;b=0;while(1){a=b;b=b+1|0;if(Ra(l,1)){continue}break}H[k+32>>2]=a+H[k+32>>2];i:{a=H[k+40>>2];j:{k:{if(!a){a=H[(H[c+5584>>2]+N(H[d+28>>2],1080)|0)+16>>2];if(!H[k+48>>2]){b=Ha(H[k>>2],240);if(!b){break i}H[k>>2]=b;y(b+N(H[k+48>>2],24)|0,0,240);H[k+48>>2]=10}j=H[k>>2];kb(j);b=a&4?1:a&1?10:109;a=0;break k}b=H[k>>2];n=a-1|0;j=b+N(n,24)|0;if(H[j+4>>2]!=H[j+12>>2]){break j}n=H[(H[c+5584>>2]+N(H[d+28>>2],1080)|0)+16>>2];j=H[k+48>>2];if(j>>>0<a+1>>>0){j=j+10|0;b=Ha(b,N(j,24));if(!b){break i}H[k>>2]=b;y(b+N(H[k+48>>2],24)|0,0,240);H[k+48>>2]=j;b=H[k>>2]}j=N(a,24)+b|0;kb(j);b=1;l:{if(n&4){break l}b=109;if(!(n&1)){break l}b=H[j-12>>2];b=(b|0)==1?2:(b|0)==10?2:1}}n=a;H[j+12>>2]=b}a=H[k+36>>2];if(I[(H[c+5584>>2]+N(H[d+28>>2],1080)|0)+16|0]&64){while(1){m=N(n,24);s=n?a:1;H[(m+H[k>>2]|0)+16>>2]=s;w=H[k+32>>2];j=0;b=a;if(s>>>0>=2){while(1){j=j+1|0;s=b>>>0>3;b=b>>>1|0;if(s){continue}break}}b=j+w|0;if(b>>>0>=33){H[p+16>>2]=b;Ba(i,1,15535,p+16|0);break i}j=Ra(l,b);b=H[k>>2];m=m+b|0;H[m+20>>2]=j;a=a-H[m+16>>2]|0;if((a|0)<=0){break f}j=H[(H[c+5584>>2]+N(H[d+28>>2],1080)|0)+16>>2];m=H[k+48>>2];if(m>>>0<n+2>>>0){m=m+10|0;b=Ha(b,N(m,24));if(!b){break i}H[k>>2]=b;y(b+N(H[k+48>>2],24)|0,0,240);H[k+48>>2]=m;b=H[k>>2]}n=n+1|0;b=b+N(n,24)|0;kb(b);if(j&4){H[b+12>>2]=1;continue}if(j&1){j=b;b=H[b-12>>2];H[j+12>>2]=(b|0)==1?2:(b|0)==10?2:1}else{H[b+12>>2]=109}continue}}while(1){m=N(n,24);j=m+H[k>>2]|0;b=H[j+12>>2]-H[j+4>>2]|0;b=(a|0)>(b|0)?b:a;H[j+16>>2]=b;s=H[k+32>>2];j=0;if(b>>>0>=2){while(1){j=j+1|0;w=b>>>0>3;b=b>>>1|0;if(w){continue}break}}b=j+s|0;if(b>>>0>=33){H[p>>2]=b;Ba(i,1,15535,p);break i}j=Ra(l,b);b=H[k>>2];m=m+b|0;H[m+20>>2]=j;a=a-H[m+16>>2]|0;if((a|0)<=0){break f}j=H[(H[c+5584>>2]+N(H[d+28>>2],1080)|0)+16>>2];m=H[k+48>>2];if(m>>>0<n+2>>>0){m=m+10|0;b=Ha(b,N(m,24));if(!b){break i}H[k>>2]=b;y(b+N(H[k+48>>2],24)|0,0,240);H[k+48>>2]=m;b=H[k>>2]}n=n+1|0;b=b+N(n,24)|0;kb(b);if(j&4){H[b+12>>2]=1;continue}if(j&1){j=b;b=H[b-12>>2];H[j+12>>2]=(b|0)==1?2:(b|0)==10?2:1}else{H[b+12>>2]=109}continue}}db(l);break a}k=k+68|0;v=v+1|0;if((z|0)!=(v|0)){continue}break}}t=t+36|0;A=A+1|0;if(A>>>0<K[r+24>>2]){continue}break}}if(!hc(l)){db(l);break a}a=ic(l);db(l);b=a+q|0;a=H[h>>2];if(I[c|0]&4){if(a+(H[o>>2]-b|0)>>>0<=1){Ba(i,1,4422,0);break a}if(!(I[b|0]==255&I[b+1|0]==146)){Ba(i,1,4401,0);break a}b=b+2|0}if((a|0)==(b|0)){break a}H[o>>2]=H[o>>2]+(a-b|0);H[h>>2]=b;x=1;H[e>>2]=1;H[g>>2]=H[p+24>>2]-f}na=p+32|0;return x}function Gb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0;a:{if(!c){break a}b:{e=H[a+184>>2];if(!e){break b}f=H[a+96>>2];if(!f|!H[f+16>>2]|(e|0)!=H[H[f+24>>2]+40>>2]){break b}f=H[c+16>>2];if(!f){break b}n=H[c+24>>2];if(H[n+40>>2]|H[n+44>>2]){break b}i=f&7;c:{if(f>>>0>=8){p=f&-8;while(1){f=N(h,52)+n|0;H[f+404>>2]=e;H[f+352>>2]=e;H[f+300>>2]=e;H[f+248>>2]=e;H[f+196>>2]=e;H[f+144>>2]=e;H[f+92>>2]=e;H[f+40>>2]=e;h=h+8|0;g=g+8|0;if((g|0)!=(p|0)){continue}break}if(!i){break c}}while(1){H[(N(h,52)+n|0)+40>>2]=e;h=h+1|0;j=j+1|0;if((i|0)!=(j|0)){continue}break}}e=0;p=0;n=na-32|0;na=n;v=H[c+16>>2];d:{if(!v){e=1;break d}h=H[c>>2];f=h>>31;q=f;e:{if((f|0)<0){break e}i=H[c+4>>2];f=i>>31;m=f;if((f|0)<0){break e}g=H[c+8>>2];f=g>>31;s=f;if((f|0)<0){break e}j=H[c+12>>2];r=j>>31;if((r|0)<0){break e}f=H[c+24>>2];y=h-1|0;w=q-!h|0;z=i-1|0;x=m-!i|0;A=g-1|0;B=s-!g|0;C=j-1|0;D=r-!j|0;while(1){e=H[f>>2];h=e+y|0;i=e>>>0>h>>>0?w+1|0:w;j=ve(h,i,e,0);H[f+16>>2]=j;i=H[f+4>>2];h=i+z|0;g=i>>>0>h>>>0?x+1|0:x;r=ve(h,g,i,0);H[f+20>>2]=r;h=H[f+40>>2];g=h&31;if((h&63)>>>0>=32){q=1<<g;m=0}else{m=1<<g;q=m-1&1>>>32-g}s=m-1|0;g=q-!m|0;u=g;t=e>>31;l=t+B|0;o=l+1|0;g=l;l=e+A|0;g=ue(l,l>>>0<e>>>0?o:g,e,t);e=u+(g>>31)|0;o=e+1|0;l=e;e=g+s|0;t=g>>>0>e>>>0?o:l;g=h&31;l=(j>>31)+u|0;E=l+1|0;o=l;l=j+s|0;j=j>>>0>l>>>0?E:o;if((h&63)>>>0>=32){g=t>>g}else{g=((1<<g)-1&t)<<32-g|e>>>g}e=h&31;if((h&63)>>>0>=32){e=j>>e}else{e=((1<<e)-1&j)<<32-e|l>>>e}e=g-e|0;if((e|0)<0){H[n+4>>2]=e;H[n>>2]=p;Ba(d,1,13510,n);e=0;break d}H[f+8>>2]=e;e=i>>31;g=e+D|0;o=g+1|0;l=g;g=i+C|0;j=g>>>0<i>>>0?o:l;i=ue(g,j,i,e);e=(i>>31)+u|0;g=e+1|0;l=e;e=i+s|0;g=i>>>0>e>>>0?g:l;i=h&31;j=q+(r>>31)|0;o=j+1|0;l=j;j=m+r|0;q=j>>>0<m>>>0?o:l;m=j-1|0;if((h&63)>>>0>=32){l=g>>i}else{l=((1<<i)-1&g)<<32-i|e>>>i}i=q-!j|0;e=h&31;if((h&63)>>>0>=32){m=i>>e}else{m=((1<<e)-1&i)<<32-e|m>>>e}e=l-m|0;if((e|0)<0){H[n+20>>2]=e;H[n+16>>2]=p;Ba(d,1,13579,n+16|0);e=0;break d}H[f+12>>2]=e;f=f+52|0;e=1;p=p+1|0;if((v|0)!=(p|0)){continue}break}break d}Ba(d,1,6720,0)}na=n+32|0;if(e){break b}return 0}e=H[a+100>>2];if(!e){e=Eb();H[a+100>>2]=e;if(!e){break a}}Ec(c,e);if(!Wa(H[a+216>>2],22,d)){break a}h=H[a+216>>2];f=H[h>>2];e=H[h+8>>2];f:{if(f){k=1;g:{if((f|0)!=1){n=f&1;i=f&-2;f=0;while(1){m=0;h:{if(!k){break h}m=0;if(!(ra[H[e>>2]](a,b,d)|0)){break h}m=(ra[H[e+4>>2]](a,b,d)|0)!=0}k=m;e=e+8|0;f=f+2|0;if((i|0)!=(f|0)){continue}break}if(!n){break g}}if(!k){k=0;break g}k=(ra[H[e>>2]](a,b,d)|0)!=0}Pa(h);if(k){break f}Ua(H[a+96>>2]);H[a+96>>2]=0;return 0}Pa(h)}f=0;b=0;d=0;i:{j:{k:{e=H[a+60>>2];if(!e){if(H[c+16>>2]){break k}k=1;break i}h=Fa(N(e,52));if(!h){break j}e=0;if(H[c+16>>2]){b=H[c+24>>2];while(1){e=N(d,52);Ca(H[(e+b|0)+44>>2]);b=H[c+24>>2];H[(e+b|0)+44>>2]=0;d=d+1|0;e=H[c+16>>2];if(d>>>0<e>>>0){continue}break}}if(H[a+60>>2]){d=H[H[a+100>>2]+24>>2];e=0;while(1){b=h+N(e,52)|0;f=N(H[H[a+64>>2]+(e<<2)>>2],52);d=f+d|0;H[b+48>>2]=H[d+48>>2];k=H[d+44>>2];H[b+40>>2]=H[d+40>>2];H[b+44>>2]=k;k=H[d+36>>2];H[b+32>>2]=H[d+32>>2];H[b+36>>2]=k;k=H[d+28>>2];H[b+24>>2]=H[d+24>>2];H[b+28>>2]=k;k=H[d+20>>2];H[b+16>>2]=H[d+16>>2];H[b+20>>2]=k;k=H[d+12>>2];H[b+8>>2]=H[d+8>>2];H[b+12>>2]=k;k=H[d+4>>2];H[b>>2]=H[d>>2];H[b+4>>2]=k;d=H[H[a+100>>2]+24>>2];f=f+d|0;H[b+36>>2]=H[f+36>>2];H[b+44>>2]=H[f+44>>2];H[f+44>>2]=0;e=e+1|0;f=H[a+60>>2];if(e>>>0<f>>>0){continue}break}e=H[c+16>>2]}if(e){b=H[H[a+100>>2]+24>>2];d=0;while(1){e=N(d,52);Ca(H[(e+b|0)+44>>2]);b=H[H[a+100>>2]+24>>2];H[(e+b|0)+44>>2]=0;d=d+1|0;if(d>>>0<K[c+16>>2]){continue}break}f=H[a+60>>2]}H[c+16>>2]=f;Ca(H[c+24>>2]);H[c+24>>2]=h;k=1;break i}e=H[c+24>>2];d=H[H[a+100>>2]+24>>2];while(1){f=N(b,52);e=f+e|0;H[e+36>>2]=H[(d+f|0)+36>>2];Ca(H[e+44>>2]);e=H[c+24>>2];m=f+e|0;d=H[H[a+100>>2]+24>>2];f=f+d|0;H[m+44>>2]=H[f+44>>2];H[f+44>>2]=0;b=b+1|0;if(b>>>0<K[c+16>>2]){continue}break}k=1;break i}Ua(H[a+96>>2]);H[a+96>>2]=0;k=0}}return k|0}function zb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=(c<<2)+b|0;e=H[a>>2];f=H[a+12>>2]<<5;i=e+f|0;l=e-f|0;e=H[a+16>>2];k=H[a+28>>2];h=H[a+20>>2];m=H[a+8>>2];a:{b:{if(i&15|(b&15|d>>>0<8)){if(e>>>0>=h>>>0){break a}c:{switch(d-1|0){case 1:f=e+1|0;if(h-e&1){j=i+(e<<6)|0;e=(e<<2)+b|0;L[j>>2]=L[e>>2];L[j+4>>2]=L[e+(c<<2)>>2];e=f}if((f|0)==(h|0)){break a}while(1){f=i+(e<<6)|0;j=(e<<2)+b|0;L[f>>2]=L[j>>2];g=f;f=c<<2;L[g+4>>2]=L[f+j>>2];j=e+1|0;g=i+(j<<6)|0;j=(j<<2)+b|0;L[g>>2]=L[j>>2];L[g+4>>2]=L[f+j>>2];e=e+2|0;if((h|0)!=(e|0)){continue}break};break a;case 0:break c;default:break b}}f=e;g=h-e&3;if(g){j=0;while(1){L[i+(f<<6)>>2]=L[(f<<2)+b>>2];f=f+1|0;j=j+1|0;if((g|0)!=(j|0)){continue}break}}if(e-h>>>0>4294967292){break a}while(1){L[i+(f<<6)>>2]=L[(f<<2)+b>>2];e=f+1|0;L[i+(e<<6)>>2]=L[(e<<2)+b>>2];e=f+2|0;L[i+(e<<6)>>2]=L[(e<<2)+b>>2];e=f+3|0;L[i+(e<<6)>>2]=L[(e<<2)+b>>2];f=f+4|0;if((h|0)!=(f|0)){continue}break}break a}if(e>>>0>=h>>>0){break a}while(1){f=i+(e<<6)|0;L[f>>2]=L[(e<<2)+b>>2];g=c+e|0;L[f+4>>2]=L[(g<<2)+b>>2];g=c+g|0;L[f+8>>2]=L[(g<<2)+b>>2];g=c+g|0;L[f+12>>2]=L[(g<<2)+b>>2];g=c+g|0;L[f+16>>2]=L[(g<<2)+b>>2];g=c+g<<2;L[f+20>>2]=L[g+b>>2];g=g+j|0;L[f+24>>2]=L[g>>2];L[f+28>>2]=L[g+(c<<2)>>2];e=e+1|0;if((h|0)!=(e|0)){continue}break}break a}while(1){f=i+(e<<6)|0;L[f>>2]=L[(e<<2)+b>>2];g=c+e|0;L[f+4>>2]=L[(g<<2)+b>>2];g=c+g|0;L[f+8>>2]=L[(g<<2)+b>>2];d:{if((d|0)==3){break d}g=c+g|0;L[f+12>>2]=L[(g<<2)+b>>2];if((d|0)==4){break d}g=c+g|0;L[f+16>>2]=L[(g<<2)+b>>2];if((d|0)==5){break d}g=c+g|0;L[f+20>>2]=L[(g<<2)+b>>2];if((d|0)==6){break d}g=j+(g<<2)|0;L[f+24>>2]=L[g>>2];if((d|0)==7){break d}L[f+28>>2]=L[g+(c<<2)>>2]}e=e+1|0;if((h|0)!=(e|0)){continue}break}}b=(m<<2)+b|0;f=b+(c<<2)|0;e=H[a+24>>2];i=l+32|0;e:{if(i&15|(b&15|d>>>0<8)){if(e>>>0>=k>>>0){break e}f:{switch(d-1|0){case 1:a=e+1|0;if(k-e&1){d=i+(e<<6)|0;e=b+(e<<2)|0;L[d>>2]=L[e>>2];L[d+4>>2]=L[e+(c<<2)>>2];e=a}if((a|0)==(k|0)){break e}while(1){a=i+(e<<6)|0;d=b+(e<<2)|0;L[a>>2]=L[d>>2];f=a;a=c<<2;L[f+4>>2]=L[a+d>>2];d=e+1|0;f=i+(d<<6)|0;d=b+(d<<2)|0;L[f>>2]=L[d>>2];L[f+4>>2]=L[a+d>>2];e=e+2|0;if((k|0)!=(e|0)){continue}break};break e;case 0:c=e;a=k-e&3;if(a){f=0;while(1){L[i+(c<<6)>>2]=L[b+(c<<2)>>2];c=c+1|0;f=f+1|0;if((a|0)!=(f|0)){continue}break}}if(e-k>>>0>4294967292){break e}while(1){L[i+(c<<6)>>2]=L[b+(c<<2)>>2];a=c+1|0;L[i+(a<<6)>>2]=L[b+(a<<2)>>2];a=c+2|0;L[i+(a<<6)>>2]=L[b+(a<<2)>>2];a=c+3|0;L[i+(a<<6)>>2]=L[b+(a<<2)>>2];c=c+4|0;if((k|0)!=(c|0)){continue}break};break e;default:break f}}while(1){a=i+(e<<6)|0;L[a>>2]=L[b+(e<<2)>>2];h=c+e|0;L[a+4>>2]=L[b+(h<<2)>>2];h=c+h|0;L[a+8>>2]=L[b+(h<<2)>>2];g:{if((d|0)==3){break g}h=c+h|0;L[a+12>>2]=L[b+(h<<2)>>2];if((d|0)==4){break g}h=c+h|0;L[a+16>>2]=L[b+(h<<2)>>2];if((d|0)==5){break g}h=c+h|0;L[a+20>>2]=L[b+(h<<2)>>2];if((d|0)==6){break g}h=f+(h<<2)|0;L[a+24>>2]=L[h>>2];if((d|0)==7){break g}L[a+28>>2]=L[h+(c<<2)>>2]}e=e+1|0;if((k|0)!=(e|0)){continue}break}break e}if(e>>>0>=k>>>0){break e}while(1){a=i+(e<<6)|0;L[a>>2]=L[b+(e<<2)>>2];d=c+e|0;L[a+4>>2]=L[b+(d<<2)>>2];d=c+d|0;L[a+8>>2]=L[b+(d<<2)>>2];d=c+d|0;L[a+12>>2]=L[b+(d<<2)>>2];d=c+d|0;L[a+16>>2]=L[b+(d<<2)>>2];d=c+d<<2;L[a+20>>2]=L[d+b>>2];d=d+f|0;L[a+24>>2]=L[d>>2];L[a+28>>2]=L[d+(c<<2)>>2];e=e+1|0;if((k|0)!=(e|0)){continue}break}}}function Ib(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=na-176|0;na=f;a:{if(b&384){Ac(5943,11,c);break a}b:{if(!(b&1)){break b}g=H[a+96>>2];if(!g){break b}d=na-80|0;na=d;Ac(1792,13,c);F[d+79|0]=0;F[d+78|0]=9;e=H[g+4>>2];H[d+68>>2]=H[g>>2];H[d+72>>2]=e;e=d+78|0;H[d+64>>2]=e;Ga(c,7520,d- -64|0);i=H[g+12>>2];H[d+52>>2]=H[g+8>>2];H[d+56>>2]=i;H[d+48>>2]=e;Ga(c,7503,d+48|0);H[d+36>>2]=H[g+16>>2];H[d+32>>2]=e;Ga(c,7277,d+32|0);if(!(!H[g+24>>2]|!H[g+16>>2])){while(1){l=d+78|0;H[d+16>>2]=l;H[d+20>>2]=j;Ga(c,1824,d+16|0);i=H[g+24>>2];e=na-48|0;na=e;F[e+46|0]=9;F[e+47|0]=0;F[e+45|0]=9;i=N(j,52)+i|0;k=H[i+4>>2];H[e+36>>2]=H[i>>2];H[e+40>>2]=k;k=e+45|0;H[e+32>>2]=k;Ga(c,7209,e+32|0);H[e+20>>2]=H[i+24>>2];H[e+16>>2]=k;Ga(c,7455,e+16|0);H[e+4>>2]=H[i+32>>2];H[e>>2]=k;Ga(c,7428,e);na=e+48|0;H[d>>2]=l;Ga(c,1702,d);j=j+1|0;if(j>>>0<K[g+16>>2]){continue}break}}Ac(1710,2,c);na=d+80|0}if(!(!(b&2)|!H[a+96>>2])){Ac(1931,36,c);d=H[a+112>>2];H[f+160>>2]=H[a+108>>2];H[f+164>>2]=d;Ga(c,2425,f+160|0);d=H[a+120>>2];H[f+144>>2]=H[a+116>>2];H[f+148>>2]=d;Ga(c,2391,f+144|0);d=H[a+132>>2];H[f+128>>2]=H[a+128>>2];H[f+132>>2]=d;Ga(c,2409,f+128|0);Hb(H[a+12>>2],H[H[a+96>>2]+16>>2],c);Ac(1710,2,c)}c:{if(!(b&8)|!H[a+96>>2]){break c}e=N(H[a+128>>2],H[a+132>>2]);if(!e){break c}d=H[a+180>>2];while(1){Hb(d,H[H[a+96>>2]+16>>2],c);d=d+5644|0;h=h+1|0;if((e|0)!=(h|0)){continue}break}}if(!(b&16)){break a}a=H[a+224>>2];Ac(1893,37,c);b=H[a>>2];d=H[a+4>>2];e=H[a+12>>2];H[f+120>>2]=H[a+8>>2];H[f+124>>2]=e;H[f+112>>2]=b;H[f+116>>2]=d;Ga(c,5730,f+112|0);Ac(1875,17,c);if(!(!H[a+28>>2]|!H[a+24>>2])){d=0;while(1){b=H[a+28>>2]+N(d,24)|0;e=J[b>>1];h=H[b+8>>2];g=H[b+12>>2];H[f+96>>2]=H[b+16>>2];H[f+88>>2]=h;H[f+92>>2]=g;H[f+80>>2]=e;Ga(c,7397,f+80|0);d=d+1|0;if(d>>>0<K[a+24>>2]){continue}break}}Ac(1708,4,c);e=H[a+40>>2];d:{if(!e){break d}g=H[a+36>>2];if(!g){break d}h=0;d=0;while(1){b=e+N(d,40)|0;j=H[b+4>>2];e:{if(!j){break e}b=H[b+16>>2];if(!b){break e}i=H[b>>2];k=H[b+4>>2];if((k|0)<0){i=1}else{i=!i&(k|0)<=0}if(i|(H[b+8>>2]|H[b+12>>2])){break e}if(xc(1439)){break d}}h=h+j|0;d=d+1|0;if((g|0)!=(d|0)){continue}break}if(!h){break d}Ac(1858,16,c);if(H[a+36>>2]){h=H[a+40>>2];g=0;while(1){b=N(g,40);j=H[(b+h|0)+4>>2];H[f+68>>2]=j;H[f+64>>2]=g;Ga(c,7467,f- -64|0);h=H[a+40>>2];f:{if(!j){break f}d=0;if(!H[(b+h|0)+16>>2]){break f}while(1){e=H[(b+H[a+40>>2]|0)+16>>2]+N(d,24)|0;h=H[e>>2];i=H[e+4>>2];k=H[e+8>>2];l=H[e+12>>2];m=H[e+20>>2];H[f+56>>2]=H[e+16>>2];H[f+60>>2]=m;H[f+48>>2]=k;H[f+52>>2]=l;H[f+40>>2]=h;H[f+44>>2]=i;H[f+32>>2]=d;Ga(c,10938,f+32|0);d=d+1|0;if((j|0)!=(d|0)){continue}break}h=H[a+40>>2]}e=b+h|0;g:{if(!H[e+24>>2]){break g}d=0;if(!H[e+20>>2]){break g}while(1){e=H[(b+h|0)+24>>2]+N(d,24)|0;h=J[e>>1];j=H[e+8>>2];i=H[e+12>>2];H[f+16>>2]=H[e+16>>2];H[f+8>>2]=j;H[f+12>>2]=i;H[f>>2]=h;Ga(c,7397,f);d=d+1|0;h=H[a+40>>2];if(d>>>0<K[(b+h|0)+20>>2]){continue}break}}g=g+1|0;if(g>>>0<K[a+36>>2]){continue}break}}Ac(1708,4,c)}Ac(1710,2,c)}na=f+176|0}function oe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;e=na-128|0;na=e;H[e+120>>2]=0;a:{if((c|0)!=8){Ba(d,1,4047,0);Ba(d,1,4047,0);break a}Da(b,a+228|0,2);Da(b+2|0,e+124|0,4);Da(b+6|0,e+116|0,1);Da(b+7|0,e+120|0,1);c=H[a+228>>2];i=H[a+128>>2];if(c>>>0>=N(i,H[a+132>>2])>>>0){H[e+112>>2]=c;Ba(d,1,7843,e+112|0);break a}f=H[a+180>>2]+N(c,5644)|0;h=(c>>>0)/(i>>>0)|0;b=H[e+116>>2];b:{g=H[a+44>>2];if((g|0)>=0&(c|0)!=(g|0)){break b}g=H[f+5588>>2]+1|0;if((g|0)==(b|0)){break b}H[e+104>>2]=g;H[e+100>>2]=b;H[e+96>>2]=c;Ba(d,1,7867,e+96|0);f=0;break a}H[f+5588>>2]=b;c:{b=H[e+124>>2];if(b-1>>>0<=12){if((b|0)!=12){break c}H[e+64>>2]=12;Ba(d,2,11864,e- -64|0);b=H[e+124>>2]}if(!b){Ba(d,4,10695,0);H[a+56>>2]=1}d:{e:{f:{g:{b=H[f+5592>>2];if(b){g=H[e+116>>2];if(g>>>0<b>>>0){break g}H[e+52>>2]=b;H[e+48>>2]=g;Ba(d,1,5150,e+48|0);H[a+56>>2]=1;f=0;break a}g=H[e+120>>2];if(g){break f}break d}g=H[e+120>>2];if(!g){break e}}b=(I[a+92|0]>>>4&1)+g|0;H[e+120>>2]=b;g=H[e+116>>2];j=H[f+5592>>2];if(g>>>0>j-1>>>0){H[e+20>>2]=j;H[e+16>>2]=g;Ba(d,1,5051,e+16|0);H[a+56>>2]=1;f=0;break a}if(b>>>0<=g>>>0){H[e+36>>2]=b;H[e+32>>2]=g;Ba(d,1,5250,e+32|0);H[a+56>>2]=1;f=0;break a}H[f+5592>>2]=b}if((H[e+116>>2]+1|0)!=(b|0)){break d}F[a+92|0]=I[a+92|0]|1}b=H[e+124>>2];H[a+8>>2]=16;H[a+24>>2]=H[a+56>>2]?0:b-12|0;f=H[a+44>>2];h:{if((f|0)==-1){f=4;b=c-N(h,i)|0;if(!(b>>>0<K[a+28>>2]|b>>>0>=K[a+36>>2]|h>>>0<K[a+32>>2])){f=h>>>0>=K[a+40>>2]?4:0}F[a+92|0]=I[a+92|0]&251|f;b=H[a+228>>2];break h}b=H[a+228>>2];F[a+92|0]=I[a+92|0]&251|((f|0)!=(b|0)?4:0)}c=H[H[a+224>>2]+40>>2]+N(b,40)|0;H[c>>2]=b;H[c+12>>2]=H[e+116>>2];f=H[e+120>>2];if(!H[a+76>>2]){if(K[c+4>>2]>=f>>>0){f=1;break a}H[e>>2]=b;Ba(d,2,1612,e);H[a+76>>2]=1;f=H[e+120>>2]}c=H[H[a+224>>2]+40>>2];b=H[a+228>>2];h=c+N(b,40)|0;if(f){H[h+4>>2]=f;b=H[e+120>>2];H[h+8>>2]=b;c=H[h+16>>2];if(!c){b=Ea(b,24);H[(H[H[a+224>>2]+40>>2]+N(H[a+228>>2],40)|0)+16>>2]=b;if(b){f=1;break a}f=0;Ba(d,1,6947,0);break a}b=Ha(c,N(b,24));c=H[H[a+224>>2]+40>>2]+N(H[a+228>>2],40)|0;if(!b){Ca(H[c+16>>2]);f=0;H[(H[H[a+224>>2]+40>>2]+N(H[a+228>>2],40)|0)+16>>2]=0;Ba(d,1,6947,0);break a}H[c+16>>2]=b;f=1;break a}i:{g=H[h+16>>2];if(g){break i}H[h+8>>2]=10;g=Ea(10,24);c=H[H[a+224>>2]+40>>2];b=H[a+228>>2];h=c+N(b,40)|0;H[h+16>>2]=g;if(g){break i}f=0;H[h+8>>2]=0;Ba(d,1,6947,0);break a}f=1;b=N(b,40)+c|0;c=H[e+116>>2];if(K[b+8>>2]>c>>>0){break a}h=b;b=c+1|0;H[h+8>>2]=b;b=Ha(g,N(b,24));c=H[H[a+224>>2]+40>>2]+N(H[a+228>>2],40)|0;if(!b){Ca(H[c+16>>2]);f=0;a=H[H[a+224>>2]+40>>2]+N(H[a+228>>2],40)|0;H[a+8>>2]=0;H[a+16>>2]=0;Ba(d,1,6947,0);break a}H[c+16>>2]=b;break a}H[e+80>>2]=b;Ba(d,1,12133,e+80|0);f=0}na=e+128|0;return f|0}function nb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;f=H[a+8>>2];e=f+H[a+4>>2]|0;a:{if(!H[a+12>>2]){if((e|0)<2|(d|0)<=0){break a}q=e&2147483644;m=e&3;r=e&1;s=f+1|0;g=H[a>>2];o=g+(e<<2)|0;t=e-4>>>1|0;a=e-1|0;u=g+(a<<2)|0;v=N(c,f)<<2;l=e>>>0<4;w=N(a>>>1|0,c)<<2;while(1){f=H[b+v>>2];e=H[b>>2]-(f+1>>1)|0;h=0;a=0;if(!l){while(1){j=a+1|0;x=H[(N(j,c)<<2)+b>>2];i=H[(N(a+s|0,c)<<2)+b>>2];p=g+(h<<2)|0;H[p>>2]=e;k=e;e=x-((f+i|0)+2>>2)|0;H[p+4>>2]=(k+e>>1)+f;h=h+2|0;k=(a|0)!=(t|0);f=i;a=j;if(k){continue}break}}H[g+(h<<2)>>2]=e;if(r){a=H[b+w>>2]-(f+1>>1)|0;H[u>>2]=a;e=a+e>>1;a=-8}else{a=-4}H[a+o>>2]=e+f;f=0;a=0;h=0;e=0;b:{if(!l){while(1){H[(N(a,c)<<2)+b>>2]=H[g+(a<<2)>>2];e=a|1;H[(N(e,c)<<2)+b>>2]=H[g+(e<<2)>>2];e=a|2;H[(N(e,c)<<2)+b>>2]=H[g+(e<<2)>>2];e=a|3;H[(N(e,c)<<2)+b>>2]=H[g+(e<<2)>>2];a=a+4|0;h=h+4|0;if((q|0)!=(h|0)){continue}break}e=a;if(!m){break b}}while(1){H[(N(c,e)<<2)+b>>2]=H[g+(e<<2)>>2];e=e+1|0;f=f+1|0;if((m|0)!=(f|0)){continue}break}}b=b+4|0;n=n+1|0;if((n|0)!=(d|0)){continue}break}break a}c:{switch(e-1|0){case 0:if((d|0)<=0){break a}a=d&3;if(d>>>0>=4){d=d&2147483644;c=0;while(1){H[b>>2]=H[b>>2]/2;H[b+4>>2]=H[b+4>>2]/2;H[b+8>>2]=H[b+8>>2]/2;H[b+12>>2]=H[b+12>>2]/2;b=b+16|0;c=c+4|0;if((d|0)!=(c|0)){continue}break}if(!a){break a}}c=0;while(1){H[b>>2]=H[b>>2]/2;b=b+4|0;c=c+1|0;if((a|0)!=(c|0)){continue}break};break a;case 1:if((d|0)<=0){break a}a=H[a>>2];e=0;f=N(c,f)<<2;while(1){i=b+f|0;j=H[b>>2]-(H[i>>2]+1>>1)|0;H[a+4>>2]=j;i=j+H[i>>2]|0;H[a>>2]=i;H[b>>2]=i;H[(c<<2)+b>>2]=H[a+4>>2];b=b+4|0;e=e+1|0;if((e|0)!=(d|0)){continue}break};break a;default:break c}}if((e|0)<3|(d|0)<=0){break a}q=e&2147483644;m=e&3;g=H[a>>2];r=(g+(e<<2)|0)-4|0;a=e-2|0;s=g+(a<<2)|0;o=e&1;i=!o;t=((e-i|0)-4>>>1|0)+1|0;u=N(c,f)<<2;v=a-i>>>0<2;w=N((e>>>1|0)-1|0,c)<<2;x=e-1>>>0<3;while(1){l=b+u|0;f=H[l+(c<<2)>>2];a=H[l>>2];e=H[b>>2]-((f+a|0)+2>>2)|0;H[g>>2]=e+a;h=1;a=1;if(!v){while(1){p=H[(N(a,c)<<2)+b>>2];j=a+1|0;i=H[l+(N(j,c)<<2)>>2];y=g+(h<<2)|0;H[y>>2]=e;k=e;e=p-((f+i|0)+2>>2)|0;H[y+4>>2]=(k+e>>1)+f;h=h+2|0;k=(a|0)!=(t|0);a=j;f=i;if(k){continue}break}}H[g+(h<<2)>>2]=e;d:{if(!o){a=H[b+w>>2]-(f+1>>1)|0;H[s>>2]=(e+a>>1)+f;break d}a=e+f|0}H[r>>2]=a;f=0;a=0;h=0;e=0;e:{if(!x){while(1){H[(N(a,c)<<2)+b>>2]=H[g+(a<<2)>>2];e=a|1;H[(N(e,c)<<2)+b>>2]=H[g+(e<<2)>>2];e=a|2;H[(N(e,c)<<2)+b>>2]=H[g+(e<<2)>>2];e=a|3;H[(N(e,c)<<2)+b>>2]=H[g+(e<<2)>>2];a=a+4|0;h=h+4|0;if((q|0)!=(h|0)){continue}break}e=a;if(!m){break e}}while(1){H[(N(c,e)<<2)+b>>2]=H[g+(e<<2)>>2];e=e+1|0;f=f+1|0;if((m|0)!=(f|0)){continue}break}}b=b+4|0;n=n+1|0;if((n|0)!=(d|0)){continue}break}}}function Xb(a,b,c,d,e,f,g){var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{n=N(e,3);h=H[b>>2]>>>n|0;if(h&2097168){break a}h=h&495;if(!h){break a}o=a+28|0;l=o+(I[h+H[a+108>>2]|0]<<2)|0;H[a+104>>2]=l;k=H[l>>2];i=H[k>>2];h=H[a+4>>2]-i|0;H[a+4>>2]=h;j=H[a>>2];b:{if(j>>>16>>>0<i>>>0){m=H[k+4>>2];H[a+4>>2]=i;h=h>>>0<i>>>0;H[l>>2]=H[k+(h?8:12)>>2];k=h?m:!m;h=H[a+8>>2];while(1){c:{if(h){break c}h=H[a+16>>2];m=h+1|0;l=I[h+1|0];if(I[h|0]==255){if(l>>>0>=144){H[a+12>>2]=H[a+12>>2]+1;j=j+65280|0;h=8;break c}H[a+16>>2]=m;j=(l<<9)+j|0;h=7;break c}H[a+16>>2]=m;h=8;j=(l<<8)+j|0}h=h-1|0;H[a+8>>2]=h;j=j<<1;H[a>>2]=j;i=i<<1;H[a+4>>2]=i;if(i>>>0<32768){continue}break}h=i;break b}j=j-(i<<16)|0;H[a>>2]=j;if(!(h&32768)){m=H[k+4>>2];i=h>>>0<i>>>0;H[l>>2]=H[k+(i?12:8)>>2];k=i?!m:m;i=H[a+8>>2];while(1){d:{if(i){break d}i=H[a+16>>2];m=i+1|0;l=I[i+1|0];if(I[i|0]==255){if(l>>>0>=144){H[a+12>>2]=H[a+12>>2]+1;j=j+65280|0;i=8;break d}H[a+16>>2]=m;j=(l<<9)+j|0;i=7;break d}H[a+16>>2]=m;i=8;j=(l<<8)+j|0}i=i-1|0;H[a+8>>2]=i;j=j<<1;H[a>>2]=j;h=h<<1;H[a+4>>2]=h;if(h>>>0<32768){continue}break}break b}k=H[k+4>>2]}e:{if(!k){break e}p=b-4|0;i=H[b>>2];k=H[b+4>>2]>>>n+17&4|(H[p>>2]>>>n+19&1|(i>>>n+16&64|i>>>n&170|i>>>(e?n+12|0:14)&16));m=o+(I[k+24384|0]<<2)|0;H[a+104>>2]=m;l=H[m>>2];i=H[l>>2];h=h-i|0;H[a+4>>2]=h;o=I[k+24640|0];f:{if(j>>>16>>>0<i>>>0){k=H[l+4>>2];H[a+4>>2]=i;h=h>>>0<i>>>0;H[m>>2]=H[l+(h?8:12)>>2];l=h?k:!k;h=H[a+8>>2];while(1){g:{if(h){break g}h=H[a+16>>2];m=h+1|0;k=I[h+1|0];if(I[h|0]==255){if(k>>>0>=144){H[a+12>>2]=H[a+12>>2]+1;j=j+65280|0;h=8;break g}H[a+16>>2]=m;j=(k<<9)+j|0;h=7;break g}H[a+16>>2]=m;h=8;j=(k<<8)+j|0}h=h-1|0;H[a+8>>2]=h;j=j<<1;H[a>>2]=j;i=i<<1;H[a+4>>2]=i;if(i>>>0<32768){continue}break}break f}k=j-(i<<16)|0;H[a>>2]=k;if(!(h&32768)){j=H[l+4>>2];i=h>>>0<i>>>0;H[m>>2]=H[l+(i?12:8)>>2];l=i?!j:j;j=H[a+8>>2];while(1){h:{if(j){break h}j=H[a+16>>2];m=j+1|0;i=I[j+1|0];if(I[j|0]==255){if(i>>>0>=144){H[a+12>>2]=H[a+12>>2]+1;k=k+65280|0;j=8;break h}H[a+16>>2]=m;k=(i<<9)+k|0;j=7;break h}H[a+16>>2]=m;j=8;k=(i<<8)+k|0}j=j-1|0;H[a+8>>2]=j;k=k<<1;H[a>>2]=k;h=h<<1;H[a+4>>2]=h;if(h>>>0<32768){continue}break}break f}l=H[l+4>>2]}H[c>>2]=(l|0)==(o|0)?d:0-d|0;H[p>>2]=H[p>>2]|32<<n;c=l^o;H[b>>2]=H[b>>2]|(c<<19|16)<<n;H[b+4>>2]=H[b+4>>2]|8<<n;if(!(e|g)){a=b-(f<<2)|0;H[a+4>>2]=H[a+4>>2]|32768;H[a>>2]=H[a>>2]|c<<31|65536;a=a-4|0;H[a>>2]=H[a>>2]|131072}if((e|0)!=3){break e}a=(f<<2)+b|0;H[a+4>>2]=H[a+4>>2]|1;H[a>>2]=H[a>>2]|c<<18|2;a=a-4|0;H[a>>2]=H[a>>2]|4}H[b>>2]=H[b>>2]|2097152<<n}}function Wb(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{m=N(e,3);g=H[b>>2]>>>m|0;if(g&2097168){break a}n=a+28|0;k=n+(I[H[a+108>>2]+(g&495)|0]<<2)|0;H[a+104>>2]=k;j=H[k>>2];h=H[j>>2];g=H[a+4>>2]-h|0;H[a+4>>2]=g;i=H[a>>2];b:{if(i>>>16>>>0<h>>>0){l=H[j+4>>2];H[a+4>>2]=h;g=g>>>0<h>>>0;H[k>>2]=H[j+(g?8:12)>>2];j=g?l:!l;g=H[a+8>>2];while(1){c:{if(g){break c}g=H[a+16>>2];l=g+1|0;k=I[g+1|0];if(I[g|0]==255){if(k>>>0>=144){H[a+12>>2]=H[a+12>>2]+1;i=i+65280|0;g=8;break c}H[a+16>>2]=l;i=(k<<9)+i|0;g=7;break c}H[a+16>>2]=l;g=8;i=(k<<8)+i|0}g=g-1|0;H[a+8>>2]=g;i=i<<1;H[a>>2]=i;h=h<<1;H[a+4>>2]=h;if(h>>>0<32768){continue}break}g=h;break b}i=i-(h<<16)|0;H[a>>2]=i;if(!(g&32768)){l=H[j+4>>2];h=g>>>0<h>>>0;H[k>>2]=H[j+(h?12:8)>>2];j=h?!l:l;h=H[a+8>>2];while(1){d:{if(h){break d}h=H[a+16>>2];l=h+1|0;k=I[h+1|0];if(I[h|0]==255){if(k>>>0>=144){H[a+12>>2]=H[a+12>>2]+1;i=i+65280|0;h=8;break d}H[a+16>>2]=l;i=(k<<9)+i|0;h=7;break d}H[a+16>>2]=l;h=8;i=(k<<8)+i|0}h=h-1|0;H[a+8>>2]=h;i=i<<1;H[a>>2]=i;g=g<<1;H[a+4>>2]=g;if(g>>>0<32768){continue}break}break b}j=H[j+4>>2]}if(!j){break a}j=n;n=b-4|0;h=H[b>>2];o=H[b+4>>2]>>>m+17&4|(H[n>>2]>>>m+19&1|(h>>>m+16&64|h>>>m&170|h>>>(e?m+12|0:14)&16));l=j+(I[o+24384|0]<<2)|0;H[a+104>>2]=l;k=H[l>>2];h=H[k>>2];g=g-h|0;H[a+4>>2]=g;e:{if(i>>>16>>>0<h>>>0){j=H[k+4>>2];H[a+4>>2]=h;g=g>>>0<h>>>0;H[l>>2]=H[k+(g?8:12)>>2];k=g?j:!j;g=H[a+8>>2];while(1){f:{if(g){break f}g=H[a+16>>2];l=g+1|0;j=I[g+1|0];if(I[g|0]==255){if(j>>>0>=144){H[a+12>>2]=H[a+12>>2]+1;i=i+65280|0;g=8;break f}H[a+16>>2]=l;i=(j<<9)+i|0;g=7;break f}H[a+16>>2]=l;g=8;i=(j<<8)+i|0}g=g-1|0;H[a+8>>2]=g;i=i<<1;H[a>>2]=i;h=h<<1;H[a+4>>2]=h;if(h>>>0<32768){continue}break}break e}j=i-(h<<16)|0;H[a>>2]=j;if(!(g&32768)){i=H[k+4>>2];h=g>>>0<h>>>0;H[l>>2]=H[k+(h?12:8)>>2];k=h?!i:i;i=H[a+8>>2];while(1){g:{if(i){break g}i=H[a+16>>2];l=i+1|0;h=I[i+1|0];if(I[i|0]==255){if(h>>>0>=144){H[a+12>>2]=H[a+12>>2]+1;j=j+65280|0;i=8;break g}H[a+16>>2]=l;j=(h<<9)+j|0;i=7;break g}H[a+16>>2]=l;i=8;j=(h<<8)+j|0}i=i-1|0;H[a+8>>2]=i;j=j<<1;H[a>>2]=j;g=g<<1;H[a+4>>2]=g;if(g>>>0<32768){continue}break}break e}k=H[k+4>>2]}g=c;c=I[o+24640|0];H[g>>2]=(c|0)==(k|0)?d:0-d|0;H[n>>2]=H[n>>2]|32<<m;d=c^k;H[b>>2]=H[b>>2]|(d<<19|16)<<m;H[b+4>>2]=H[b+4>>2]|8<<m;if(!(e|f)){c=(-2-H[a+124>>2]<<2)+b|0;H[c+4>>2]=H[c+4>>2]|32768;H[c>>2]=H[c>>2]|d<<31|65536;c=c-4|0;H[c>>2]=H[c>>2]|131072}if((e|0)!=3){break a}a=(H[a+124>>2]<<2)+b|0;H[a+4>>2]=H[a+4>>2]|4;H[a+12>>2]=H[a+12>>2]|1;H[a+8>>2]=H[a+8>>2]|d<<18|2}}function Kd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;e=na-112|0;na=e;j=1024;a:{b:{h=Ea(1,1024);if(h){l=e+92|0;k=e+108|0;while(1){c:{d:{d=e+104|0;e:{if((Ja(b,d,8,c)|0)!=8){break e}Da(d,e+88|0,4);Da(k,l,4);f=8;f:{g:{h:{i:{switch(H[e+88>>2]){case 0:d=Qa(b);g=qa;if((g|0)<0){g=1}else{g=d>>>0<4294967288&(g|0)<=0}if(g){break h}Ba(c,1,8449,0);break e;case 1:break i;default:break f}}d=e+104|0;if((Ja(b,d,8,c)|0)!=8){break e}Da(d,e+100|0,4);if(!H[e+100>>2]){break g}Ba(c,1,8449,0);break e}H[e+88>>2]=d+8;break f}Da(k,e+88|0,4);f=16}d=H[e+92>>2];if((d|0)==1785737827){b=H[a+100>>2];if(b&4){H[a+100>>2]=b|8;break e}Ba(c,1,5702,0);Ca(h);a=0;break a}i=H[e+88>>2];if(!i){Ba(c,1,3268,0);Ca(h);a=0;break a}if(f>>>0>i>>>0){H[e+4>>2]=d;H[e>>2]=i;Ba(c,1,13933,e);break b}j:{k:{l:{m:{n:{o:{p:{q:{r:{s:{if((d|0)<=1668246641){if((d|0)==1651532643){break r}if((d|0)==1667523942){break p}if((d|0)!=1668112752){break s}g=25296;break n}if((d|0)<=1783635999){if((d|0)==1668246642){break o}g=25264;if((d|0)==1768449138){break n}if((d|0)!=1718909296){break s}g=25240;break l}if((d|0)==1885564018){break q}if((d|0)==1783636e3){break m}g=25248;if((d|0)==1785737832){break l}}d=H[a+100>>2];if(d&1){break j}Ba(c,1,2062,0);Ca(h);a=0;break a}g=25280;break n}g=25288;break n}g=25304;break n}g=25272}H[e+76>>2]=d&255;H[e+64>>2]=d>>>24;H[e+72>>2]=d>>>8&255;H[e+68>>2]=d>>>16&255;Ba(c,2,2011,e- -64|0);f=i-f|0;if(I[a+100|0]&4){break k}d=H[e+92>>2];H[e+48>>2]=d>>>24;H[e+60>>2]=d&255;H[e+52>>2]=d>>>16&255;H[e+56>>2]=d>>>8&255;Ba(c,2,6771,e+48|0);H[a+100>>2]=H[a+100>>2]|2147483647;d=rb(b,f,c);if(!qa&(d|0)==(f|0)){continue}Ba(c,1,3748,0);Ca(h);a=0;break a}g=25232}f=i-f|0}d=f;f=Qa(b);i=qa;if((i|0)<0){f=1}else{f=(i|0)<=0&d>>>0>f>>>0}if(f){f=H[e+88>>2];a=H[e+92>>2];m=e,n=Qa(b),H[m+40>>2]=n;H[e+36>>2]=d;H[e+32>>2]=a&255;H[e+20>>2]=a>>>24;H[e+16>>2]=f;H[e+28>>2]=a>>>8&255;H[e+24>>2]=a>>>16&255;Ba(c,1,15680,e+16|0);break b}if(d>>>0<=j>>>0){f=h;break c}j=d;f=Ha(h,d);if(f){break c}Ca(h);Ba(c,1,2193,0);a=0;break a}if(!(d&2)){Ba(c,1,2132,0);Ca(h);a=0;break a}H[a+100>>2]=d|2147483647;d=i-f|0;f=rb(b,d,c);if(!qa&(d|0)==(f|0)){continue}if(!(I[a+100|0]&8)){break d}Ba(c,2,3748,0)}Ca(h);a=1;break a}Ba(c,1,3748,0);Ca(h);a=0;break a}if((Ja(b,f,d,c)|0)!=(d|0)){Ba(c,1,3798,0);Ca(f);a=0;break a}h=f;if(ra[H[g+4>>2]](a,f,d,c)|0){continue}break}Ca(f);a=0;break a}Ba(c,1,4923,0);a=0;break a}Ca(h);a=0}na=e+112|0;return a|0}function Yd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;f=na-16|0;na=f;if(H[a+8>>2]==16){i=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{i=H[a+12>>2]}a:{if(c>>>0<=1){Ba(d,1,4721,0);a=0;break a}Da(b,f+12|0,2);if(H[f+12>>2]){Ba(d,2,5897,0);a=1;break a}if(c>>>0<=6){Ba(d,1,4721,0);a=0;break a}Da(b+2|0,f+8|0,1);e=H[i+5628>>2];h=H[i+5632>>2];b:{c:{if(!h){break c}j=H[f+8>>2];a=e;while(1){if((j|0)!=H[a>>2]){a=a+20|0;g=g+1|0;if((h|0)!=(g|0)){continue}break c}break}j=0;if((g|0)!=(h|0)){break b}}if(H[i+5636>>2]==(h|0)){a=h+10|0;H[i+5636>>2]=a;a=Ha(e,N(a,20));if(!a){Ca(H[i+5628>>2]);H[i+5636>>2]=0;H[i+5628>>2]=0;H[i+5632>>2]=0;Ba(d,1,4747,0);a=0;break a}H[i+5628>>2]=a;e=H[i+5632>>2];j=N(H[i+5636>>2]-e|0,20);if(j){y(a+N(e,20)|0,0,j)}h=H[i+5632>>2];e=H[i+5628>>2]}a=e+N(h,20)|0;j=1}H[a>>2]=H[f+8>>2];Da(b+3|0,f+12|0,2);if(H[f+12>>2]){Ba(d,2,5897,0);a=1;break a}Da(b+5|0,f+4|0,2);e=H[f+4>>2];if(e>>>0>=2){Ba(d,2,3130,0);a=1;break a}h=c-7|0;if(e){c=b+7|0;while(1){if(h>>>0<=2){Ba(d,1,4721,0);a=0;break a}Da(c,f+12|0,1);if(H[f+12>>2]!=1){Ba(d,2,5579,0);a=1;break a}Da(c+1|0,f,2);e=H[f>>2];b=e&32767;H[a+4>>2]=b;h=h-3|0;e=(e>>>15|0)+1|0;k=N(e,b)+2|0;if(h>>>0<k>>>0){Ba(d,1,4721,0);a=0;break a}c=c+3|0;g=0;if(b){while(1){Da(c,f+12|0,e);if(H[f+12>>2]!=(g|0)){Ba(d,2,6259,0);a=1;break a}c=c+e|0;g=g+1|0;if(g>>>0<K[a+4>>2]){continue}break}}Da(c,f,2);e=H[f>>2];b=e&32767;H[f>>2]=b;if((b|0)!=H[a+4>>2]){Ba(d,2,3306,0);a=1;break a}e=(e>>>15|0)+1|0;l=N(e,b)+3|0;k=h-k|0;if(l>>>0>k>>>0){Ba(d,1,4721,0);a=0;break a}c=c+2|0;g=0;if(b){while(1){Da(c,f+12|0,e);if(H[f+12>>2]!=(g|0)){Ba(d,2,6259,0);a=1;break a}c=c+e|0;g=g+1|0;if(g>>>0<K[a+4>>2]){continue}break}}Da(c,f+12|0,3);e=H[f+12>>2];H[a+8>>2]=0;H[a+12>>2]=0;F[a+16|0]=!(e&65536)|I[a+16|0]&254;h=e&255;H[f+8>>2]=h;d:{if(!h){break d}m=H[i+5620>>2];if(m){g=H[i+5616>>2];b=0;while(1){if((h|0)==H[g+8>>2]){H[a+8>>2]=g;break d}g=g+20|0;b=b+1|0;if((m|0)!=(b|0)){continue}break}}Ba(d,1,4721,0);a=0;break a}e=e>>>8&255;H[f+8>>2]=e;e:{if(!e){break e}h=H[i+5620>>2];if(h){g=H[i+5616>>2];b=0;while(1){if((e|0)==H[g+8>>2]){H[a+12>>2]=g;break e}g=g+20|0;b=b+1|0;if((h|0)!=(b|0)){continue}break}}Ba(d,1,4721,0);a=0;break a}h=k-l|0;c=c+3|0;n=n+1|0;if(n>>>0<K[f+4>>2]){continue}break}}if(h){Ba(d,1,4721,0);a=0;break a}a=1;if(!j){break a}H[i+5632>>2]=H[i+5632>>2]+1;a=1}na=f+16|0;return a|0}function _c(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(K[a+44>>2]>=8){i=H[a+40>>2];l=8;while(1){k=H[a+12>>2]<<5;e=H[a>>2];g=H[a+36>>2];b=H[a+16>>2];h=H[a+20>>2];a:{if(b>>>0>=h>>>0){break a}j=e+k|0;d=b+1|0;if(h-b&1){c=j+(b<<6)|0;b=(N(b,g)<<2)+i|0;f=H[b+28>>2];H[c+24>>2]=H[b+24>>2];H[c+28>>2]=f;f=H[b+20>>2];H[c+16>>2]=H[b+16>>2];H[c+20>>2]=f;f=H[b+12>>2];H[c+8>>2]=H[b+8>>2];H[c+12>>2]=f;f=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=f;b=d}if((d|0)==(h|0)){break a}while(1){d=(N(b,g)<<2)+i|0;f=H[d+28>>2];c=j+(b<<6)|0;H[c+24>>2]=H[d+24>>2];H[c+28>>2]=f;f=H[d+20>>2];H[c+16>>2]=H[d+16>>2];H[c+20>>2]=f;f=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=f;f=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=f;d=b+1|0;c=j+(d<<6)|0;d=(N(d,g)<<2)+i|0;f=H[d+28>>2];H[c+24>>2]=H[d+24>>2];H[c+28>>2]=f;f=H[d+20>>2];H[c+16>>2]=H[d+16>>2];H[c+20>>2]=f;f=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=f;f=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=f;b=b+2|0;if((h|0)!=(b|0)){continue}break}}b=H[a+24>>2];h=H[a+28>>2];b:{if(b>>>0>=h>>>0){break b}j=(e-k|0)+32|0;k=(N(g,H[a+8>>2])<<2)+i|0;d=b+1|0;if(h-b&1){c=j+(b<<6)|0;b=k+(N(b,g)<<2)|0;e=H[b+28>>2];H[c+24>>2]=H[b+24>>2];H[c+28>>2]=e;e=H[b+20>>2];H[c+16>>2]=H[b+16>>2];H[c+20>>2]=e;e=H[b+12>>2];H[c+8>>2]=H[b+8>>2];H[c+12>>2]=e;e=H[b+4>>2];H[c>>2]=H[b>>2];H[c+4>>2]=e;b=d}if((d|0)==(h|0)){break b}while(1){d=k+(N(b,g)<<2)|0;e=H[d+28>>2];c=j+(b<<6)|0;H[c+24>>2]=H[d+24>>2];H[c+28>>2]=e;e=H[d+20>>2];H[c+16>>2]=H[d+16>>2];H[c+20>>2]=e;e=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=e;e=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=e;d=b+1|0;c=j+(d<<6)|0;d=k+(N(d,g)<<2)|0;e=H[d+28>>2];H[c+24>>2]=H[d+24>>2];H[c+28>>2]=e;e=H[d+20>>2];H[c+16>>2]=H[d+16>>2];H[c+20>>2]=e;e=H[d+12>>2];H[c+8>>2]=H[d+8>>2];H[c+12>>2]=e;e=H[d+4>>2];H[c>>2]=H[d>>2];H[c+4>>2]=e;b=b+2|0;if((h|0)!=(b|0)){continue}break}}Ta(a);b=0;if(H[a+32>>2]){while(1){d=H[a>>2]+(b<<5)|0;c=H[d+28>>2];g=(N(H[a+36>>2],b)<<2)+i|0;H[g+24>>2]=H[d+24>>2];H[g+28>>2]=c;c=H[d+20>>2];H[g+16>>2]=H[d+16>>2];H[g+20>>2]=c;c=H[d+12>>2];H[g+8>>2]=H[d+8>>2];H[g+12>>2]=c;c=H[d+4>>2];H[g>>2]=H[d>>2];H[g+4>>2]=c;b=b+1|0;if(b>>>0<K[a+32>>2]){continue}break}}i=i+32|0;l=l+8|0;if(l>>>0<=K[a+44>>2]){continue}break}}Ca(H[a>>2]);Ca(a)}function ed(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;d=b;b=H[b>>2]+7&-8;H[d>>2]=b+16;o=a;f=H[b>>2];a=H[b+4>>2];d=H[b+8>>2];c=H[b+12>>2];p=c;h=na-32|0;na=h;b=c&65535;e=c;c=d;d=e>>>16&32767;g=d;a:{if(d-15361>>>0<=2045){b=b<<4|c>>>28;d=c<<4|a>>>28;e=g-15360|0;a=a&268435455;b:{if((a|0)==134217728&(f|0)!=0|a>>>0>134217728){c=b;d=d+1|0;b=d?c:c+1|0;break b}if(f|(a|0)!=134217728){break b}a=d;d=d+(d&1)|0;b=a>>>0>d>>>0?b+1|0:b}c=b>>>0>1048575;f=c?0:d;a=c?0:b;b=0;c=c+e|0;b=c>>>0<e>>>0?1:b;break a}if(!(!(c|f|(a|b))|((d|0)!=32767|(k|0)!=0))){e=b<<4|c>>>28;f=c<<4|a>>>28;a=e|524288;c=2047;b=0;break a}if(g>>>0>17406){f=0;a=0;c=2047;b=0;break a}e=!(d|k);l=e?15360:15361;k=l-g|0;if((k|0)>112){f=0;a=0;c=0;b=0;break a}d=c;b=e?b:b|65536;if((g|0)!=(l|0)){m=f;c=a;i=d;e=b;l=128-k|0;c:{if(l&64){g=f;e=l+-64|0;c=e&31;if((e&63)>>>0>=32){e=f<<c;i=0}else{e=(1<<c)-1&g>>>32-c|a<<c;i=g<<c}m=0;c=0;break c}if(!l){break c}n=i;j=l&31;if((l&63)>>>0>=32){g=i<<j;n=0}else{g=(1<<j)-1&n>>>32-j|e<<j;n=n<<j}j=m;e=64-l|0;i=e&31;if((e&63)>>>0>=32){e=0;i=c>>>i|0}else{e=c>>>i|0;i=((1<<i)-1&c)<<32-i|j>>>i}i=n|i;e=e|g;n=m;j=l&31;if((l&63)>>>0>=32){g=m<<j;m=0}else{g=(1<<j)-1&n>>>32-j|c<<j;m=n<<j}c=g}H[h+16>>2]=m;H[h+20>>2]=c;H[h+24>>2]=i;H[h+28>>2]=e;m=(H[h+16>>2]|H[h+24>>2]|(H[h+20>>2]|H[h+28>>2]))!=0}d:{if(k&64){c=d;f=k+-64|0;a=f&31;if((f&63)>>>0>=32){e=0;f=b>>>a|0}else{e=b>>>a|0;f=((1<<a)-1&b)<<32-a|c>>>a}a=e;d=0;b=0;break d}if(!k){break d}g=d;c=64-k|0;e=c&31;if((c&63)>>>0>=32){c=d<<e;i=0}else{c=(1<<e)-1&g>>>32-e|b<<e;i=g<<e}e=f;f=k&31;if((k&63)>>>0>=32){g=0;a=a>>>f|0}else{g=a>>>f|0;a=((1<<f)-1&a)<<32-f|e>>>f}f=i|a;a=c|g;e=d;d=k&31;if((k&63)>>>0>=32){c=0;d=b>>>d|0}else{c=b>>>d|0;d=((1<<d)-1&b)<<32-d|e>>>d}b=c}H[h>>2]=f;H[h+4>>2]=a;H[h+8>>2]=d;H[h+12>>2]=b;a=H[h+8>>2];d=H[h+4>>2];f=a<<4|d>>>28;a=H[h+12>>2]<<4|a>>>28;c=d&268435455;b=H[h>>2]|m;e:{if((c|0)==134217728&(b|0)!=0|c>>>0>134217728){f=f+1|0;a=f?a:a+1|0;break e}if(b|(c|0)!=134217728){break e}b=a;a=f;f=f+(f&1)|0;a=a>>>0>f>>>0?b+1|0:b}c=a>>>0>1048575;a=c?a^1048576:a;b=0}na=h+32|0;u(0,f|0);u(1,a|(p&-2147483648|c<<20));q=o,r=+w(),M[q>>3]=r}function Hc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;q=H[a+24>>2];if(!H[q+16>>2]){return 1}r=H[q+24>>2];o=H[H[H[a+20>>2]>>2]+20>>2];while(1){d=H[r+36>>2];H[b+36>>2]=d;f=H[o+28>>2];c=f+N(d,152)|0;t=H[a+64>>2];a:{if(t){d=f+N(H[o+24>>2],152)|0;p=H[d-144>>2]-H[d-152>>2]|0;f=c+12|0;e=c+4|0;d=H[c+8>>2];g=H[c>>2];c=36;break a}f=c+148|0;e=c+140|0;d=H[c+144>>2];g=H[c+136>>2];p=d-g|0;c=52}u=H[c+o>>2];b:{c:{if(!u){break c}k=H[e>>2];l=H[f>>2];f=d-g|0;e=H[b+40>>2];c=e&31;if((e&63)>>>0>=32){c=-1<<c;h=0}else{h=-1<<c;c=h|(1<<c)-1&-1>>>32-c}m=h^-1;j=H[b+20>>2];h=m+j|0;i=c^-1;c=i;j=h>>>0<j>>>0?c+1|0:c;c=e&31;if((e&63)>>>0>=32){h=j>>>c|0}else{h=((1<<c)-1&j)<<32-c|h>>>c}c=H[b+16>>2];j=c+m|0;m=c>>>0>j>>>0?i+1|0:i;i=e&31;c=H[b+8>>2];if((e&63)>>>0>=32){i=m>>>i|0}else{i=((1<<i)-1&m)<<32-i|j>>>i}e=c+i|0;d:{if(g>>>0>i>>>0){m=g-i|0;i=0;if(e>>>0>=d>>>0){j=0;d=f;break d}d=e-g|0;j=f-d|0;break d}i=i-g|0;if(e>>>0>=d>>>0){d=f-i|0;m=0;j=0;break d}j=d-e|0;m=0;d=c}f=l-k|0;e=H[b+12>>2];g=e+h|0;e:{if(h>>>0<k>>>0){s=k-h|0;h=0;n=0;if(g>>>0>=l>>>0){break e}n=f;f=g-k|0;n=n-f|0;break e}h=h-k|0;if(g>>>0>=l>>>0){f=f-h|0;s=0;n=0;break e}s=0;f=e;n=l-g|0}k=n;g=0;if((h|i|(j|k)|(d|f))<0){break b}k=N(h,p)+i|0;l=H[b+44>>2];h=N(c,s)+m|0;f:{g:{if(!(k|l|(h|(c|0)!=(p|0))|(c|0)!=(d|0))){if((e|0)!=(f|0)){break g}d=(t?36:52)+o|0;H[b+44>>2]=H[d>>2];H[d>>2]=0;break c}if(l){break f}}re(e,0,c);if(qa|!e){break b}c=N(c,e);if(c>>>0>1073741823){break b}c=Ia(c<<2);H[b+44>>2]=c;if(!c){break b}e=H[b+8>>2];g=H[b+12>>2];if((e|0)==(d|0)&(g|0)==(f|0)){break f}e=N(e,g)<<2;if(!e){break f}y(c,0,e)}if(!f){break c}d=d<<2;g=H[b+44>>2]+(h<<2)|0;c=(k<<2)+u|0;if((f|0)!=1){k=f&1;l=f&2147483646;f=0;while(1){h=!d;if(!h){B(g,c,d)}i=p<<2;c=i+c|0;e=(H[b+8>>2]<<2)+g|0;if(!h){B(e,c,d)}c=c+i|0;g=e+(H[b+8>>2]<<2)|0;f=f+2|0;if((l|0)!=(f|0)){continue}break}if(!k){break c}}if(!d){break c}B(g,c,d)}o=o+76|0;r=r+52|0;b=b+52|0;g=1;v=v+1|0;if(v>>>0<K[q+16>>2]){continue}}break}return g}function wb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;if(a){a:{if(H[a>>2]){b=H[a+12>>2];if(b){jb(b);Ca(H[a+12>>2]);H[a+12>>2]=0}b=H[a+16>>2];if(b){Ca(b);H[a+16>>2]=0;H[a+20>>2]=0}Ca(H[a+64>>2]);H[a+60>>2]=0;H[a+64>>2]=0;Ca(H[a+72>>2]);H[a+72>>2]=0;Ca(H[a+88>>2]);H[a+88>>2]=0;break a}b=H[a+44>>2];if(b){Ca(b);H[a+44>>2]=0}b=H[a+32>>2];if(b){Ca(b);H[a+32>>2]=0;H[a+36>>2]=0}b=H[a+52>>2];if(!b){break a}Ca(b);H[a+52>>2]=0;H[a+56>>2]=0}Tb(H[a+232>>2]);b=H[a+180>>2];if(b){e=N(H[a+128>>2],H[a+132>>2]);if(e){while(1){jb(b);b=b+5644|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}b=H[a+180>>2]}Ca(b);H[a+180>>2]=0}b=H[a+140>>2];if(b){c=H[a+136>>2];if(c){b=0;while(1){e=H[H[a+140>>2]+(b<<3)>>2];if(e){Ca(e);c=H[a+136>>2]}b=b+1|0;if(c>>>0>b>>>0){continue}break}b=H[a+140>>2]}H[a+136>>2]=0;Ca(b);H[a+140>>2]=0}Ca(H[a+160>>2]);H[a+144>>2]=0;H[a+160>>2]=0;Ca(H[a+124>>2]);H[a+124>>2]=0;if(!(I[a+212|0]&2)){Ca(H[a+192>>2])}y(a+104|0,0,112);pb(H[a+216>>2]);H[a+216>>2]=0;pb(H[a+220>>2]);H[a+216>>2]=0;d=H[a+224>>2];if(d){b=H[d+28>>2];if(b){Ca(b);H[d+28>>2]=0}c=H[d+40>>2];if(c){if(H[d+36>>2]){while(1){e=N(g,40);b=H[(e+c|0)+36>>2];if(b){Ca(b);c=H[d+40>>2];H[(e+c|0)+36>>2]=0}b=H[(c+e|0)+16>>2];if(b){Ca(b);c=H[d+40>>2];H[(e+c|0)+16>>2]=0}b=H[(c+e|0)+24>>2];if(b){Ca(b);c=H[d+40>>2];H[(e+c|0)+24>>2]=0}g=g+1|0;if(g>>>0<K[d+36>>2]){continue}break}}Ca(c);H[d+40>>2]=0}Ca(d)}H[a+224>>2]=0;Ua(H[a+96>>2]);H[a+96>>2]=0;Ua(H[a+100>>2]);H[a+100>>2]=0;f=H[a+236>>2];if(f){b:{if(!H[f+8>>2]){break b}if(H[f+12>>2]){H[f+40>>2]=0;while(1){if(H[f+24>>2]>0){continue}break}}H[f+16>>2]=1;Ca(H[f>>2]);c=H[f+28>>2];if(!c){break b}while(1){b=H[c+4>>2];Ca(c);H[f+28>>2]=b;c=b;if(b){continue}break}}d=H[f+36>>2];if(d){g=H[d+4>>2];if((g|0)>0){b=0;while(1){e=H[d>>2]+N(b,12)|0;c=H[e+8>>2];if(c){ra[c|0](H[e+4>>2]);g=H[d+4>>2]}b=b+1|0;if((g|0)>(b|0)){continue}break}}Ca(H[d>>2]);Ca(d)}Ca(f)}H[a+236>>2]=0;Ca(a)}}function ec(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;k=na-256|0;na=k;a:{if(!a){a=0;break a}if(!(H[a>>2]==(b|0)&H[a+4>>2]==(c|0))){H[a+4>>2]=c;H[a>>2]=b;H[k>>2]=c;H[k+128>>2]=b;e=c;g=b;while(1){o=h;h=h+1|0;j=h<<2;l=(e+1|0)/2|0;H[j+k>>2]=l;n=j+(k+128|0)|0;j=(g+1|0)/2|0;H[n>>2]=j;i=N(e,g);f=i+f|0;e=l;g=j;if(i>>>0>1){continue}break}H[a+8>>2]=f;b:{c:{d:{if(!f){b=H[a+12>>2];if(!b){break d}Ca(b);H[a+12>>2]=0;break d}f=f<<4;if(f>>>0<=K[a+16>>2]){break b}b=Ha(H[a+12>>2],f);if(b){break c}Ba(d,1,6451,0);b=H[a+12>>2];if(!b){break d}Ca(b);H[a+12>>2]=0}Ca(a);a=0;break a}H[a+12>>2]=b;c=H[a+16>>2];d=f-c|0;if(d){y(b+c|0,0,d)}H[a+16>>2]=f;c=H[a+4>>2];b=H[a>>2]}g=H[a+12>>2];if(o){l=0;e=(N(b,c)<<4)+g|0;f=e;while(1){b=l<<2;h=H[b+k>>2];e:{if((h|0)<=0){break e}j=h-1|0;d=0;f:{g:{b=H[b+(k+128|0)>>2];if((b|0)<=0){i=h&3;if(h>>>0>=4){break g}h=0;break f}while(1){c=f;f=b;while(1){h:{H[g>>2]=e;if((f|0)==1){g=g+16|0;e=e+16|0;break h}H[g+16>>2]=e;e=e+16|0;g=g+32|0;i=(f|0)>2;f=f-2|0;if(i){continue}}break}i=((d|0)==(j|0)|d)&1;f=i?e:c+(b<<4)|0;e=i?e:c;d=d+1|0;if((h|0)!=(d|0)){continue}break}break e}m=h&2147483644;h=0;c=0;while(1){n=(h|0)==(j|0);h=h+4|0;e=n?e:f;f=e;c=c+4|0;if((m|0)!=(c|0)){continue}break}if(i){break f}break e}while(1){c=f;m=((h|0)==(j|0)|h)&1;f=m?e:c+(b<<4)|0;e=m?e:c;h=h+1|0;d=d+1|0;if((i|0)!=(d|0)){continue}break}}l=l+1|0;if((o|0)!=(l|0)){continue}break}}H[g>>2]=0}b=H[a+8>>2];if(!b){break a}c=b&3;e=H[a+12>>2];if(b>>>0>=4){b=b&-4;g=0;while(1){H[e+60>>2]=0;H[e+52>>2]=999;H[e+56>>2]=0;H[e+44>>2]=0;H[e+36>>2]=999;H[e+40>>2]=0;H[e+28>>2]=0;H[e+20>>2]=999;H[e+24>>2]=0;H[e+12>>2]=0;H[e+4>>2]=999;H[e+8>>2]=0;e=e- -64|0;g=g+4|0;if((b|0)!=(g|0)){continue}break}if(!c){break a}}g=0;while(1){H[e+12>>2]=0;H[e+4>>2]=999;H[e+8>>2]=0;e=e+16|0;g=g+1|0;if((c|0)!=(g|0)){continue}break}}na=k+256|0;return a}function Xd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;g=na-16|0;na=g;if(H[a+8>>2]==16){h=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{h=H[a+12>>2]}a:{if(!c){Ba(d,1,4259,0);break a}i=H[a+96>>2];e=1;Da(b,g+8|0,1);f=H[g+8>>2];if(f>>>0>=2){Ba(d,2,9792,0);break a}if((f+1|0)!=(c|0)){e=0;Ba(d,2,4259,0);break a}c=H[i+16>>2];b:{if(!c){break b}d=c&7;e=H[h+5584>>2];if(c>>>0>=8){i=c&-8;c=0;while(1){H[e+8636>>2]=0;H[e+7556>>2]=0;H[e+6476>>2]=0;H[e+5396>>2]=0;H[e+4316>>2]=0;H[e+3236>>2]=0;H[e+2156>>2]=0;H[e+1076>>2]=0;e=e+8640|0;c=c+8|0;if((i|0)!=(c|0)){continue}break}if(!d){break b}}c=0;while(1){H[e+1076>>2]=0;e=e+1080|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}c=H[h+5608>>2];if(c){Ca(c);H[h+5608>>2]=0;f=H[g+8>>2]}if(!f){e=1;break a}i=0;while(1){b=b+1|0;Da(b,g+12|0,1);c:{if(!H[h+5632>>2]){break c}d=H[h+5628>>2];if(H[d>>2]!=H[g+12>>2]){break c}f=H[d+4>>2];j=H[a+96>>2];if((f|0)!=H[j+16>>2]){break c}c=H[d+8>>2];if(c){e=0;f=N(f,f);if(H[c+16>>2]!=(N(f,H[(H[c>>2]<<2)+24896>>2])|0)){break a}k=Fa(f<<2);H[h+5608>>2]=k;if(!k){break a}ra[H[(H[c>>2]<<2)+25200>>2]](H[c+12>>2],k,f)}c=H[d+12>>2];if(!c){break c}e=0;d=H[j+16>>2];if(H[c+16>>2]!=(N(d,H[(H[c>>2]<<2)+24896>>2])|0)){break a}f=Fa(d<<2);if(!f){break a}ra[H[(H[c>>2]<<2)+25216>>2]](H[c+12>>2],f,d);c=H[j+16>>2];d:{if(!c){break d}j=c&7;e=H[h+5584>>2];e:{if(c>>>0<8){c=f;break e}k=c&-8;d=0;c=f;while(1){H[e+1076>>2]=H[c>>2];H[e+2156>>2]=H[c+4>>2];H[e+3236>>2]=H[c+8>>2];H[e+4316>>2]=H[c+12>>2];H[e+5396>>2]=H[c+16>>2];H[e+6476>>2]=H[c+20>>2];H[e+7556>>2]=H[c+24>>2];H[e+8636>>2]=H[c+28>>2];e=e+8640|0;c=c+32|0;d=d+8|0;if((k|0)!=(d|0)){continue}break}if(!j){break d}}d=0;while(1){H[e+1076>>2]=H[c>>2];e=e+1080|0;c=c+4|0;d=d+1|0;if((j|0)!=(d|0)){continue}break}}Ca(f)}e=1;i=i+1|0;if(i>>>0<K[g+8>>2]){continue}break}}na=g+16|0;return e|0}function xb(a,b,c,d,e,f,g,h){var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;m=H[H[a+24>>2]+24>>2]+N(b,52)|0;l=H[m+4>>2];k=l-1|0;o=H[a+60>>2];j=k+o|0;p=0-!l|0;i=p;r=H[H[H[a+20>>2]>>2]+20>>2]+N(b,76)|0;n=H[r+12>>2];i=ve(j,j>>>0<o>>>0?i+1|0:i,l,0);q=i>>>0>n>>>0?n:i;j=H[m>>2];m=j-1|0;s=H[a+56>>2];n=m+s|0;o=0-!j|0;i=o;t=H[r+8>>2];i=ve(n,n>>>0<s>>>0?i+1|0:i,j,0);n=i>>>0>t>>>0?t:i;i=p;t=H[r+4>>2];s=H[a+52>>2];k=s+k|0;i=ve(k,k>>>0<s>>>0?i+1|0:i,l,0);k=i>>>0<t>>>0?t:i;i=o;p=H[r>>2];l=m;m=H[a+48>>2];l=l+m|0;i=ve(l,l>>>0<m>>>0?i+1|0:i,j,0);i=i>>>0<p>>>0?p:i;l=0;p=H[(H[H[a+32>>2]+5584>>2]+N(b,1080)|0)+20>>2];c=H[r+20>>2]+(c?0-c|0:-1)|0;a:{if(!c){a=n;l=i;b=k;break a}m=c-1|0;j=(d&1)<<m;if(j>>>0<i>>>0){a=c&31;l=i-j|0;if((c&63)>>>0>=32){i=-1<<a;a=0}else{b=(1<<a)-1&-1>>>32-a;a=-1<<a;i=b|a}b=a^-1;a=l+b|0;i=i^-1;i=a>>>0<b>>>0?i+1|0:i;b=a;a=c&31;if((c&63)>>>0>=32){l=i>>>a|0}else{l=((1<<a)-1&i)<<32-a|b>>>a}}a=0;b=0;d=d>>>1<<m;if(d>>>0<k>>>0){b=c&31;o=k-d|0;if((c&63)>>>0>=32){i=-1<<b;b=0}else{i=(1<<b)-1&-1>>>32-b;b=-1<<b;i=i|b}k=b^-1;b=o+k|0;i=i^-1;i=b>>>0<k>>>0?i+1|0:i;k=b;b=c&31;if((c&63)>>>0>=32){b=i>>>b|0}else{b=((1<<b)-1&i)<<32-b|k>>>b}}if(j>>>0<n>>>0){a=c&31;k=n-j|0;if((c&63)>>>0>=32){i=-1<<a;a=0}else{i=(1<<a)-1&-1>>>32-a;a=-1<<a;i=i|a}j=a^-1;a=k+j|0;i=i^-1;i=a>>>0<j>>>0?i+1|0:i;j=a;a=c&31;if((c&63)>>>0>=32){a=i>>>a|0}else{a=((1<<a)-1&i)<<32-a|j>>>a}}if(d>>>0>=q>>>0){q=0;break a}k=q-d|0;d=c&31;if((c&63)>>>0>=32){i=-1<<d;d=0}else{i=(1<<d)-1&-1>>>32-d;d=-1<<d;i=i|d}j=d^-1;d=k+j|0;i=i^-1;i=d>>>0<j>>>0?i+1|0:i;j=d;d=c&31;if((c&63)>>>0>=32){q=i>>>d|0}else{q=((1<<d)-1&i)<<32-d|j>>>d}}c=(p|0)==1?2:3;d=c+a|0;d=(a>>>0>d>>>0?-1:d)>>>0>e>>>0;a=c+q|0;d=d&(a>>>0<q>>>0?-1:a)>>>0>f>>>0;a=l-c|0;d=d&(a>>>0<=l>>>0?a:0)>>>0<g>>>0;a=b-c|0;return d&(a>>>0<=b>>>0?a:0)>>>0<h>>>0}function lb(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;g=H[a+16>>2];if(g>>>0>=32){return H[a+8>>2]}b=H[a+20>>2];a:{if((b|0)>=4){d=H[a>>2];c=H[d-3>>2];e=b-4|0;H[a+20>>2]=e;H[a>>2]=d-4;break a}if((b|0)<=0){e=b;break a}f=H[a>>2];d=24;b:{if((b|0)==1){break b}l=b&1;k=b&2147483646;while(1){h=f-1|0;H[a>>2]=h;i=I[f|0];f=f-2|0;H[a>>2]=f;H[a+20>>2]=b-1;h=I[h|0];b=b-2|0;H[a+20>>2]=b;c=i<<d|c|h<<d-8;d=d-16|0;j=j+2|0;if((k|0)!=(j|0)){continue}break}if(l){break b}break a}H[a>>2]=f-1;f=I[f|0];H[a+20>>2]=b-1;c=f<<d|c}b=H[a+24>>2];k=c&255;H[a+24>>2]=k>>>0>143;b=b?(c&2130706432)==2130706432?7:8:8;h=b+(c>>>0<=2415919103?8:(c&8323072)==8323072?7:8)|0;f=c>>>16&255;i=h+(f>>>0<=143?8:(c&32512)==32512?7:8)|0;d=c>>>8&255;l=i+(g+(d>>>0<=143?8:(c&127)==127?7:8)|0)|0;H[a+16>>2]=l;j=H[a+12>>2];b=f<<b|c>>>24|d<<h|k<<i;c=g&31;if((g&63)>>>0>=32){d=b<<c;b=0}else{d=(1<<c)-1&b>>>32-c;b=b<<c}g=b|H[a+8>>2];b=d|j;h=b;H[a+8>>2]=g;H[a+12>>2]=b;if(l>>>0<=31){c:{if((e|0)>=4){b=H[a>>2];c=H[b-3>>2];H[a+20>>2]=e-4;H[a>>2]=b-4;break c}if((e|0)<=0){c=0;break c}b=H[a>>2];d:{if((e|0)==1){d=24;c=0;break d}i=e&1;j=e&2147483646;d=24;c=0;f=0;while(1){m=b-1|0;H[a>>2]=m;n=I[b|0];b=b-2|0;H[a>>2]=b;H[a+20>>2]=e-1;m=I[m|0];e=e-2|0;H[a+20>>2]=e;c=n<<d|c|m<<d-8;d=d-16|0;f=f+2|0;if((j|0)!=(f|0)){continue}break}if(!i){break c}}H[a>>2]=b-1;b=I[b|0];H[a+20>>2]=e-1;c=b<<d|c}e=c&255;H[a+24>>2]=e>>>0>143;k=k>>>0<=143?8:(c&2130706432)==2130706432?7:8;i=k+(c>>>0<=2415919103?8:(c&8323072)==8323072?7:8)|0;f=c>>>16&255;j=i+(f>>>0<=143?8:(c&32512)==32512?7:8)|0;d=c>>>8&255;H[a+16>>2]=j+(l+(d>>>0<=143?8:(c&127)==127?7:8)|0);b=a;a=f<<k|c>>>24|d<<i|e<<j;e=l&31;if((l&63)>>>0>=32){c=a<<e;a=0}else{c=(1<<e)-1&a>>>32-e;a=a<<e}g=a|g;H[b+8>>2]=g;H[b+12>>2]=c|h}return g}function Sc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;j=H[a+96>>2];l=N(H[a+128>>2],H[a+132>>2]);a:{if(l){b=H[j+16>>2];m=N(b,1080);k=N(b,b)<<2;e=H[a+12>>2];b=H[a+180>>2];while(1){n=H[b+5584>>2];B(b,e,5644);H[b+5608>>2]=0;H[b+5588>>2]=-1;H[b+5168>>2]=0;H[b+5636>>2]=0;H[b+5616>>2]=0;H[b+5624>>2]=0;H[b+5628>>2]=0;H[b+5584>>2]=n;F[b+5640|0]=I[b+5640|0]&252;b:{if(!H[e+5608>>2]){break b}d=Fa(k);H[b+5608>>2]=d;if(!d){return 0}if(!k){break b}B(d,H[e+5608>>2],k)}d=N(H[e+5624>>2],20);f=Fa(d);H[b+5616>>2]=f;i=0;if(!f){break a}if(d){B(f,H[e+5616>>2],d)}g=H[e+5620>>2];if(g){d=H[e+5616>>2];f=H[b+5616>>2];h=0;while(1){if(H[d+12>>2]){g=Fa(H[d+16>>2]);H[f+12>>2]=g;if(!g){return 0}o=H[d+16>>2];if(o){B(g,H[d+12>>2],o)}g=H[e+5620>>2]}H[b+5624>>2]=H[b+5624>>2]+1;f=f+20|0;d=d+20|0;h=h+1|0;if(h>>>0<g>>>0){continue}break}}d=N(H[e+5636>>2],20);f=Fa(d);H[b+5628>>2]=f;if(!f){break a}if(d){B(f,H[e+5628>>2],d)}i=H[e+5636>>2];H[b+5636>>2]=i;if(i){d=H[e+5628>>2];f=H[b+5628>>2];h=0;while(1){g=H[d+8>>2];if(g){H[f+8>>2]=H[b+5616>>2]+(g-H[e+5616>>2]|0)}g=H[d+12>>2];if(g){H[f+12>>2]=H[b+5616>>2]+(g-H[e+5616>>2]|0)}f=f+20|0;d=d+20|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}}if(m){B(n,H[e+5584>>2],m)}b=b+5644|0;p=p+1|0;if((p|0)!=(l|0)){continue}break}}i=1;e=Ea(1,72);b=0;c:{if(!e){break c}F[e+40|0]=I[e+40|0]&254|1;d=Ea(1,4);H[e+20>>2]=d;b=e;if(d){break c}Ca(b);b=0}H[a+232>>2]=b;if(!b){return 0}f=H[a+236>>2];e=0;H[b+28>>2]=a+104;H[b+24>>2]=j;d=Ea(1,848);H[H[b+20>>2]>>2]=d;d:{if(!d){break d}d=Ea(H[j+16>>2],76);h=H[H[b+20>>2]>>2];H[h+20>>2]=d;if(!d){break d}H[h+16>>2]=H[j+16>>2];e=H[a+188>>2];H[b+44>>2]=f;H[b>>2]=e;e=1}if(e){break a}Tb(H[a+232>>2]);i=0;H[a+232>>2]=0;Ba(c,1,3668,0)}return i|0}function pe(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=na-80|0;na=e;H[e+76>>2]=1;j=H[a+44>>2];d=H[H[a+224>>2]+40>>2];a:{b:{if(!d|!H[d+16>>2]){break b}c:{d=d+N(j,40)|0;if(!H[d+4>>2]){d=H[a+52>>2];f=H[a+48>>2]+2|0;d=f>>>0<2?d+1|0:d;if(bb(b,f,d,c)){break c}d=0;Ba(c,1,5440,0);break a}d=H[d+16>>2];if(!bb(b,H[d>>2],H[d+4>>2],c)){Ba(c,1,5440,0);d=0;break a}if((Ja(b,H[a+16>>2],2,c)|0)!=2){Ba(c,1,2472,0);d=0;break a}Da(H[a+16>>2],e+72|0,2);if(H[e+72>>2]==65424){break c}Ba(c,1,4073,0);d=0;break a}if(H[a+8>>2]!=256){break b}H[a+8>>2]=8}f=N(H[a+132>>2],H[a+128>>2]);d:{if(!f){break d}i=f&7;h=H[a+180>>2];d=0;if(f>>>0>=8){k=f&-8;while(1){f=h+N(g,5644)|0;H[f+45096>>2]=-1;H[f+39452>>2]=-1;H[f+33808>>2]=-1;H[f+28164>>2]=-1;H[f+22520>>2]=-1;H[f+16876>>2]=-1;H[f+11232>>2]=-1;H[f+5588>>2]=-1;g=g+8|0;l=l+8|0;if((k|0)!=(l|0)){continue}break}if(!i){break d}}while(1){H[(h+N(g,5644)|0)+5588>>2]=-1;g=g+1|0;d=d+1|0;if((i|0)!=(d|0)){continue}break}}d=0;if(!cb(a,e+72|0,0,e+68|0,e- -64|0,e+60|0,e+56|0,e+52|0,e+76|0,b,c)){break a}i=j+1|0;while(1){e:{if(!H[e+76>>2]){break e}f=H[e+72>>2];if(!ib(a,f,0,0,b,c)){break a}h=H[a+128>>2];k=H[a+132>>2];g=f+1|0;H[e+32>>2]=g;H[e+36>>2]=N(h,k);Ba(c,4,11795,e+32|0);if(!Hc(H[a+232>>2],H[H[a+100>>2]+24>>2])){break a}d=H[a+180>>2]+N(f,5644)|0;h=H[d+5596>>2];if(h){Ca(h);H[d+5596>>2]=0;H[d+5600>>2]=0}H[e+16>>2]=g;Ba(c,4,16601,e+16|0);if((f|0)==(j|0)){d=H[a+224>>2];f=H[d+8>>2];d=H[d+12>>2];f=f+2|0;d=f>>>0<2?d+1|0:d;if(bb(b,f,d,c)){break e}d=0;Ba(c,1,5440,0);break a}H[e+4>>2]=i;H[e>>2]=g;Ba(c,2,13648,e);d=0;if(cb(a,e+72|0,0,e+68|0,e- -64|0,e+60|0,e+56|0,e+52|0,e+76|0,b,c)){continue}break a}break}d=Gc(a,c)}na=e+80|0;return d|0}function Ma(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;h=H[a+16>>2];if(h>>>0>=32){return H[a+8>>2]}c=H[a+24>>2];a:{if((c|0)>=4){b=H[a>>2];d=H[b>>2];e=c-4|0;H[a+24>>2]=e;H[a>>2]=b+4;break a}d=H[a+28>>2]?-1:0;if((c|0)<=0){e=c;break a}b=H[a>>2];if((c|0)!=1){j=c&1;i=c&2147483646;while(1){e=b;H[a>>2]=b+1;k=I[b|0];b=b+2|0;H[a>>2]=b;H[a+24>>2]=c-1;e=I[e+1|0];c=c-2|0;H[a+24>>2]=c;d=((255<<f^-1)&d|k<<f)&(65280<<f^-1)|e<<(f|8);f=f+16|0;g=g+2|0;if((i|0)!=(g|0)){continue}break}e=0;if(!j){break a}}H[a>>2]=b+1;b=I[b|0];H[a+24>>2]=c-1;d=(255<<f^-1)&d|b<<f}b=H[a+20>>2];i=d>>>24|0;H[a+20>>2]=(i|0)==255;c=d>>>16&255;f=d>>>8&255;b=b?7:8;d=d&255;g=b+((d|0)==255?7:8)|0;k=((f|0)==255?7:8)+g|0;j=(h+((c|0)==255?7:8)|0)+k|0;H[a+16>>2]=j;l=H[a+12>>2];b=d|(f<<b|c<<g|i<<k);c=h&31;if((h&63)>>>0>=32){d=b<<c;b=0}else{d=(1<<c)-1&b>>>32-c;b=b<<c}h=b|H[a+8>>2];b=d|l;k=b;H[a+8>>2]=h;H[a+12>>2]=b;if(j>>>0<=31){b:{if((e|0)>=4){b=H[a>>2];d=H[b>>2];H[a+24>>2]=e-4;H[a>>2]=b+4;break b}f=0;d=H[a+28>>2]?-1:0;if((e|0)<=0){break b}b=H[a>>2];if((e|0)!=1){l=e&1;m=e&2147483646;g=0;while(1){c=b;H[a>>2]=b+1;n=I[b|0];b=b+2|0;H[a>>2]=b;H[a+24>>2]=e-1;c=I[c+1|0];e=e-2|0;H[a+24>>2]=e;d=((255<<f^-1)&d|n<<f)&(65280<<f^-1)|c<<(f|8);f=f+16|0;g=g+2|0;if((m|0)!=(g|0)){continue}break}if(!l){break b}}H[a>>2]=b+1;b=I[b|0];H[a+24>>2]=e-1;d=(255<<f^-1)&d|b<<f}e=d>>>24|0;H[a+20>>2]=(e|0)==255;c=d>>>16&255;f=d>>>8&255;g=(i|0)==255?7:8;d=d&255;i=g+((d|0)==255?7:8)|0;l=((f|0)==255?7:8)+i|0;H[a+16>>2]=(((c|0)==255?7:8)+j|0)+l;b=a;a=d|(f<<g|c<<i|e<<l);e=j&31;if((j&63)>>>0>=32){c=a<<e;a=0}else{c=(1<<e)-1&a>>>32-e;a=a<<e}h=a|h;H[b+8>>2]=h;H[b+12>>2]=c|k}return h}function Lc(a,b,c,d,e){var f=0,g=0,h=0,i=0,j=0,k=0;h=na-32|0;na=h;if(H[a+8>>2]==16){f=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{f=H[a+12>>2]}a:{if(K[d>>2]<=4){a=0;Ba(e,1,2607,0);break a}f=H[f+5584>>2]+N(b,1080)|0;Da(c,f+4|0,1);g=H[f+4>>2]+1|0;H[f+4>>2]=g;if(g>>>0>=34){H[h+4>>2]=33;H[h>>2]=g;Ba(e,1,7635,h);a=0;break a}j=H[a+184>>2];if(j>>>0>=g>>>0){H[h+24>>2]=g;H[h+20>>2]=j;H[h+16>>2]=b;Ba(e,1,16423,h+16|0);H[a+8>>2]=H[a+8>>2]|32768;a=0;break a}Da(c+1|0,f+8|0,1);H[f+8>>2]=H[f+8>>2]+2;Da(c+2|0,f+12|0,1);a=H[f+12>>2]+2|0;H[f+12>>2]=a;b=H[f+8>>2];if(!(!(b>>>0>10|a>>>0>10)&a+b>>>0<13)){a=0;Ba(e,1,5468,0);break a}Da(c+3|0,f+16|0,1);if(I[f+16|0]&128){a=0;Ba(e,1,6564,0);break a}Da(c+4|0,f+20|0,1);if(K[f+20>>2]>=2){a=0;Ba(e,1,6499,0);break a}b=H[d>>2]-5|0;H[d>>2]=b;a=1;g=H[f+4>>2];if(!(F[f|0]&1)){if(!g){break a}j=g&3;d=f+944|0;e=f+812|0;b=0;c=0;if(g>>>0>=4){k=g&-4;g=0;while(1){f=c<<2;H[f+e>>2]=15;H[d+f>>2]=15;i=f|4;H[i+e>>2]=15;H[d+i>>2]=15;i=f|8;H[i+e>>2]=15;H[d+i>>2]=15;f=f|12;H[f+e>>2]=15;H[d+f>>2]=15;c=c+4|0;g=g+4|0;if((k|0)!=(g|0)){continue}break}if(!j){break a}}while(1){a=c<<2;H[a+e>>2]=15;H[a+d>>2]=15;a=1;c=c+1|0;b=b+1|0;if((j|0)!=(b|0)){continue}break}break a}if(b>>>0>=g>>>0){b:{if(!g){g=0;break b}Da(c+5|0,h+28|0,1);a=H[h+28>>2];H[f+944>>2]=a>>>4;H[f+812>>2]=a&15;g=H[f+4>>2];if(g>>>0>=2){j=f+944|0;k=f+812|0;a=c+6|0;c=1;while(1){Da(a,h+28|0,1);c:{b=H[h+28>>2];if(b>>>0>=16){g=b&15;if(g){break c}}a=0;Ba(e,1,6025,0);break a}i=c<<2;H[i+k>>2]=g;H[j+i>>2]=b>>>4;a=a+1|0;c=c+1|0;g=H[f+4>>2];if(c>>>0<g>>>0){continue}break}}b=H[d>>2]}H[d>>2]=b-g;a=1;break a}a=0;Ba(e,1,2607,0)}na=h+32|0;return a}function gc(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=na-256|0;na=j;g=Ea(1,20);a:{if(!g){Ba(c,1,6413,0);g=0;break a}H[g+4>>2]=b;H[g>>2]=a;H[j>>2]=b;H[j+128>>2]=a;while(1){p=h;h=h+1|0;e=h<<2;d=(b+1|0)/2|0;H[e+j>>2]=d;i=e+(j+128|0)|0;e=(a+1|0)/2|0;H[i>>2]=e;i=N(a,b);f=i+f|0;b=d;a=e;if(i>>>0>1){continue}break}H[g+8>>2]=f;if(!f){Ca(g);g=0;break a}d=Ea(f,16);H[g+12>>2]=d;if(!d){Ba(c,1,3564,0);Ca(g);g=0;break a}l=H[g+8>>2];H[g+16>>2]=l<<4;a=d;if(p){f=(N(H[g+4>>2],H[g>>2])<<4)+d|0;b=f;while(1){c=n<<2;e=H[c+j>>2];b:{if((e|0)<=0){break b}o=e-1|0;i=0;c:{d:{c=H[c+(j+128|0)>>2];if((c|0)<=0){k=e&3;if(e>>>0>=4){break d}h=0;break c}while(1){h=f;f=c;while(1){e:{H[a>>2]=b;if((f|0)==1){a=a+16|0;b=b+16|0;break e}H[a+16>>2]=b;b=b+16|0;a=a+32|0;k=(f|0)>2;f=f-2|0;if(k){continue}}break}k=((i|0)==(o|0)|i)&1;f=k?b:h+(c<<4)|0;b=k?b:h;i=i+1|0;if((e|0)!=(i|0)){continue}break}break b}m=e&2147483644;h=0;e=0;while(1){q=(h|0)==(o|0);h=h+4|0;f=q?b:f;b=f;e=e+4|0;if((m|0)!=(e|0)){continue}break}if(k){break c}break b}while(1){e=f;m=((h|0)==(o|0)|h)&1;f=m?b:e+(c<<4)|0;b=m?b:e;h=h+1|0;i=i+1|0;if((k|0)!=(i|0)){continue}break}}n=n+1|0;if((n|0)!=(p|0)){continue}break}}H[a>>2]=0;f:{if(!l){break f}a=l&3;if(l>>>0>=4){c=l&-4;b=0;while(1){H[d+60>>2]=0;H[d+52>>2]=999;H[d+56>>2]=0;H[d+44>>2]=0;H[d+36>>2]=999;H[d+40>>2]=0;H[d+28>>2]=0;H[d+20>>2]=999;H[d+24>>2]=0;H[d+12>>2]=0;H[d+4>>2]=999;H[d+8>>2]=0;d=d- -64|0;b=b+4|0;if((c|0)!=(b|0)){continue}break}if(!a){break f}}b=0;while(1){H[d+12>>2]=0;H[d+4>>2]=999;H[d+8>>2]=0;d=d+16|0;b=b+1|0;if((a|0)!=(b|0)){continue}break}}}na=j+256|0;return g}function Zb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a>>2]=b;H[a+16>>2]=0;H[a+20>>2]=0;H[a+28>>2]=d;h=c-1|0;H[a+24>>2]=h;n=b&3;a:{if((c|0)<=0){e=b;b=d;break a}e=b+1|0;H[a>>2]=e;b=I[b|0]}g=b;i=8;H[a+16>>2]=8;j=(g|0)==255;H[a+20>>2]=j;H[a+8>>2]=g;H[a+12>>2]=0;b:{if((n|0)==3){break b}k=c-2|0;H[a+24>>2]=k;c:{if((c|0)<2){b=e;e=d;break c}b=e+1|0;H[a>>2]=b;e=I[e|0]}j=(e|0)==255;H[a+20>>2]=j;i=(g|0)==255?15:16;H[a+16>>2]=i;g=g|e<<8;H[a+8>>2]=g;H[a+12>>2]=0;if((n|0)==2){e=b;c=h;h=k;break b}o=c-3|0;H[a+24>>2]=o;d:{if((c|0)<3){f=b;b=d;break d}f=b+1|0;H[a>>2]=f;b=I[b|0]}j=(b|0)==255;H[a+20>>2]=j;l=((e|0)==255?7:8)+i|0;H[a+16>>2]=l;e=i&31;if((i&63)>>>0>=32){m=b<<e;e=0}else{m=(1<<e)-1&b>>>32-e;e=b<<e}g=e|g;H[a+8>>2]=g;H[a+12>>2]=m;if((n|0)==1){e=f;i=l;c=k;h=o;break b}h=c-4|0;H[a+24>>2]=h;e:{if((c|0)<4){e=f;c=d;break e}e=f+1|0;H[a>>2]=e;c=I[f|0]}j=(c|0)==255;H[a+20>>2]=j;i=l+((b|0)==255?7:8)|0;H[a+16>>2]=i;b=l&31;if((l&63)>>>0>=32){f=c<<b;b=0}else{f=(1<<b)-1&c>>>32-b;b=c<<b}g=b|g;b=f|m;m=b;H[a+8>>2]=g;H[a+12>>2]=b;c=o}f:{if((c|0)>=5){d=H[e>>2];H[a+24>>2]=c-5;H[a>>2]=e+4;break f}b=0;d=d?-1:0;if((c|0)<2){break f}while(1){c=e+1|0;H[a>>2]=c;e=I[e|0];f=h-1|0;H[a+24>>2]=f;d=(255<<b^-1)&d|e<<b;b=b+8|0;k=h>>>0>1;e=c;h=f;if(k){continue}break}}b=d>>>24|0;H[a+20>>2]=(b|0)==255;c=d>>>16&255;e=d>>>8&255;h=j?7:8;d=d&255;f=h+((d|0)==255?7:8)|0;k=((e|0)==255?7:8)+f|0;H[a+16>>2]=(((c|0)==255?7:8)+i|0)+k;b=d|(e<<h|c<<f|b<<k);c=a;c=a;a=b;b=i&31;if((i&63)>>>0>=32){d=a<<b;a=0}else{d=(1<<b)-1&a>>>32-b;a=a<<b}H[c+8>>2]=a|g;H[c+12>>2]=d|m}function Ha(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;if(!b){return 0}a:{if(!a){a=gb(8,b);break a}if(!b){Ca(a);a=0;break a}b:{if(b>>>0>4294967239){break b}h=b>>>0<=8?8:b+3&-4;d=h+8|0;j=a-4|0;f=j;e=H[f>>2];b=e+f|0;c=H[b>>2];c:{d:{e:{if((c|0)!=H[(b+c|0)-4>>2]){c=c+e|0;if(c>>>0>=d+16>>>0){e=H[b+4>>2];b=H[b+8>>2];H[e+8>>2]=b;H[b+4>>2]=e;b=d+f|0;c=c-d|0;H[b>>2]=c;H[(b+(c&-4)|0)-4>>2]=c|1;e=H[b>>2]-8|0;f:{if(e>>>0<=127){g=(e>>>3|0)-1|0;break f}c=Q(e);g=((e>>>29-c^4)-(c<<2)|0)+110|0;if(e>>>0<=4095){break f}c=((e>>>30-c^2)-(c<<1)|0)+71|0;g=c>>>0>=63?63:c}c=g;e=c<<4;H[b+4>>2]=e+26400;e=e+26408|0;H[b+8>>2]=H[e>>2];H[e>>2]=b;H[H[b+8>>2]+4>>2]=b;e=H[6859];b=c&31;if((c&63)>>>0>=32){c=1<<b;g=0}else{g=1<<b;c=g-1&1>>>32-b}H[6858]=g|H[6858];H[6859]=c|e;H[f>>2]=d;H[(f+(d&-4)|0)-4>>2]=d;c=1;break c}if(c>>>0<d>>>0){break e}d=H[b+4>>2];b=H[b+8>>2];H[d+8>>2]=b;H[b+4>>2]=d;H[f>>2]=c;H[(f+(c&-4)|0)-4>>2]=c;c=1;break c}if(e>>>0>=d+16>>>0){H[f>>2]=d;H[(f+(d&-4)|0)-4>>2]=d;b=d+f|0;c=e-d|0;H[b>>2]=c;H[(b+(c&-4)|0)-4>>2]=c|1;d=H[b>>2]-8|0;g:{if(d>>>0<=127){c=(d>>>3|0)-1|0;break g}f=Q(d);c=((d>>>29-f^4)-(f<<2)|0)+110|0;if(d>>>0<=4095){break g}c=((d>>>30-f^2)-(f<<1)|0)+71|0;c=c>>>0>=63?63:c}d=c<<4;H[b+4>>2]=d+26400;d=d+26408|0;H[b+8>>2]=H[d>>2];H[d>>2]=b;H[H[b+8>>2]+4>>2]=b;d=H[6859];b=c&31;if((c&63)>>>0>=32){c=1<<b;b=0}else{e=1<<b;c=e-1&1>>>32-b;b=e}H[6858]=b|H[6858];H[6859]=c|d;c=1;break c}c=1;if(d>>>0<=e>>>0){break d}}c=0}}if(c){break a}b=gb(8,h);if(!b){break b}i=H[j>>2]-8|0;ab(b,a,h>>>0<i>>>0?h:i);Ca(a);i=b}a=i}return a}function ne(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;f=na-16|0;na=f;H[f+12>>2]=c;k=H[a+96>>2];if(H[a+8>>2]==16){e=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{e=H[a+12>>2]}F[e+5640|0]=I[e+5640|0]|1;a:{if(c>>>0<=4){c=0;Ba(d,1,4565,0);break a}Da(b,e,1);if(K[e>>2]>=8){c=0;Ba(d,1,4531,0);break a}Da(b+1|0,f+8|0,1);c=H[f+8>>2];H[e+4>>2]=c;if((c|0)>=5){Ba(d,1,4490,0);H[e+4>>2]=-1}Da(b+2|0,e+8|0,2);g=H[e+8>>2];if(g-65536>>>0<=4294901760){H[f>>2]=g;Ba(d,1,8111,f);c=0;break a}c=H[a+188>>2];H[e+12>>2]=c?c:g;Da(b+4|0,e+16|0,1);if(K[e+16>>2]>=2){c=0;Ba(d,1,5536,0);break a}g=b+5|0;H[f+12>>2]=H[f+12>>2]-5;c=H[k+16>>2];b:{if(!c){break b}k=c&7;h=H[e>>2]&1;e=H[e+5584>>2];b=0;if(c>>>0>=8){c=c&-8;while(1){i=e+N(b,1080)|0;H[i+7560>>2]=h;H[i+6480>>2]=h;H[i+5400>>2]=h;H[i+4320>>2]=h;H[i+3240>>2]=h;H[i+2160>>2]=h;H[i+1080>>2]=h;H[i>>2]=h;b=b+8|0;j=j+8|0;if((c|0)!=(j|0)){continue}break}if(!k){break b}}while(1){H[e+N(b,1080)>>2]=h;b=b+1|0;l=l+1|0;if((k|0)!=(l|0)){continue}break}}c=0;if(!Lc(a,0,g,f+12|0,d)){Ba(d,1,4565,0);break a}if(H[f+12>>2]){Ba(d,1,4565,0);break a}if(H[a+8>>2]==16){b=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{b=H[a+12>>2]}if(K[H[a+96>>2]+16>>2]>=2){b=H[b+5584>>2];g=H[b+4>>2]<<2;l=b+944|0;e=b+812|0;j=1;c=b;while(1){H[c+1084>>2]=H[b+4>>2];H[c+1088>>2]=H[b+8>>2];H[c+1092>>2]=H[b+12>>2];H[c+1096>>2]=H[b+16>>2];H[c+1100>>2]=H[b+20>>2];d=!g;if(!d){B(c+1892|0,e,g)}if(!d){B(c+2024|0,l,g)}c=c+1080|0;j=j+1|0;if(j>>>0<K[H[a+96>>2]+16>>2]){continue}break}}c=1}na=f+16|0;return c|0}function gb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=a>>>0<=8?8:a;k=j+48|0;a:{b:{while(1){if(a-1&a|b>>>0>4294967239){break b}c=H[6859];e=c;h=H[6858];b=b>>>0<=8?8:b+3&-4;c:{if(b>>>0<=127){i=(b>>>3|0)-1|0;break c}d=Q(b);i=((b>>>29-d^4)-(d<<2)|0)+110|0;if(b>>>0<=4095){break c}d=((b>>>30-d^2)-(d<<1)|0)+71|0;i=d>>>0>=63?63:d}g=i;f=g&31;if((g&63)>>>0>=32){d=0;c=c>>>f|0}else{d=c>>>f|0;c=((1<<f)-1&c)<<32-f|h>>>f}if(c|d){while(1){f=d;d:{if(f|c){e=f-1|0;i=e+1|0;d=e;e=c-1|0;h=(e|0)!=-1?i:d;d=Q(f^h);d=(d|0)==32?Q(c^e)+32|0:d;e=63-d|0;qa=0-(d>>>0>63)|0;break d}qa=0;e=64}h=e;e=h&31;if((h&63)>>>0>=32){d=0;i=f>>>e|0}else{d=f>>>e|0;i=((1<<e)-1&f)<<32-e|c>>>e}g=g+h|0;c=g<<4;f=H[c+26408>>2];e=c+26400|0;e:{if((f|0)!=(e|0)){c=Cb(f,j,b);if(c){break a}c=H[f+4>>2];h=H[f+8>>2];H[c+8>>2]=h;H[h+4>>2]=c;H[f+8>>2]=e;H[f+4>>2]=H[e+4>>2];H[e+4>>2]=f;H[H[f+4>>2]+8>>2]=f;g=g+1|0;c=(d&1)<<31|i>>>1;d=d>>>1|0;break e}c=H[6859];l=27432,m=H[6858]&ye(-2,-1,g),H[l>>2]=m;H[6859]=qa&c;c=i^1}if(c|d){continue}break}h=H[6858];e=H[6859]}d=Q(e);f=63-((d|0)==32?Q(h)+32|0:d)|0;f:{if(!(e|h)){g=0;break f}c=f<<4;g=H[c+26408>>2];if(!e&h>>>0<1073741824){break f}d=98;e=c+26400|0;if((e|0)==(g|0)){break f}while(1){c=Cb(g,j,b);if(c){break a}g=H[g+8>>2];if((e|0)==(g|0)){break f}c=d;d=c-1|0;if(c){continue}break}}d=a>>>0>8;a=j;if(zc((d?k:48)+b|0)){continue}break}if(!g){break b}a=(f<<4)+26400|0;if((a|0)==(g|0)){break b}while(1){c=Cb(g,j,b);if(c){break a}g=H[g+8>>2];if((a|0)!=(g|0)){continue}break}}c=0}return c}function ud(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;e=H[a+48>>2];if(e>>>0>=b>>>0){H[a+48>>2]=e-b;H[a+36>>2]=H[a+36>>2]+b;e=c+H[a+60>>2]|0;d=b+H[a+56>>2]|0;e=d>>>0<b>>>0?e+1|0:e;H[a+56>>2]=d;H[a+60>>2]=e;qa=c;return b|0}if(I[a+68|0]&4){H[a+48>>2]=0;H[a+36>>2]=e+H[a+36>>2];g=H[a+60>>2];c=H[a+56>>2];b=c+e|0;H[a+56>>2]=b;H[a+60>>2]=b>>>0<c>>>0?g+1|0:g;qa=e?0:-1;return(e?e:-1)|0}if(e){H[a+48>>2]=0;H[a+36>>2]=H[a+32>>2];h=b;f=e;b=b-e|0;c=c-(e>>>0>h>>>0)|0}a:{if((c|0)>0){h=1}else{h=!!b&(c|0)>=0}if(h){while(1){h=H[a+12>>2];e=c+g|0;i=b+f|0;e=H[a+60>>2]+(i>>>0<f>>>0?e+1|0:e)|0;j=i;i=i+H[a+56>>2]|0;e=j>>>0>i>>>0?e+1|0:e;if((e|0)==(h|0)&i>>>0>K[a+8>>2]|e>>>0>h>>>0){Ba(d,4,15630,0);H[a+48>>2]=0;H[a+36>>2]=H[a+32>>2];b=g+H[a+60>>2]|0;c=f+H[a+56>>2]|0;b=c>>>0<f>>>0?b+1|0:b;H[a+56>>2]=c;H[a+60>>2]=b;d=H[a+8>>2];f=d-c|0;e=H[a+12>>2];g=e-((c>>>0>d>>>0)+b|0)|0;h=ra[H[a+28>>2]](d,e,H[a>>2])|0;i=H[a+68>>2];if(h){H[a+56>>2]=d;H[a+60>>2]=e}H[a+68>>2]=i|4;a=(c|0)==(d|0)&(b|0)==(e|0);b=a?-1:f;break a}e=ra[H[a+24>>2]](b,c,H[a>>2])|0;h=qa;i=h;if((e&i)==-1){Ba(d,4,15630,0);H[a+68>>2]=H[a+68>>2]|4;e=g+H[a+60>>2]|0;b=f+H[a+56>>2]|0;e=b>>>0<f>>>0?e+1|0:e;H[a+56>>2]=b;H[a+60>>2]=e;a=!(g|f);b=a?-1:f;break a}g=g+i|0;f=e+f|0;g=f>>>0<e>>>0?g+1|0:g;h=b;b=b-e|0;c=c-((e>>>0>h>>>0)+i|0)|0;if(!!b&(c|0)>=0|(c|0)>0){continue}break}}b=g+H[a+60>>2]|0;c=f+H[a+56>>2]|0;b=c>>>0<f>>>0?b+1|0:b;H[a+56>>2]=c;H[a+60>>2]=b;qa=g;return f|0}qa=a?-1:g;return b|0}function yd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;e=na-80|0;na=e;a:{if(c>>>0<=2){Ba(d,1,14478,0);break a}if(I[a+124|0]){Ba(d,4,11193,0);g=1;break a}g=1;Da(b,a+40|0,1);Da(b+1|0,a+52|0,1);Da(b+2|0,a+44|0,1);f=b+3|0;b:{c:{d:{e:{f:{h=H[a+40>>2];switch(h-1|0){case 0:break f;case 1:break e;default:break d}}if(c>>>0<=6){H[e+16>>2]=c;Ba(d,1,15155,e+16|0);g=0;break a}if(!((c|0)==7|H[a+48>>2]==14)){H[e+48>>2]=c;Ba(d,2,15155,e+48|0)}Da(f,a+48|0,4);if(H[a+48>>2]!=14){break b}f=Fa(36);if(!f){g=0;Ba(d,1,7993,0);break a}H[f>>2]=14;H[e+64>>2]=0;H[e+56>>2]=0;H[e+72>>2]=0;H[e+60>>2]=0;H[e+68>>2]=0;H[e+76>>2]=0;g=4470064;H[e+52>>2]=4470064;H[f+4>>2]=1145390592;g:{if((c|0)!=7){if((c|0)==35){Da(b+7|0,e+76|0,4);Da(b+11|0,e+72|0,4);Da(b+15|0,e+68|0,4);Da(b+19|0,e- -64|0,4);Da(b+23|0,e+60|0,4);Da(b+27|0,e+56|0,4);Da(b+31|0,e+52|0,4);H[f+4>>2]=0;g=H[e+52>>2];c=H[e+56>>2];d=H[e+64>>2];i=H[e+68>>2];j=H[e+76>>2];h=H[e+72>>2];b=H[e+60>>2];break g}H[e+32>>2]=c;Ba(d,2,15191,e+32|0)}c=0;d=0;h=0;b=0}H[f+24>>2]=b;H[f+16>>2]=i;H[f+8>>2]=j;H[f+32>>2]=g;H[f+28>>2]=c;H[f+20>>2]=d;H[f+12>>2]=h;H[a+112>>2]=0;H[a+108>>2]=f;break b}b=c-3|0;H[a+112>>2]=b;d=Ea(1,b);H[a+108>>2]=d;if(!d){break c}if((c|0)<=3){break b}c=0;while(1){Da(f,e+76|0,1);F[H[a+108>>2]+c|0]=H[e+76>>2];f=f+1|0;c=c+1|0;if((b|0)!=(c|0)){continue}break}break b}if(h>>>0<3){break a}H[e>>2]=h;Ba(d,4,15950,e);break a}g=0;H[a+112>>2]=0;break a}g=1;F[a+124|0]=1}na=e+80|0;return g|0}function Ja(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=H[a+48>>2];if(h>>>0>=c>>>0){if(c){B(b,H[a+36>>2],c)}H[a+36>>2]=H[a+36>>2]+c;H[a+48>>2]=H[a+48>>2]-c;b=H[a+60>>2];d=H[a+56>>2]+c|0;b=d>>>0<c>>>0?b+1|0:b;H[a+56>>2]=d;H[a+60>>2]=b;return c}if(I[a+68|0]&4){if(h){B(b,H[a+36>>2],h)}b=H[a+48>>2];H[a+48>>2]=0;H[a+36>>2]=b+H[a+36>>2];g=H[a+60>>2];c=b;b=H[a+56>>2]+b|0;g=c>>>0>b>>>0?g+1|0:g;H[a+56>>2]=b;H[a+60>>2]=g;return h?h:-1}a:{if(h){if(h){B(b,H[a+36>>2],h)}i=H[a+32>>2];H[a+36>>2]=i;e=H[a+48>>2];H[a+48>>2]=0;f=H[a+60>>2];g=H[a+56>>2]+e|0;f=g>>>0<e>>>0?f+1|0:f;H[a+56>>2]=g;H[a+60>>2]=f;c=c-e|0;b=b+e|0;break a}i=H[a+32>>2];H[a+36>>2]=i}b:{while(1){c:{e=H[a>>2];f=H[a+16>>2];g=H[a+64>>2];d:{if(g>>>0>c>>>0){f=ra[f|0](i,g,e)|0;H[a+48>>2]=f;if((f|0)==-1){break b}if(c>>>0>f>>>0){if(f){B(b,H[a+36>>2],f)}i=H[a+32>>2];H[a+36>>2]=i;e=H[a+48>>2];break d}if(c){B(b,H[a+36>>2],c)}H[a+36>>2]=H[a+36>>2]+c;H[a+48>>2]=H[a+48>>2]-c;b=H[a+60>>2];d=H[a+56>>2]+c|0;b=d>>>0<c>>>0?b+1|0:b;H[a+56>>2]=d;H[a+60>>2]=b;return c+h|0}e=ra[f|0](b,c,e)|0;H[a+48>>2]=e;if((e|0)==-1){break b}if(c>>>0<=e>>>0){break c}i=H[a+32>>2];H[a+36>>2]=i;f=e}H[a+48>>2]=0;g=H[a+60>>2];j=H[a+56>>2]+e|0;g=j>>>0<e>>>0?g+1|0:g;H[a+56>>2]=j;H[a+60>>2]=g;b=b+e|0;c=c-e|0;h=f+h|0;continue}break}H[a+48>>2]=0;H[a+36>>2]=H[a+32>>2];f=H[a+60>>2];b=H[a+56>>2]+e|0;f=b>>>0<e>>>0?f+1|0:f;H[a+56>>2]=b;H[a+60>>2]=f;return e+h|0}Ba(d,4,15630,0);H[a+48>>2]=0;H[a+68>>2]=H[a+68>>2]|4;return h?h:-1}function Ta(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{b:{if(!H[a+12>>2]){k=1;if(H[a+4>>2]>0|H[a+8>>2]>1){break b}break a}e=1;if(H[a+8>>2]>0){break b}if(H[a+4>>2]<2){break a}}b=H[a>>2];f=b+(e<<5)|0;g=H[a+16>>2];h=H[a+20>>2];if(g>>>0<h>>>0){d=g;while(1){c=(d<<6)+f|0;L[c>>2]=L[c>>2]*O(1.2301740646362305);L[c+4>>2]=L[c+4>>2]*O(1.2301740646362305);L[c+8>>2]=L[c+8>>2]*O(1.2301740646362305);L[c+12>>2]=L[c+12>>2]*O(1.2301740646362305);L[c+16>>2]=L[c+16>>2]*O(1.2301740646362305);L[c+20>>2]=L[c+20>>2]*O(1.2301740646362305);L[c+24>>2]=L[c+24>>2]*O(1.2301740646362305);L[c+28>>2]=L[c+28>>2]*O(1.2301740646362305);d=d+1|0;if((h|0)!=(d|0)){continue}break}}i=b+(k<<5)|0;j=H[a+28>>2];c=H[a+24>>2];if(j>>>0>c>>>0){d=c;while(1){b=(d<<6)+i|0;L[b>>2]=L[b>>2]*O(1.625732421875);L[b+4>>2]=L[b+4>>2]*O(1.625732421875);L[b+8>>2]=L[b+8>>2]*O(1.625732421875);L[b+12>>2]=L[b+12>>2]*O(1.625732421875);L[b+16>>2]=L[b+16>>2]*O(1.625732421875);L[b+20>>2]=L[b+20>>2]*O(1.625732421875);L[b+24>>2]=L[b+24>>2]*O(1.625732421875);L[b+28>>2]=L[b+28>>2]*O(1.625732421875);d=d+1|0;if((j|0)!=(d|0)){continue}break}}b=f+32|0;d=H[a+8>>2];a=H[a+4>>2];e=a-e|0;e=(d|0)<(e|0)?d:e;mb(i,b,g,h,e,O(-.4435068666934967));l=i+32|0;d=d-k|0;a=(a|0)<(d|0)?a:d;mb(f,l,c,j,a,O(-.8829110860824585));mb(i,b,g,h,e,O(.05298011749982834));mb(f,l,c,j,a,O(1.5861343145370483))}}function _b(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;e=H[a+28>>2]+N(b,152)|0;c=H[e-144>>2]-H[e-152>>2]|0;d=H[e-140>>2]-H[e-148>>2]|0;f=d>>>0>=64?64:d;g=c>>>0>=64?64:c;a:{if(!(!c|!d|(!g|!f)|g>>>0>4294967295/(f>>>0)>>>2>>>0)){e=Ea(1,28);H[e+12>>2]=f;H[e+8>>2]=g;H[e+4>>2]=d;H[e>>2]=c;j=d;d=d+f|0;i=j>>>0>d>>>0;d=ve(d-1|0,i-!d|0,f,0);H[e+20>>2]=d;j=c;c=c+g|0;f=j>>>0>c>>>0;c=ve(c-1|0,f-!c|0,g,0);H[e+16>>2]=c;re(d,0,c);b:{if(qa){break b}c=Ea(4,N(c,d));H[e+24>>2]=c;if(!c){break b}break a}Ca(e)}e=0}if(!e){return 0}c:{if(b){while(1){q=N(p,152);g=q+H[a+28>>2]|0;c=H[g+24>>2];if(c){j=g+28|0;d=H[g+20>>2];f=H[g+16>>2];n=0;while(1){if(N(d,f)){i=N(n,36)+j|0;o=0;while(1){k=H[i+20>>2]+N(o,40)|0;c=H[k+20>>2];h=H[k+16>>2];if(N(c,h)){f=0;while(1){l=H[k+24>>2]+N(f,68)|0;r=H[l+60>>2];if(r){h=H[l+8>>2];d=h-H[i>>2]|0;m=H[i+16>>2];if(m&1){c=H[a+28>>2]+q|0;d=(H[c-144>>2]+d|0)-H[c-152>>2]|0}s=H[l+12>>2];c=s-H[i+4>>2]|0;if(m&2){m=H[a+28>>2]+q|0;c=(c+H[m-140>>2]|0)-H[m-148>>2]|0}h=H[l+16>>2]-h|0;if(!Za(e,d,c,d+h|0,(H[l+20>>2]-s|0)+c|0,r,1,h)){break c}h=H[k+16>>2];c=H[k+20>>2]}f=f+1|0;if(f>>>0<N(c,h)>>>0){continue}break}f=H[g+16>>2];d=H[g+20>>2]}o=o+1|0;if(o>>>0<N(d,f)>>>0){continue}break}c=H[g+24>>2]}n=n+1|0;if(n>>>0<c>>>0){continue}break}}p=p+1|0;if((p|0)!=(b|0)){continue}break}}return e}Va(e);return 0}function $d(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=na-16|0;na=h;if(H[a+8>>2]==16){e=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{e=H[a+12>>2]}a:{if(c>>>0<=1){Ba(d,1,4132,0);a=0;break a}Da(b,h+12|0,2);b:{if(H[h+12>>2]){Ba(d,2,3608,0);break b}if(c>>>0<=6){Ba(d,1,4132,0);a=0;break a}Da(b+2|0,h+12|0,2);g=H[e+5616>>2];k=I[h+12|0];f=H[e+5620>>2];c:{d:{if(!f){break d}a=g;while(1){if(H[a+8>>2]!=(k|0)){a=a+20|0;i=i+1|0;if((i|0)!=(f|0)){continue}break d}break}if((f|0)!=(i|0)){break c}}if(H[e+5624>>2]==(f|0)){a=f+10|0;H[e+5624>>2]=a;a=Ha(g,N(a,20));g=H[e+5616>>2];if(!a){Ca(g);H[e+5624>>2]=0;H[e+5616>>2]=0;H[e+5620>>2]=0;Ba(d,1,4158,0);a=0;break a}e:{if((a|0)==(g|0)){break e}l=H[e+5632>>2];if(!l){break e}m=H[e+5628>>2];i=0;while(1){f=N(i,20)+m|0;j=H[f+8>>2];if(j){H[f+8>>2]=a+(j-g|0)}j=H[f+12>>2];if(j){H[f+12>>2]=a+(j-g|0)}i=i+1|0;if((l|0)!=(i|0)){continue}break}}H[e+5616>>2]=a;g=H[e+5620>>2];f=N(H[e+5624>>2]-g|0,20);if(f){y(a+N(g,20)|0,0,f)}f=H[e+5620>>2];g=H[e+5616>>2]}H[e+5620>>2]=f+1;a=N(f,20)+g|0}e=H[a+12>>2];if(e){Ca(e);H[a+12>>2]=0;H[a+16>>2]=0}H[a+8>>2]=k;e=H[h+12>>2];H[a>>2]=e>>>10&3;H[a+4>>2]=e>>>8&3;Da(b+4|0,h+12|0,2);if(H[h+12>>2]){Ba(d,2,3023,0);break b}c=c-6|0;e=Fa(c);H[a+12>>2]=e;if(!e){Ba(d,1,4132,0);a=0;break a}if(c){B(e,b+6|0,c)}H[a+16>>2]=c}a=1}na=h+16|0;return a|0}function Tb(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;if(a){b=H[a+20>>2];if(b){g=H[b>>2];if(g){d=H[g+20>>2];if(H[g+16>>2]){i=F[a+40|0]&1?16:17;while(1){c=H[d+28>>2];if(c){b=H[d+32>>2];l=(b>>>0)/152|0;j=0;if(b>>>0>=152){while(1){b=H[c+48>>2];if(b){f=H[c+52>>2];h=(f>>>0)/40|0;e=0;if(f>>>0>=40){while(1){_a(H[b+32>>2]);H[b+32>>2]=0;_a(H[b+36>>2]);H[b+36>>2]=0;ra[i|0](b);b=b+40|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}b=H[c+48>>2]}Ca(b);H[c+48>>2]=0}b=H[c+84>>2];if(b){f=H[c+88>>2];h=(f>>>0)/40|0;e=0;if(f>>>0>=40){while(1){_a(H[b+32>>2]);H[b+32>>2]=0;_a(H[b+36>>2]);H[b+36>>2]=0;ra[i|0](b);b=b+40|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}b=H[c+84>>2]}Ca(b);H[c+84>>2]=0}b=H[c+120>>2];if(b){f=H[c+124>>2];h=(f>>>0)/40|0;e=0;if(f>>>0>=40){while(1){_a(H[b+32>>2]);H[b+32>>2]=0;_a(H[b+36>>2]);H[b+36>>2]=0;ra[i|0](b);b=b+40|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}b=H[c+120>>2]}Ca(b);H[c+120>>2]=0}c=c+152|0;j=j+1|0;if((l|0)!=(j|0)){continue}break}c=H[d+28>>2]}Ca(c);H[d+28>>2]=0}a:{if(!H[d+40>>2]){break a}b=H[d+36>>2];if(!b){break a}Ca(b);H[d+44>>2]=0;H[d+48>>2]=0;H[d+36>>2]=0;H[d+40>>2]=0}Ca(H[d+52>>2]);d=d+76|0;k=k+1|0;if(k>>>0<K[g+16>>2]){continue}break}d=H[g+20>>2]}Ca(d);H[g+20>>2]=0;Ca(H[H[a+20>>2]>>2]);b=H[a+20>>2];H[b>>2]=0}Ca(b);H[a+20>>2]=0}Ca(H[a+68>>2]);Ca(a)}}function Rb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=H[a+24>>2];j=H[e+16>>2];if(!j){return 0}f=H[e+24>>2];e=H[H[H[a+20>>2]>>2]+20>>2];a:{b:{if(!b){b=0;while(1){c=H[f+24>>2];a=H[e+28>>2]+N(H[e+24>>2],152)|0;d=H[a-140>>2];g=H[a-144>>2]-H[a-152>>2]|0;a=H[a-148>>2];h=d-a|0;re(g,0,h);if(!(!qa|(a|0)==(d|0))){break a}a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;a=!c;d=N(g,h);re(c,0,d);if(!(!qa|a)){break a}a=-1;c=N(c,d);if(c>>>0>(b^-1)>>>0){break b}e=e+76|0;f=f+52|0;b=b+c|0;a=b;i=i+1|0;if((j|0)!=(i|0)){continue}break}break b}b=0;if(!H[a+64>>2]){while(1){c=H[f+24>>2];a=H[e+28>>2]+N(H[e+24>>2],152)|0;d=H[a-4>>2];g=H[a-8>>2]-H[a-16>>2]|0;a=H[a-12>>2];h=d-a|0;re(g,0,h);if(!(!qa|(a|0)==(d|0))){break a}a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;a=!c;d=N(g,h);re(c,0,d);if(!(!qa|a)){break a}a=-1;c=N(c,d);if(c>>>0>(b^-1)>>>0){break b}e=e+76|0;f=f+52|0;b=b+c|0;a=b;i=i+1|0;if((j|0)!=(i|0)){continue}break}break b}while(1){c=H[f+24>>2];a=H[e+28>>2]+N(H[e+24>>2],152)|0;d=H[a-140>>2];g=H[a-144>>2]-H[a-152>>2]|0;a=H[a-148>>2];h=d-a|0;re(g,0,h);if(!(!qa|(a|0)==(d|0))){break a}a=(c>>>3|0)+((c&7)!=0)|0;c=(a|0)==3?4:a;a=!c;d=N(g,h);re(c,0,d);if(!(!qa|a)){break a}a=-1;c=N(c,d);if(c>>>0>(b^-1)>>>0){break b}e=e+76|0;f=f+52|0;b=b+c|0;a=b;i=i+1|0;if((j|0)!=(i|0)){continue}break}}return a}return-1}function $b(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;c=H[a+8>>2];e=c+H[a+4>>2]|0;a:{if(!H[a+12>>2]){if((e|0)<2){break a}h=(c<<2)+b|0;d=H[h>>2];c=H[b>>2]-(d+1>>1)|0;i=H[a>>2];if(e>>>0>=4){k=(e-4>>>1|0)+1|0;a=1;while(1){f=d;d=a<<2;m=H[d+b>>2];d=H[d+h>>2];j=c;l=i+(g<<2)|0;H[l>>2]=c;c=m-((d+f|0)+2>>2)|0;H[l+4>>2]=f+(j+c>>1);g=g+2|0;f=(a|0)!=(k|0);a=a+1|0;if(f){continue}break}}H[i+(g<<2)>>2]=c;if(e&1){f=e-1|0;a=H[(f<<1)+b>>2]-(d+1>>1)|0;H[i+(f<<2)>>2]=a;c=a+c>>1;j=-8}else{j=-4}a=e<<2;H[j+(a+i|0)>>2]=c+d;if(!a){break a}B(b,i,a);return}b:{switch(e-1|0){case 0:H[b>>2]=H[b>>2]/2;return;case 1:a=H[a>>2];c=(c<<2)+b|0;d=H[b>>2]-(H[c>>2]+1>>1)|0;H[a+4>>2]=d;H[a>>2]=d+H[c>>2];c=H[a+4>>2];H[b>>2]=H[a>>2];H[b+4>>2]=c;return;default:break b}}if((e|0)<3){break a}h=H[a>>2];k=(c<<2)+b|0;d=H[k+4>>2];a=H[k>>2];c=H[b>>2]-((d+a|0)+2>>2)|0;H[h>>2]=c+a;g=1;m=e-2|0;l=e&1;a=!l;if(m-a>>>0>=2){o=((e-a|0)-4>>>1|0)+1|0;a=1;while(1){f=d;p=H[(a<<2)+b>>2];j=a+1|0;d=H[k+(j<<2)>>2];i=c;n=h+(g<<2)|0;H[n>>2]=c;c=p-((d+f|0)+2>>2)|0;H[n+4>>2]=f+(i+c>>1);g=g+2|0;f=(a|0)!=(o|0);a=j;if(f){continue}break}}H[h+(g<<2)>>2]=c;c:{if(!l){g=H[((e<<1)+b|0)-4>>2]-(d+1>>1)|0;H[h+(m<<2)>>2]=(g+c>>1)+d;break c}g=c+d|0}a=e<<2;H[(a+h|0)-4>>2]=g;if(!a){break a}B(b,h,a)}}function Hb(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=na-256|0;na=d;if(a){Ac(1806,17,c);H[d+240>>2]=H[a>>2];Ga(c,2348,d+240|0);H[d+224>>2]=H[a+4>>2];Ga(c,2361,d+224|0);H[d+208>>2]=H[a+8>>2];Ga(c,7260,d+208|0);H[d+192>>2]=H[a+16>>2];Ga(c,2319,d+192|0);if((b|0)>0){while(1){e=H[a+5584>>2];H[d+176>>2]=h;Ga(c,1844,d+176|0);e=e+N(h,1080)|0;H[d+160>>2]=H[e>>2];Ga(c,2347,d+160|0);H[d+144>>2]=H[e+4>>2];Ga(c,7374,d+144|0);H[d+128>>2]=H[e+8>>2];Ga(c,7162,d+128|0);H[d+112>>2]=H[e+12>>2];Ga(c,7178,d+112|0);H[d+96>>2]=H[e+16>>2];Ga(c,2330,d+96|0);H[d+80>>2]=H[e+20>>2];Ga(c,7440,d+80|0);Ac(1567,23,c);if(H[e+4>>2]){i=e+944|0;j=e+812|0;f=0;while(1){g=f<<2;k=H[j+g>>2];H[d+68>>2]=H[i+g>>2];H[d+64>>2]=k;Ga(c,1693,d- -64|0);f=f+1|0;if(f>>>0<K[e+4>>2]){continue}break}}Bc(c);H[d+48>>2]=H[e+24>>2];Ga(c,7194,d+48|0);H[d+32>>2]=H[e+804>>2];Ga(c,7243,d+32|0);i=1;Ac(1591,20,c);a:{if(H[e+24>>2]!=1){f=H[e+4>>2];if((f|0)<=0){break a}i=N(f,3)-2|0}j=e+28|0;f=0;while(1){g=j+(f<<3)|0;l=d,m=ye(H[g>>2],H[g+4>>2],32),H[l+16>>2]=m;H[d+20>>2]=qa;Ga(c,1693,d+16|0);f=f+1|0;if((i|0)!=(f|0)){continue}break}}Bc(c);H[d>>2]=H[e+808>>2];Ga(c,7226,d);Ac(1707,5,c);h=h+1|0;if((h|0)!=(b|0)){continue}break}}Ac(1708,4,c)}na=d+256|0}function se(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{e=b;if(e){if(!c){break j}if(!d){break i}e=Q(d)-Q(e)|0;if(e>>>0<=31){break h}break b}if((d|0)==1|d>>>0>1){break b}b=(a>>>0)/(c>>>0)|0;oa=a-N(b,c)|0;pa=0;qa=0;return b}if(!a){break g}if(!d){break f}f=d-1|0;if(f&d){break f}oa=a;pa=e&f;a=e>>>te(d)|0;qa=0;return a}f=c-1|0;if(!(f&c)){break e}k=(Q(c)+33|0)-Q(e)|0;g=0-k|0;break c}k=e+1|0;g=63-e|0;break c}oa=0;a=(e>>>0)/(d>>>0)|0;pa=e-N(a,d)|0;qa=0;return a}e=Q(d)-Q(e)|0;if(e>>>0<31){break d}break b}oa=a&f;pa=0;if((c|0)==1){break a}c=te(c);d=c&31;if((c&63)>>>0>=32){e=0;a=b>>>d|0}else{e=b>>>d|0;a=((1<<d)-1&b)<<32-d|a>>>d}qa=e;return a}k=e+1|0;g=63-e|0}f=a;e=k&63;h=e&31;if((e&63)>>>0>=32){e=0;f=b>>>h|0}else{e=b>>>h|0;f=((1<<h)-1&b)<<32-h|f>>>h}h=g&63;g=a;i=h&31;if((h&63)>>>0>=32){j=a<<i;a=0}else{j=(1<<i)-1&g>>>32-i|b<<i;a=g<<i}b=j;if(k){g=d-1|0;l=c-1|0;g=(l|0)!=-1?g+1|0:g;h=l;while(1){e=e<<1|f>>>31;f=f<<1|b>>>31;l=e;i=g-(e+(f>>>0>h>>>0)|0)|0;m=i>>31;j=m;e=f;i=c&j;f=e-i|0;e=l-((d&j)+(e>>>0<i>>>0)|0)|0;j=b<<1|a>>>31;a=n|a<<1;b=j|o;l=m&1;n=l;k=k-1|0;if(k){continue}break}}oa=f;pa=e;j=b<<1|a>>>31;a=l|a<<1;qa=j|o;return a}oa=a;pa=b;a=0;b=0}qa=b;return a}function Kc(a,b,c,d,e){var f=0,g=0,h=0,i=0;h=na-16|0;na=h;if(H[a+8>>2]==16){a=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{a=H[a+12>>2]}f=H[d>>2];a:{if(!f){d=0;Ba(e,1,2642,0);break a}a=H[a+5584>>2];H[d>>2]=f-1;Da(c,h+12|0,1);g=N(b,1080)+a|0;a=H[h+12>>2];H[g+804>>2]=a>>>5;b=a&31;H[g+24>>2]=b;a=c+1|0;b:{c:{d:{e:{f:{switch(b|0){case 0:f=H[d>>2];break e;case 1:break d;default:break f}}f=H[d>>2]>>>1|0}if(f>>>0>=98){H[h+4>>2]=97;H[h+8>>2]=97;H[h>>2]=f;Ba(e,2,16056,h);b=H[g+24>>2]}if(b){b=f;if(b){break d}a=0;break c}if(f){b=g+28|0;c=0;while(1){Da(a,h+12|0,1);if(c>>>0<=96){e=H[h+12>>2];i=b+(c<<3)|0;H[i+4>>2]=0;H[i>>2]=e>>>3}a=a+1|0;c=c+1|0;if((f|0)!=(c|0)){continue}break}}a=H[d>>2];if(a>>>0<f>>>0){d=0;break a}a=a-f|0;break b}e=g+28|0;c=0;while(1){Da(a,h+12|0,2);if(c>>>0<=96){f=e+(c<<3)|0;i=H[h+12>>2];H[f+4>>2]=i&2047;H[f>>2]=i>>>11}a=a+2|0;c=c+1|0;if((c|0)!=(b|0)){continue}break}a=b<<1}b=H[d>>2];if(a>>>0>b>>>0){d=0;break a}a=b-a|0}H[d>>2]=a;d=1;if(H[g+24>>2]!=1){break a}f=g+28|0;c=H[g+32>>2];e=H[g+28>>2];a=1;while(1){b=f+(a<<3)|0;H[b+12>>2]=c;H[b+4>>2]=c;g=e-((a>>>0)/3|0)|0;H[b+8>>2]=(g|0)>0?g:0;g=b;b=e-((a-1>>>0)/3|0)|0;H[g>>2]=(b|0)>0?b:0;a=a+2|0;if((a|0)!=97){continue}break}}na=h+16|0;return d}function fe(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=na-32|0;na=f;g=1;a:{if(c>>>0<=1){g=0;Ba(d,1,10062,0);break a}if(H[a+76>>2]){break a}Da(b,f+28|0,1);Da(b+1|0,f+24|0,1);e=H[f+24>>2];i=e>>>4&3;if((i|0)==3){H[a+76>>2]=1;Ba(d,2,11558,0);break a}c=c-2|0;j=(e>>>5&2)+2|0;h=i+j|0;e=(c>>>0)/(h>>>0)|0;if((c|0)!=(N(e,h)|0)){H[a+76>>2]=1;Ba(d,2,11139,0);break a}if(c>>>0<h>>>0){break a}b:{c=H[a+68>>2];if(c>>>0<=(e^-1)>>>0){c=c+e|0;if(c>>>0<536870912){break b}}H[a+76>>2]=1;Ba(d,2,9400,0);break a}h=Ha(H[a+72>>2],c<<3);if(!h){H[a+76>>2]=1;Ba(d,2,9443,0);break a}c=b+2|0;H[a+72>>2]=h;c:{if(i){k=e>>>0<=1?1:e;e=0;while(1){Da(c,f+20|0,i);b=H[f+20>>2];if(b>>>0>=N(H[a+132>>2],H[a+128>>2])>>>0){break c}b=c+i|0;Da(b,f+16|0,j);c=H[a+68>>2];g=h+(c<<3)|0;G[g>>1]=H[f+20>>2];H[g+4>>2]=H[f+16>>2];g=1;H[a+68>>2]=c+1;c=b+j|0;e=e+1|0;if((k|0)!=(e|0)){continue}break}break a}i=e>>>0<=1?1:e;b=H[a+68>>2];e=0;while(1){H[f+20>>2]=b;if(N(H[a+132>>2],H[a+128>>2])>>>0<=b>>>0){break c}Da(c,f+16|0,j);k=H[a+68>>2];g=h+(k<<3)|0;G[g>>1]=b;H[g+4>>2]=H[f+16>>2];g=1;b=k+1|0;H[a+68>>2]=b;c=c+j|0;e=e+1|0;if((i|0)!=(e|0)){continue}break}break a}H[a+76>>2]=1;H[f>>2]=b;Ba(d,2,7799,f)}na=f+32|0;return g|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=na-16|0;na=h;a:{if(!(I[a+100|0]&2)){Ba(d,1,11356,0);a=0;break a}H[a+104>>2]=0;b:{c:{d:{if(c){while(1){if(c>>>0<=7){Ba(d,1,3403,0);break b}g=h+12|0;Da(b,g,4);e=H[h+12>>2];Da(b+4|0,g,4);f=8;g=H[h+12>>2];e:{f:{g:{switch(e|0){case 1:if(c>>>0<16){e=3443;break c}Da(b+8|0,h+8|0,4);if(H[h+8>>2]){e=8449;break c}Da(b+12|0,h+12|0,4);e=H[h+12>>2];if(e){break f}e=3268;break c;case 0:break g;default:break e}}Ba(d,1,3268,0);break b}f=16}if(e>>>0<f>>>0){Ba(d,1,9148,0);break b}if(c>>>0<e>>>0){Ba(d,1,9076,0);a=0;break a}h:{i:{j=b+f|0;k=e-f|0;j:{k:{l:{m:{if((g|0)<=1668246641){if((g|0)==1651532643){break m}if((g|0)==1667523942){break k}if((g|0)!=1668112752){break i}f=25296;break j}if((g|0)==1885564018){break l}f=25264;if((g|0)==1768449138){break j}if((g|0)!=1668246642){break i}f=25272;break j}f=25280;break j}f=25288;break j}f=25304}if(ra[H[f+4>>2]](a,j,k,d)|0){break h}a=0;break a}H[a+104>>2]=H[a+104>>2]|2147483647}i=(g|0)==1768449138?1:i;b=b+e|0;c=c-e|0;if(c){continue}break}if(i){break d}}Ba(d,1,8976,0);a=0;break a}F[a+132|0]=1;H[a+100>>2]=H[a+100>>2]|4;a=1;break a}Ba(d,1,e,0)}Ba(d,1,1968,0);a=0}na=h+16|0;return a|0}function Jd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:{if(!Wa(H[b+8>>2],54,d)){break a}i=H[b+4>>2];f=H[i>>2];e=H[i+8>>2];b:{if(f){g=1;c:{if((f|0)!=1){k=f&1;f=f&-2;while(1){h=0;d:{if(!g){break d}h=0;if(!(ra[H[e>>2]](b,a,d)|0)){break d}h=(ra[H[e+4>>2]](b,a,d)|0)!=0}g=h;e=e+8|0;j=j+2|0;if((f|0)!=(j|0)){continue}break}if(!k){break c}}if(!g){g=0;break c}g=(ra[H[e>>2]](b,a,d)|0)!=0}Pa(i);if(g){break b}break a}Pa(i)}i=H[b+8>>2];f=H[i>>2];e=H[i+8>>2];e:{if(f){g=1;f:{if((f|0)!=1){k=f&1;f=f&-2;j=0;while(1){h=0;g:{if(!g){break g}h=0;if(!(ra[H[e>>2]](b,a,d)|0)){break g}h=(ra[H[e+4>>2]](b,a,d)|0)!=0}g=h;e=e+8|0;j=j+2|0;if((f|0)!=(j|0)){continue}break}if(!k){break f}}if(!g){g=0;break f}g=(ra[H[e>>2]](b,a,d)|0)!=0}Pa(i);if(!g){break a}break e}Pa(i)}if(!I[b+132|0]){Ba(d,1,11696,0);return 0}if(!I[b+133|0]){Ba(d,1,11667,0);return 0}l=Mb(a,H[b>>2],c,d);if(!c|!l){break a}a=H[c>>2];if(!a){break a}e=1;h:{i:{switch(H[b+48>>2]-12|0){case 5:e=2;break h;case 6:e=3;break h;case 12:e=4;break h;case 0:e=5;break h;case 4:break h;default:break i}}e=-1}H[a+20>>2]=e;c=H[b+108>>2];if(!c){break a}H[a+28>>2]=c;H[a+32>>2]=H[b+112>>2];H[b+108>>2]=0}return l|0}function Mb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=Eb();H[b+96>>2]=e;a:{b:{if(!e){break b}c:{if(Wa(H[b+220>>2],18,d)){if(Wa(H[b+220>>2],19,d)){break c}}break a}i=H[b+220>>2];f=H[i>>2];g=H[i+8>>2];d:{if(f){e=1;e:{if((f|0)!=1){k=f&1;f=f&-2;while(1){h=0;f:{if(!e){break f}h=0;if(!(ra[H[g>>2]](b,a,d)|0)){break f}h=(ra[H[g+4>>2]](b,a,d)|0)!=0}e=h;g=g+8|0;j=j+2|0;if((f|0)!=(j|0)){continue}break}if(!k){break e}}if(!e){e=0;break e}e=(ra[H[g>>2]](b,a,d)|0)!=0}Pa(i);if(e){break d}break a}Pa(i)}g:{if(Wa(H[b+216>>2],20,d)){if(Wa(H[b+216>>2],21,d)){break g}}break a}i=H[b+216>>2];f=H[i>>2];g=H[i+8>>2];h:{if(f){e=1;i:{if((f|0)!=1){k=f&1;f=f&-2;j=0;while(1){h=0;j:{if(!e){break j}h=0;if(!(ra[H[g>>2]](b,a,d)|0)){break j}h=(ra[H[g+4>>2]](b,a,d)|0)!=0}e=h;g=g+8|0;j=j+2|0;if((f|0)!=(j|0)){continue}break}if(!k){break i}}if(!e){e=0;break i}e=(ra[H[g>>2]](b,a,d)|0)!=0}Pa(i);if(e){break h}break a}Pa(i)}a=Eb();H[c>>2]=a;if(!a){break b}Ec(H[b+96>>2],a);l=1}return l|0}Ua(H[b+96>>2]);H[b+96>>2]=0;return 0}function zc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0;b=H[6516];c=a+7&-8;a=c+7|0;d=a>>>0<7?1:d;e=a&-8;a=e+b|0;a:{b:{if(!(a>>>0<e>>>0?d+1|0:d)){if(a>>>0<=sa()<<16>>>0){break b}if(ga(a|0)|0){break b}}H[6597]=48;b=-1;break a}H[6516]=a}d=b;if((d|0)!=-1){a=d+c|0;H[a-4>>2]=16;f=a-16|0;H[f>>2]=16;b=H[6856];if(b){e=H[b+8>>2]}else{e=0}c:{d:{if((e|0)==(d|0)){e=H[d-4>>2]&-2;g=d-e|0;h=H[g-4>>2];H[b+8>>2]=a;b=h&-2;a=g-b|0;if(H[(a+H[a>>2]|0)-4>>2]&1){f=H[a+4>>2];g=H[a+8>>2];H[f+8>>2]=g;H[g+4>>2]=f;b=(b+(c+e|0)|0)-16|0;H[a>>2]=b;break c}a=d-16|0;break d}H[d>>2]=16;H[d+8>>2]=a;H[d+4>>2]=b;H[d+12>>2]=16;H[6856]=d;a=d+16|0}b=f-a|0;H[a>>2]=b}H[((b&-4)+a|0)-4>>2]=b|1;c=H[a>>2]-8|0;e:{if(c>>>0<=127){b=(c>>>3|0)-1|0;break e}e=Q(c);b=((c>>>29-e^4)-(e<<2)|0)+110|0;if(c>>>0<=4095){break e}b=((c>>>30-e^2)-(e<<1)|0)+71|0;b=b>>>0>=63?63:b}c=b<<4;H[a+4>>2]=c+26400;c=c+26408|0;H[a+8>>2]=H[c>>2];H[c>>2]=a;H[H[a+8>>2]+4>>2]=a;c=H[6859];a=b&31;if((b&63)>>>0>=32){b=1<<a;e=0}else{e=1<<a;b=e-1&1>>>32-a}H[6858]=e|H[6858];H[6859]=b|c}return(d|0)!=-1}function Ec(a,b){var c=0,d=0,e=0,f=0,g=0;H[b>>2]=H[a>>2];H[b+4>>2]=H[a+4>>2];H[b+8>>2]=H[a+8>>2];H[b+12>>2]=H[a+12>>2];c=H[b+24>>2];if(c){d=H[b+16>>2];if(d){c=0;while(1){f=H[(H[b+24>>2]+N(c,52)|0)+44>>2];if(f){Ca(f);d=H[b+16>>2]}c=c+1|0;if(d>>>0>c>>>0){continue}break}c=H[b+24>>2]}Ca(c);H[b+24>>2]=0}c=H[a+16>>2];H[b+16>>2]=c;c=Fa(N(c,52));H[b+24>>2]=c;if(c){if(H[b+16>>2]){f=0;while(1){g=N(f,52);d=g+c|0;c=H[a+24>>2]+g|0;H[d+48>>2]=H[c+48>>2];e=H[c+44>>2];H[d+40>>2]=H[c+40>>2];H[d+44>>2]=e;e=H[c+36>>2];H[d+32>>2]=H[c+32>>2];H[d+36>>2]=e;e=H[c+28>>2];H[d+24>>2]=H[c+24>>2];H[d+28>>2]=e;e=H[c+20>>2];H[d+16>>2]=H[c+16>>2];H[d+20>>2]=e;e=H[c+12>>2];H[d+8>>2]=H[c+8>>2];H[d+12>>2]=e;e=H[c+4>>2];H[d>>2]=H[c>>2];H[d+4>>2]=e;c=H[b+24>>2];H[(g+c|0)+44>>2]=0;f=f+1|0;if(f>>>0<K[b+16>>2]){continue}break}}H[b+20>>2]=H[a+20>>2];c=H[a+32>>2];H[b+32>>2]=c;a:{if(c){c=Fa(c);H[b+28>>2]=c;if(!c){H[b+28>>2]=0;H[b+32>>2]=0;return}b=H[a+32>>2];if(!b){break a}B(c,H[a+28>>2],b);return}H[b+28>>2]=0}return}H[b+16>>2]=0;H[b+24>>2]=0}function mb(a,b,c,d,e,f){var g=0,h=O(0),i=0,j=O(0);g=(c<<6)+b|0;b=c?g+-64|0:a;i=d>>>0<e>>>0?d:e;if(i>>>0>c>>>0){h=L[b>>2];while(1){a=b;b=g;g=b-32|0;j=h;h=L[b>>2];L[g>>2]=O(O(j+h)*f)+L[g>>2];g=b-28|0;L[g>>2]=O(O(L[a+4>>2]+L[b+4>>2])*f)+L[g>>2];g=b-24|0;L[g>>2]=O(O(L[a+8>>2]+L[b+8>>2])*f)+L[g>>2];g=b-20|0;L[g>>2]=O(O(L[a+12>>2]+L[b+12>>2])*f)+L[g>>2];g=b-16|0;L[g>>2]=O(O(L[a+16>>2]+L[b+16>>2])*f)+L[g>>2];g=b-12|0;L[g>>2]=O(O(L[a+20>>2]+L[b+20>>2])*f)+L[g>>2];g=b-8|0;L[g>>2]=O(O(L[a+24>>2]+L[b+24>>2])*f)+L[g>>2];g=b-4|0;L[g>>2]=O(O(L[a+28>>2]+L[b+28>>2])*f)+L[g>>2];g=b- -64|0;c=c+1|0;if((i|0)!=(c|0)){continue}break}}if(d>>>0>e>>>0){a=g-32|0;f=O(f+f);L[a>>2]=O(L[b>>2]*f)+L[a>>2];a=g-28|0;L[a>>2]=O(L[b+4>>2]*f)+L[a>>2];a=g-24|0;L[a>>2]=O(L[b+8>>2]*f)+L[a>>2];a=g-20|0;L[a>>2]=O(L[b+12>>2]*f)+L[a>>2];a=g-16|0;L[a>>2]=O(L[b+16>>2]*f)+L[a>>2];a=g-12|0;L[a>>2]=O(L[b+20>>2]*f)+L[a>>2];a=g-8|0;L[a>>2]=O(L[b+24>>2]*f)+L[a>>2];a=g-4|0;L[a>>2]=O(L[b+28>>2]*f)+L[a>>2]}}function $c(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;if(K[a+44>>2]>=8){e=H[a+36>>2];n=e<<5;o=N(e,28);p=N(e,24);q=N(e,20);r=e<<4;i=N(e,12);j=e<<3;g=H[a+40>>2];k=8;while(1){zb(a,g,H[a+36>>2],8);Ta(a);h=H[a+32>>2];if(h){f=H[a>>2];b=0;a:{if((h|0)!=1){s=h&1;t=h&-2;l=0;while(1){c=(b<<2)+g|0;d=f+(b<<5)|0;L[c>>2]=L[d>>2];m=e<<2;L[c+m>>2]=L[d+4>>2];L[c+j>>2]=L[d+8>>2];L[c+i>>2]=L[d+12>>2];d=b|1;c=(d<<2)+g|0;d=f+(d<<5)|0;L[c>>2]=L[d>>2];L[c+m>>2]=L[d+4>>2];L[c+j>>2]=L[d+8>>2];L[c+i>>2]=L[d+12>>2];b=b+2|0;l=l+2|0;if((t|0)!=(l|0)){continue}break}if(!s){break a}}c=(b<<2)+g|0;b=f+(b<<5)|0;L[c>>2]=L[b>>2];L[c+(e<<2)>>2]=L[b+4>>2];L[c+j>>2]=L[b+8>>2];L[c+i>>2]=L[b+12>>2]}d=H[a>>2];b=0;while(1){f=(b<<2)+g|0;c=d+(b<<5)|0;L[f+r>>2]=L[c+16>>2];L[f+q>>2]=L[c+20>>2];L[f+p>>2]=L[c+24>>2];L[f+o>>2]=L[c+28>>2];b=b+1|0;if((h|0)!=(b|0)){continue}break}}g=g+n|0;k=k+8|0;if(k>>>0<=K[a+44>>2]){continue}break}}Ca(H[a>>2]);Ca(a)}function wd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=na-16|0;na=f;a:{if(H[a+120>>2]|c>>>0<3){break a}Da(b,f+12|0,2);k=J[f+12>>1];if(k-1025>>>0<=4294966271){H[f>>2]=k;Ba(d,1,3526,f);break a}Da(b+2|0,f+12|0,1);i=J[f+12>>1];if(!i){Ba(d,1,3174,0);break a}if(i+3>>>0>c>>>0){break a}h=Fa(N(i,k)<<2);if(!h){break a}j=Fa(i);if(!j){Ca(h);break a}l=Fa(i);if(!l){Ca(h);Ca(j);break a}g=Fa(20);if(!g){Ca(h);Ca(j);Ca(l);break a}d=b+3|0;H[g+8>>2]=j;H[g+4>>2]=l;G[g+16>>1]=k;H[g>>2]=h;m=H[f+12>>2];H[g+12>>2]=0;F[g+18|0]=m;H[a+120>>2]=g;while(1){Da(d,f+12|0,1);F[e+j|0]=(I[f+12|0]&127)+1;F[e+l|0]=(H[f+12>>2]&128)>>>7;d=d+1|0;e=e+1|0;if((i|0)!=(e|0)){continue}break}g=0;while(1){e=0;a=0;while(1){e=I[e+j|0]+7>>>3|0;e=e>>>0>=4?4:e;if((e+(d-b|0)|0)>(c|0)){e=0;break a}Da(d,f+12|0,e);H[h>>2]=H[f+12>>2];h=h+4|0;d=d+e|0;a=a+1|0;e=a&65535;if(i>>>0>e>>>0){continue}break}e=1;g=g+1|0;if((g&65535)>>>0<k>>>0){continue}break}}na=f+16|0;return e|0}function od(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=-1;e=-1;if(!(I[a+68|0]&8)){f=H[a+32>>2];H[a+36>>2]=f;a:{b:{c:{e=H[a+48>>2];if(e){while(1){e=ra[H[a+20>>2]](f,e,H[a>>2])|0;if((e|0)==-1){break c}f=e+H[a+36>>2]|0;H[a+36>>2]=f;e=H[a+48>>2]-e|0;H[a+48>>2]=e;if(e){continue}break}f=H[a+32>>2]}H[a+36>>2]=f;if(!!b&(c|0)>=0|(c|0)>0){break b}f=0;e=0;break a}H[a+68>>2]=H[a+68>>2]|8;Ba(d,4,15604,0);H[a+48>>2]=0;H[a+68>>2]=H[a+68>>2]|8;qa=-1;return-1}f=0;e=0;while(1){g=ra[H[a+24>>2]](b,c,H[a>>2])|0;h=qa;i=h;if((g&h)==-1){Ba(d,4,15589,0);H[a+68>>2]=H[a+68>>2]|8;b=e+H[a+60>>2]|0;c=f+H[a+56>>2]|0;b=c>>>0<f>>>0?b+1|0:b;H[a+56>>2]=c;H[a+60>>2]=b;a=!(e|f);b=a?-1:f;qa=a?-1:e;return b|0}e=e+i|0;f=f+g|0;e=f>>>0<g>>>0?e+1|0:e;h=b;b=b-g|0;c=c-(i+(g>>>0>h>>>0)|0)|0;if(!!b&(c|0)>=0|(c|0)>0){continue}break}}b=e+H[a+60>>2]|0;c=f+H[a+56>>2]|0;b=c>>>0<f>>>0?b+1|0:b;H[a+56>>2]=c;H[a+60>>2]=b}qa=e;return f|0}function xc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;b=a;a:{if(b&3){while(1){c=I[b|0];if(!c|(c|0)==61){break a}b=b+1|0;if(b&3){continue}break}}b:{c:{d=H[b>>2];if(((d|16843008-d)&-2139062144)!=-2139062144){break c}while(1){c=d^1027423549;if(((16843008-c|c)&-2139062144)!=-2139062144){break c}d=H[b+4>>2];c=b+4|0;b=c;if(((16843008-d|d)&-2139062144)==-2139062144){continue}break}break b}c=b}while(1){b=c;d=I[b|0];if(!d){break a}c=b+1|0;if((d|0)!=61){continue}break}}if((a|0)==(b|0)){return 0}g=b-a|0;d:{if(I[g+a|0]){break d}f=H[6860];if(!f){break d}b=H[f>>2];if(!b){break d}while(1){e:{d=a;c=b;h=g;e=0;f:{if(!g){break f}e=I[d|0];if(e){g:{while(1){i=I[c|0];if((i|0)!=(e|0)|!i){break g}h=h-1|0;if(!h){break g}c=c+1|0;e=I[d+1|0];d=d+1|0;if(e){continue}break}e=0}}else{e=0}e=e-I[c|0]|0}if(!e){b=b+g|0;if(I[b|0]==61){break e}}b=H[f+4>>2];f=f+4|0;if(b){continue}break d}break}j=b+1|0}return j}function be(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;g=na-16|0;na=g;a:{if(c>>>0<=1){Ba(d,1,3983,0);a=0;break a}if(F[a+212|0]&1){Ba(d,1,12668,0);a=0;break a}a=H[a+180>>2]+N(H[a+228>>2],5644)|0;F[a+5640|0]=I[a+5640|0]|2;Da(b,g+12|0,1);e=H[a+5164>>2];b:{if(!e){f=H[g+12>>2]+1|0;e=Ea(f,8);H[a+5164>>2]=e;if(!e){Ba(d,1,4009,0);a=0;break a}H[a+5160>>2]=f;break b}f=H[g+12>>2];if(f>>>0<K[a+5160>>2]){break b}h=e;e=f+1|0;f=Ha(h,e<<3);if(!f){Ba(d,1,4009,0);a=0;break a}H[a+5164>>2]=f;h=H[a+5160>>2];i=e-h<<3;if(i){y(f+(h<<3)|0,0,i)}H[a+5160>>2]=e;e=H[a+5164>>2]}h=e;e=H[g+12>>2];if(H[h+(e<<3)>>2]){H[g>>2]=e;Ba(d,1,7063,g);a=0;break a}c=c-1|0;e=Fa(c);a=H[a+5164>>2];f=a+(H[g+12>>2]<<3)|0;H[f>>2]=e;if(!e){Ba(d,1,4009,0);a=0;break a}H[f+4>>2]=c;if(c){B(H[a+(H[g+12>>2]<<3)>>2],b+1|0,c)}a=1}na=g+16|0;return a|0}function Cb(a,b,c){var d=0,e=0,f=0,g=0;e=a+4|0;d=(e+b|0)-1&0-b;b=H[a>>2];if(d+c>>>0<=(b+a|0)-4>>>0){f=H[a+4>>2];g=H[a+8>>2];H[f+8>>2]=g;H[g+4>>2]=f;if((d|0)!=(e|0)){d=d-e|0;f=a-(H[a-4>>2]&-2)|0;e=d+H[f>>2]|0;H[f>>2]=e;H[(f+(e&-4)|0)-4>>2]=e;a=a+d|0;b=b-d|0;H[a>>2]=b}a:{if(c+24>>>0<=b>>>0){e=a+c|0;b=(b-c|0)-8|0;H[e+8>>2]=b;g=e+8|0;H[(g+(b&-4)|0)-4>>2]=b|1;d=H[e+8>>2]-8|0;b:{if(d>>>0<=127){b=(d>>>3|0)-1|0;break b}f=Q(d);b=((d>>>29-f^4)-(f<<2)|0)+110|0;if(d>>>0<=4095){break b}b=((d>>>30-f^2)-(f<<1)|0)+71|0;b=b>>>0>=63?63:b}d=b<<4;H[e+12>>2]=d+26400;d=d+26408|0;H[e+16>>2]=H[d>>2];H[d>>2]=g;H[H[e+16>>2]+4>>2]=g;d=H[6858];f=H[6859];e=b&31;if((b&63)>>>0>=32){b=1<<e;g=0}else{g=1<<e;b=g-1&1>>>32-e}H[6858]=g|d;H[6859]=b|f;b=c+8|0;H[a>>2]=b;c=(b&-4)+a|0;break a}c=a+b|0}H[c-4>>2]=b;a=a+4|0}else{a=0}return a}function he(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;g=na-16|0;na=g;i=H[H[a+96>>2]+16>>2];h=i>>>0<257?1:2;e=(h<<1)+5|0;f=(c>>>0)/(e>>>0)|0;a:{if(!((N(e,f)|0)==(c|0)&c>>>0>=e>>>0)){Ba(d,1,4643,0);a=0;break a}if(H[a+8>>2]==16){e=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{e=H[a+12>>2]}a=0;c=I[e+5640|0];a=c&4?H[e+420>>2]+1|0:a;f=f+a|0;if(f>>>0>=32){H[g>>2]=f;Ba(d,1,7781,g);a=0;break a}F[e+5640|0]=c|4;if(a>>>0<f>>>0){c=(e+N(a,148)|0)+424|0;while(1){Da(b,c,1);b=b+1|0;Da(b,c+4|0,h);b=b+h|0;Da(b,c+8|0,2);d=H[c+8>>2];j=H[e+8>>2];H[c+8>>2]=d>>>0<j>>>0?d:j;Da(b+2|0,c+12|0,1);b=b+3|0;Da(b,c+16|0,h);b=b+h|0;Da(b,g+12|0,1);H[c+36>>2]=H[g+12>>2];d=H[c+16>>2];H[c+16>>2]=d>>>0<i>>>0?d:i;c=c+148|0;b=b+1|0;a=a+1|0;if((f|0)!=(a|0)){continue}break}}H[e+420>>2]=f-1;a=1}na=g+16|0;return a|0}function jb(a){var b=0,c=0,d=0,e=0;a:{if(!a){break a}b=H[a+5164>>2];if(b){c=H[a+5160>>2];if(c){b=0;while(1){d=H[H[a+5164>>2]+(b<<3)>>2];if(d){Ca(d);c=H[a+5160>>2]}b=b+1|0;if(c>>>0>b>>>0){continue}break}b=H[a+5164>>2]}H[a+5160>>2]=0;Ca(b);H[a+5164>>2]=0}b=H[a+5172>>2];if(b){Ca(b);H[a+5172>>2]=0}b=H[a+5584>>2];if(b){Ca(b);H[a+5584>>2]=0}b=H[a+5612>>2];if(b){Ca(b);H[a+5612>>2]=0}b=H[a+5608>>2];if(b){Ca(b);H[a+5608>>2]=0}b=H[a+5628>>2];if(b){Ca(b);H[a+5636>>2]=0;H[a+5628>>2]=0;H[a+5632>>2]=0}b=H[a+5616>>2];if(b){e=H[a+5620>>2];if(e){c=0;while(1){d=H[b+12>>2];if(d){Ca(d);H[b+12>>2]=0;e=H[a+5620>>2]}b=b+20|0;c=c+1|0;if(e>>>0>c>>>0){continue}break}b=H[a+5616>>2]}Ca(b);H[a+5616>>2]=0}b=H[a+5604>>2];if(b){Ca(b);H[a+5604>>2]=0}b=H[a+5596>>2];if(!b){break a}Ca(b);H[a+5596>>2]=0;H[a+5600>>2]=0}}function zd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=na-32|0;na=e;a:{if(H[a+72>>2]){Ba(d,2,7015,0);c=1;break a}if((c|0)!=14){c=0;Ba(d,1,14445,0);break a}Da(b,a+16|0,4);Da(b+4|0,a+12|0,4);Da(b+8|0,a+20|0,2);f=H[a+12>>2];b:{g=H[a+16>>2];c=H[a+20>>2];c:{if(!g){break c}c=H[a+20>>2];if(!f){break c}if(c){break b}c=0}H[e+8>>2]=c;H[e+4>>2]=g;H[e>>2]=f;Ba(d,1,14289,e);c=0;break a}if(c>>>0>=16385){c=0;Ba(d,1,14203,0);break a}c=Ea(c,12);H[a+72>>2]=c;if(!c){c=0;Ba(d,1,14240,0);break a}c=1;Da(b+10|0,a+24|0,1);Da(b+11|0,a+28|0,1);f=H[a+28>>2];if((f|0)!=7){H[e+16>>2]=f;Ba(d,4,16272,e+16|0)}Da(b+12|0,a+32|0,1);Da(b+13|0,a+36|0,1);b=H[a>>2];F[b+212|0]=I[b+212|0]&251|(H[a+24>>2]==255?4:0);b=H[a>>2];H[b+240>>2]=H[a+12>>2];H[b+244>>2]=H[a+16>>2];F[a+133|0]=1}na=e+32|0;return c|0}function qc(a,b,c,d){a:{switch(b-9|0){case 0:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=H[b>>2];return;case 6:b=H[c>>2];H[c>>2]=b+4;b=G[b>>1];H[a>>2]=b;H[a+4>>2]=b>>31;return;case 7:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=J[b>>1];H[a+4>>2]=0;return;case 8:b=H[c>>2];H[c>>2]=b+4;b=F[b|0];H[a>>2]=b;H[a+4>>2]=b>>31;return;case 9:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=I[b|0];H[a+4>>2]=0;return;case 16:b=H[c>>2]+7&-8;H[c>>2]=b+8;M[a>>3]=M[b>>3];return;case 17:ra[d|0](a,c);default:return;case 1:case 4:case 14:b=H[c>>2];H[c>>2]=b+4;b=H[b>>2];H[a>>2]=b;H[a+4>>2]=b>>31;return;case 2:case 5:case 11:case 15:b=H[c>>2];H[c>>2]=b+4;H[a>>2]=H[b>>2];H[a+4>>2]=0;return;case 3:case 10:case 12:case 13:break a}}b=H[c>>2]+7&-8;H[c>>2]=b+8;c=H[b+4>>2];H[a>>2]=H[b>>2];H[a+4>>2]=c}function ce(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;g=na-16|0;na=g;a:{if(c>>>0<=1){Ba(d,1,4311,0);a=0;break a}F[a+212|0]=I[a+212|0]|1;Da(b,g+12|0,1);e=H[a+140>>2];b:{if(!e){f=H[g+12>>2]+1|0;e=Ea(f,8);H[a+140>>2]=e;if(!e){Ba(d,1,4337,0);a=0;break a}H[a+136>>2]=f;break b}f=H[g+12>>2];if(f>>>0<K[a+136>>2]){break b}h=e;e=f+1|0;f=Ha(h,e<<3);if(!f){Ba(d,1,4337,0);a=0;break a}H[a+140>>2]=f;h=H[a+136>>2];i=e-h<<3;if(i){y(f+(h<<3)|0,0,i)}H[a+136>>2]=e;e=H[a+140>>2]}h=e;e=H[g+12>>2];if(H[h+(e<<3)>>2]){H[g>>2]=e;Ba(d,1,7085,g);a=0;break a}c=c-1|0;e=Fa(c);a=H[a+140>>2];f=a+(H[g+12>>2]<<3)|0;H[f>>2]=e;if(!e){Ba(d,1,4337,0);a=0;break a}H[f+4>>2]=c;if(c){B(H[a+(H[g+12>>2]<<3)>>2],b+1|0,c)}a=1}na=g+16|0;return a|0}function cd(a,b){a=a|0;b=+b;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;c=a<<3;i=c+28640|0;d=M[c+28672>>3];if(d!=0){e=M[i>>3];g=S(e,b);b=g-e;if(b<0x10000000000000000&b>=0){f=~~b>>>0;if(P(b)>=1){c=~~(b>0?R(T(b*2.3283064365386963e-10),4294967295):U((b-+(~~b>>>0>>>0))*2.3283064365386963e-10))>>>0}else{c=0}}else{c=0}if(d<0x10000000000000000&d>=0){j=~~d>>>0;if(P(d)>=1){h=~~(d>0?R(T(d*2.3283064365386963e-10),4294967295):U((d-+(~~d>>>0>>>0))*2.3283064365386963e-10))>>>0}else{h=0}}else{h=0}c=ve(f,c,j,h);f=qa;c=c+1|0;f=c?f:f+1|0;e=(+(c>>>0)+ +(f>>>0)*4294967296)*d+e;g=e-g}M[i>>3]=e;fa(a|0,+g)|0;c=(a|0)==2?27:(a|0)==1?26:14;a=c-1|0;a:{if(H[6892]>>>a&1){H[6894]=H[6894]|1<<a;break a}a=H[(c<<2)+25312>>2];if(a){ra[a|0](c)}}}function jd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=na-32|0;na=d;e=H[a+28>>2];H[d+16>>2]=e;f=H[a+20>>2];H[d+28>>2]=c;H[d+24>>2]=b;b=f-e|0;H[d+20>>2]=b;f=b+c|0;i=2;b=d+16|0;a:{while(1){b:{c:{d:{if(!yc(Z(H[a+60>>2],b|0,i|0,d+12|0)|0)){g=H[d+12>>2];if((g|0)==(f|0)){break d}if((g|0)>=0){break c}break b}if((f|0)!=-1){break b}}b=H[a+44>>2];H[a+28>>2]=b;H[a+20>>2]=b;H[a+16>>2]=b+H[a+48>>2];a=c;break a}h=H[b+4>>2];j=h>>>0<g>>>0;e=(j?8:0)+b|0;h=g-(j?h:0)|0;H[e>>2]=h+H[e>>2];b=(j?12:4)+b|0;H[b>>2]=H[b>>2]-h;f=f-g|0;i=i-j|0;b=e;continue}break}H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;H[a>>2]=H[a>>2]|32;a=0;if((i|0)==2){break a}a=c-H[b+4>>2]|0}na=d+32|0;return a|0}function Ca(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;if(a){b=a-4|0;f=H[b>>2];c=f;d=b;e=H[a-8>>2];a=e&-2;if((a|0)!=(e|0)){d=b-a|0;c=H[d+4>>2];e=H[d+8>>2];H[c+8>>2]=e;H[e+4>>2]=c;c=a+f|0}a=b+f|0;b=H[a>>2];if((b|0)!=H[(a+b|0)-4>>2]){f=H[a+4>>2];a=H[a+8>>2];H[f+8>>2]=a;H[a+4>>2]=f;c=b+c|0}H[d>>2]=c;H[((c&-4)+d|0)-4>>2]=c|1;b=H[d>>2]-8|0;a:{if(b>>>0<=127){a=(b>>>3|0)-1|0;break a}c=Q(b);a=((b>>>29-c^4)-(c<<2)|0)+110|0;if(b>>>0<=4095){break a}a=((b>>>30-c^2)-(c<<1)|0)+71|0;a=a>>>0>=63?63:a}b=a<<4;H[d+4>>2]=b+26400;b=b+26408|0;H[d+8>>2]=H[b>>2];H[b>>2]=d;H[H[d+8>>2]+4>>2]=d;b=H[6858];c=H[6859];d=a&31;if((a&63)>>>0>=32){a=1<<d;e=0}else{e=1<<d;a=e-1&1>>>32-d}H[6858]=e|b;H[6859]=a|c}}function td(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=na-16|0;na=e;a:{if(H[a+116>>2]){break a}if(c>>>0<=1){Ba(d,1,8882,0);break a}Da(b,e+12|0,2);f=H[e+12>>2];h=f&65535;if(!h){Ba(d,1,8915,0);break a}if(N(h,6)+2>>>0>c>>>0){Ba(d,1,8882,0);break a}d=Fa(N(f,6));if(!d){break a}c=Fa(8);H[a+116>>2]=c;if(!c){Ca(d);break a}H[c>>2]=d;f=c;c=J[e+12>>1];G[f+4>>1]=c;if(!c){g=1;break a}c=0;while(1){g=e+12|0;Da(b+2|0,g,2);f=d+N(c,6)|0;G[f>>1]=H[e+12>>2];Da(b+4|0,g,2);G[f+2>>1]=H[e+12>>2];b=b+6|0;Da(b,g,2);G[f+4>>1]=H[e+12>>2];g=1;c=c+1|0;if(c>>>0<J[H[a+116>>2]+4>>1]){continue}break}}na=e+16|0;return g|0}function Lb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;g=na-32|0;na=g;f=H[a+96>>2];a:{if(!f){Ba(d,1,13752,0);e=0;break a}f=Ea(4,H[f+16>>2]);e=0;if(!f){break a}if(b){j=H[a+96>>2];while(1){b:{e=H[(h<<2)+c>>2];c:{if(e>>>0>=K[j+16>>2]){H[g+16>>2]=e;Ba(d,1,2443,g+16|0);break c}i=f+(e<<2)|0;if(!H[i>>2]){break b}H[g>>2]=e;Ba(d,1,3487,g)}Ca(f);e=0;break a}H[i>>2]=1;h=h+1|0;if((h|0)!=(b|0)){continue}break}}Ca(f);Ca(H[a+64>>2]);d:{if(b){d=b<<2;e=Fa(d);H[a+64>>2]=e;if(!e){H[a+60>>2]=0;e=0;break a}if(!d){break d}B(e,c,d);break d}H[a+64>>2]=0}H[a+60>>2]=b;e=1}na=g+32|0;return e|0}function Fc(a){a=a|0;var b=0,c=0;if(a){wb(H[a>>2]);H[a>>2]=0;b=H[a+72>>2];if(b){Ca(b);H[a+72>>2]=0}b=H[a+68>>2];if(b){Ca(b);H[a+68>>2]=0}b=H[a+108>>2];if(b){Ca(b);H[a+108>>2]=0}b=H[a+116>>2];if(b){c=H[b>>2];if(c){Ca(c);b=H[a+116>>2];H[b>>2]=0}Ca(b);H[a+116>>2]=0}b=H[a+120>>2];if(b){c=H[b+12>>2];if(c){Ca(c);b=H[a+120>>2];H[b+12>>2]=0}c=H[b+4>>2];if(c){Ca(c);b=H[a+120>>2];H[b+4>>2]=0}c=H[b+8>>2];if(c){Ca(c);b=H[a+120>>2];H[b+8>>2]=0}c=H[b>>2];if(c){Ca(c);b=H[a+120>>2];H[b>>2]=0}Ca(b);H[a+120>>2]=0}b=H[a+4>>2];if(b){pb(b);H[a+4>>2]=0}b=H[a+8>>2];if(b){pb(b);H[a+8>>2]=0}Ca(a)}}function Jb(){var a=0,b=0,c=0;a:{a=Ea(1,256);if(a){H[a>>2]=1;H[a+208>>2]=1;F[a+212|0]=I[a+212|0]|6;b=Ea(1,5644);H[a+12>>2]=b;if(!b){break a}b=Ea(1,1e3);H[a+16>>2]=b;if(!b){break a}H[a+48>>2]=0;H[a+52>>2]=0;H[a+44>>2]=-1;H[a+20>>2]=1e3;b:{c=Ea(1,48);if(c){H[c+24>>2]=0;H[c+32>>2]=100;b=Ea(100,24);H[c+28>>2]=b;if(b){break b}Ca(c)}H[a+224>>2]=0;break a}H[c+40>>2]=0;H[a+224>>2]=c;b=qb();H[a+220>>2]=b;if(!b){break a}b=qb();H[a+216>>2]=b;if(!b){break a}c:{if(!xc(1419)){break c}}b=jc();H[a+236>>2]=b;if(!b){b=jc();H[a+236>>2]=b;if(!b){break a}}}else{a=0}return a}wb(a);return 0}function tb(a,b,c,d,e,f){var g=0,h=0,i=0,j=0,k=0,l=0;g=na-240|0;na=g;H[g+236>>2]=c;H[g+232>>2]=b;H[g>>2]=a;l=!e;a:{b:{c:{d:{if((b|0)!=1){h=a;i=1;break d}h=a;i=1;if(c){break d}e=a;break c}while(1){j=(d<<2)+f|0;e=h-H[j>>2]|0;if((Ic(e,a)|0)<=0){e=h;break c}k=l^-1;l=1;e:{if(!((k|(d|0)<2)&1)){j=H[j-8>>2];k=h-8|0;if((Ic(k,e)|0)>=0){break e}if((Ic(k-j|0,e)|0)>=0){break e}}H[(i<<2)+g>>2]=e;b=wc(b,c);ub(g+232|0,b);i=i+1|0;d=b+d|0;h=e;c=H[g+236>>2];b=H[g+232>>2];if(c|(b|0)!=1){continue}break b}break}e=h;break b}if(!l){break a}}vc(g,i);Bb(e,d,f)}na=g+240|0}function me(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=na-16|0;na=e;if(H[a+8>>2]==16){g=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{g=H[a+12>>2]}h=H[a+96>>2];f=K[h+16>>2]<257?1:2;a:{if(f>>>0>=c>>>0){c=0;Ba(d,1,4669,0);break a}H[e+12>>2]=(f^-1)+c;Da(b,e+8|0,f);i=H[e+8>>2];if(i>>>0>=K[h+16>>2]){c=0;Ba(d,1,14067,0);break a}c=1;b=b+f|0;Da(b,H[g+5584>>2]+N(i,1080)|0,1);if(!Lc(a,H[e+8>>2],b+1|0,e+12|0,d)){c=0;Ba(d,1,4669,0);break a}if(!H[e+12>>2]){break a}c=0;Ba(d,1,4669,0)}na=e+16|0;return c|0}function Gc(a,b){var c=0,d=0,e=0,f=0,g=0;f=na-32|0;na=f;c=H[a+60>>2];a:{b:{if(c){g=1;while(1){e=H[H[a+64>>2]+(d<<2)>>2];if(!H[(H[H[a+100>>2]+24>>2]+N(e,52)|0)+44>>2]){H[f+16>>2]=e;Ba(b,2,7604,f+16|0);g=0;c=H[a+60>>2]}d=d+1|0;if(c>>>0>d>>>0){continue}break}break b}g=1;c=H[a+100>>2];e=1;if(!H[c+16>>2]){break a}while(1){if(!H[(H[c+24>>2]+N(d,52)|0)+44>>2]){H[f>>2]=d;Ba(b,2,7604,f);g=0;c=H[a+100>>2]}d=d+1|0;if(d>>>0<K[c+16>>2]){continue}break}}e=1;if(g){break a}Ba(b,1,2897,0);e=0}na=f+32|0;return e}function vd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;f=na-16|0;na=f;e=H[a+120>>2];a:{if(!e){Ba(d,1,8836,0);c=0;break a}if(H[e+12>>2]){Ba(d,1,11598,0);c=0;break a}e=I[e+18|0];g=e<<2;if(g>>>0>c>>>0){Ba(d,1,8803,0);c=0;break a}g=Fa(g);c=0;if(!g){break a}if(e){d=0;while(1){c=f+12|0;Da(b,c,2);h=g+(d<<2)|0;G[h>>1]=H[f+12>>2];Da(b+2|0,c,1);F[h+2|0]=H[f+12>>2];Da(b+3|0,c,1);F[h+3|0]=H[f+12>>2];b=b+4|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}}H[H[a+120>>2]+12>>2]=g;c=1}na=f+16|0;return c|0}function Zd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=na-16|0;na=e;g=H[H[a+96>>2]+16>>2];a:{if((g+2|0)!=(c|0)){Ba(d,1,4617,0);break a}Da(b,e+12|0,2);if(H[e+12>>2]!=(g|0)){Ba(d,1,4617,0);break a}if(!g){f=1;break a}c=b+2|0;a=H[H[a+96>>2]+24>>2];b=0;while(1){Da(c,e+8|0,1);f=H[e+8>>2];h=f&127;i=h+1|0;H[a+24>>2]=i;H[a+32>>2]=f>>>7&1;if(h>>>0>=31){H[e+4>>2]=i;H[e>>2]=b;Ba(d,1,15402,e);f=0;break a}a=a+52|0;f=1;c=c+1|0;b=b+1|0;if((g|0)!=(b|0)){continue}break}}na=e+16|0;return f|0}function tc(a,b,c,d,e){var f=0,g=0;f=na-208|0;na=f;H[f+204>>2]=c;c=f+160|0;y(c,0,40);H[f+200>>2]=H[f+204>>2];if((sc(0,b,f+200|0,f+80|0,c,d,e)|0)>=0){c=H[a>>2];H[a>>2]=c&-33;a:{b:{c:{if(!H[a+48>>2]){H[a+48>>2]=80;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0;g=H[a+44>>2];H[a+44>>2]=f;break c}if(H[a+16>>2]){break b}}if(Db(a)){break a}}sc(a,b,f+200|0,f+80|0,f+160|0,d,e)}if(g){ra[H[a+36>>2]](a,0,0)|0;H[a+48>>2]=0;H[a+44>>2]=g;H[a+28>>2]=0;H[a+16>>2]=0;H[a+20>>2]=0}H[a>>2]=H[a>>2]|c&32}na=f+208|0}function je(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;e=na-16|0;na=e;a:{b:{h=e+8|0;c:{if(K[H[a+96>>2]+16>>2]<=256){if(c){f=-1;g=1;break c}Ba(d,1,4695,0);a=0;break a}if(c>>>0<=1){break b}f=-2;g=2}Da(b,h,g);H[e+12>>2]=c+f;c=H[e+8>>2];f=H[H[a+96>>2]+16>>2];if(c>>>0>=f>>>0){H[e+4>>2]=f;H[e>>2]=c;Ba(d,1,7712,e);a=0;break a}if(!Kc(a,c,b+g|0,e+12|0,d)){Ba(d,1,4695,0);a=0;break a}a=1;if(!H[e+12>>2]){break a}Ba(d,1,4695,0);a=0;break a}Ba(d,1,4695,0);a=0}na=e+16|0;return a|0}function Ed(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=H[a+32>>2];H[a+36>>2]=f;a:{e=H[a+48>>2];if(e){while(1){e=ra[H[a+20>>2]](f,e,H[a>>2])|0;if((e|0)==-1){break a}f=e+H[a+36>>2]|0;H[a+36>>2]=f;e=H[a+48>>2]-e|0;H[a+48>>2]=e;if(e){continue}break}f=H[a+32>>2]}H[a+48>>2]=0;H[a+36>>2]=f;if(!(ra[H[a+28>>2]](b,c,H[a>>2])|0)){H[a+68>>2]=H[a+68>>2]|8;return 0}H[a+56>>2]=b;H[a+60>>2]=c;return 1}H[a+68>>2]=H[a+68>>2]|8;Ba(d,4,15604,0);H[a+68>>2]=H[a+68>>2]|8;return 0}function Ba(a,b,c,d){var e=0,f=0;e=na-528|0;na=e;a:{if(!a){break a}b:{c:{switch(b-1|0){case 0:b=a+12|0;break b;case 1:b=a+16|0;a=a+4|0;break b;case 3:break c;default:break a}}b=a+20|0;a=a+8|0}b=H[b>>2];if(!b|!c){break a}f=H[a>>2];y(e,0,512);H[e+524>>2]=d;a=na-160|0;na=a;H[a+148>>2]=e;H[a+152>>2]=511;y(a,0,144);H[a+76>>2]=-1;H[a+36>>2]=105;H[a+80>>2]=-1;H[a+44>>2]=a+159;H[a+84>>2]=a+148;F[e|0]=0;tc(a,c,d,103,104);na=a+160|0;F[e+511|0]=0;ra[b|0](e,f)}na=e+528|0}function fc(a){var b=0,c=0,d=0;a:{if(!a){break a}b=H[a+8>>2];if(!b){break a}c=b&3;a=H[a+12>>2];if(b>>>0>=4){d=b&-4;b=0;while(1){H[a+60>>2]=0;H[a+52>>2]=999;H[a+56>>2]=0;H[a+44>>2]=0;H[a+36>>2]=999;H[a+40>>2]=0;H[a+28>>2]=0;H[a+20>>2]=999;H[a+24>>2]=0;H[a+12>>2]=0;H[a+4>>2]=999;H[a+8>>2]=0;a=a- -64|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}if(!c){break a}}b=0;while(1){H[a+12>>2]=0;H[a+4>>2]=999;H[a+8>>2]=0;a=a+16|0;b=b+1|0;if((c|0)!=(b|0)){continue}break}}}function Bd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;if(H[a+100>>2]!=1){Ba(d,1,11401,0);return 0}a:{if(c>>>0<=7){break a}Da(b,a+56|0,4);Da(b+4|0,a+60|0,4);if(c&3){break a}c=c-8|0;e=c>>>2|0;H[a+64>>2]=e;b:{if(!c){break b}c=Ea(e,4);H[a+68>>2]=c;if(!c){Ba(d,1,2235,0);return 0}if(!H[a+64>>2]){break b}d=b+8|0;c=0;while(1){Da(d,H[a+68>>2]+(c<<2)|0,4);d=d+4|0;c=c+1|0;if(c>>>0<K[a+64>>2]){continue}break}}H[a+100>>2]=H[a+100>>2]|2;return 1}Ba(d,1,5955,0);return 0}function ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=na-16|0;na=e;H[e+12>>2]=c;a:{if(!(!Kc(a,0,b,e+12|0,d)|H[e+12>>2])){if(H[a+8>>2]==16){b=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{b=H[a+12>>2]}f=1;if(K[H[a+96>>2]+16>>2]<2){break a}c=H[b+5584>>2];g=c+28|0;b=1;d=c;while(1){H[d+1104>>2]=H[c+24>>2];H[d+1884>>2]=H[c+804>>2];B(d+1108|0,g,776);d=d+1080|0;b=b+1|0;if(b>>>0<K[H[a+96>>2]+16>>2]){continue}break}break a}Ba(d,1,4591,0)}na=e+16|0;return f|0}function dc(a,b,c,d){var e=0,f=0,g=0;f=na-128|0;na=f;e=f;b=H[b+12>>2]+(c<<4)|0;c=H[b>>2];if(c){while(1){H[e>>2]=b;e=e+4|0;b=c;c=H[c>>2];if(c){continue}break}}while(1){c=H[b+8>>2];if((g|0)>(c|0)){H[b+8>>2]=g;c=g}a:{if((c|0)>=(d|0)){break a}while(1){if(H[b+4>>2]<=(c|0)){break a}b:{if(Ra(a,1)){H[b+4>>2]=c;break b}c=c+1|0}if((c|0)<(d|0)){continue}break}}H[b+8>>2]=c;if((e|0)!=(f|0)){e=e-4|0;b=H[e>>2];g=c;continue}break}na=f+128|0;return H[b+4>>2]<(d|0)}function Ld(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{if(!Wa(H[a+8>>2],54,c)){break a}h=H[a+8>>2];d=H[h>>2];f=H[h+8>>2];b:{if(d){e=1;c:{if((d|0)!=1){j=d&1;d=d&-2;while(1){g=0;d:{if(!e){break d}g=0;if(!(ra[H[f>>2]](a,b,c)|0)){break d}g=(ra[H[f+4>>2]](a,b,c)|0)!=0}e=g;f=f+8|0;i=i+2|0;if((d|0)!=(i|0)){continue}break}if(!j){break c}}if(!e){e=0;break c}e=(ra[H[f>>2]](a,b,c)|0)!=0}Pa(h);if(!e){break a}break b}Pa(h)}k=1}return k|0}function le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=na-16|0;na=e;g=H[H[a+96>>2]+16>>2];f=g>>>0<257?1:2;a:{if((f+2|0)!=(c|0)){a=0;Ba(d,1,4285,0);break a}if(H[a+8>>2]==16){c=H[a+180>>2]+N(H[a+228>>2],5644)|0}else{c=H[a+12>>2]}Da(b,e+12|0,f);a=1;b=b+f|0;Da(b,e+8|0,1);f=H[e+12>>2];if(f>>>0>=g>>>0){H[e+4>>2]=g;H[e>>2]=f;Ba(d,1,14923,e);a=0;break a}Da(b+1|0,(H[c+5584>>2]+N(f,1080)|0)+808|0,1)}na=e+16|0;return a|0}function qe(){var a=0,b=0,c=0;while(1){b=a<<4;c=b+26400|0;H[b+26404>>2]=c;H[b+26408>>2]=c;a=a+1|0;if((a|0)!=64){continue}break}zc(48);a=na-16|0;na=a;a:{if(la(a+12|0,a+8|0)|0){break a}b=vb((H[a+12>>2]<<2)+4|0);H[6860]=b;if(!b){break a}b=vb(H[a+8>>2]);if(b){c=H[6860];H[c+(H[a+12>>2]<<2)>>2]=0;if(!(ka(c|0,b|0)|0)){break a}}H[6860]=0}na=a+16|0;H[6875]=8192;H[6873]=94240;H[6867]=42;H[6874]=65536}function ye(a,b,c){var d=0,e=0,f=0,g=0;g=c&63;f=g;e=f&31;if(f>>>0>=32){f=-1>>>e|0}else{d=-1>>>e|0;f=d|(1<<e)-1<<32-e}f=f&a;d=b&d;e=g&31;if(g>>>0>=32){d=f<<e;g=0}else{d=(1<<e)-1&f>>>32-e|d<<e;g=f<<e}f=d;e=0-c&63;d=e&31;if(e>>>0>=32){d=-1<<d;c=0}else{c=-1<<d;d=c|(1<<d)-1&-1>>>32-d}a=c&a;b=b&d;d=e&31;if(e>>>0>=32){c=0;a=b>>>d|0}else{c=b>>>d|0;a=((1<<d)-1&b)<<32-d|a>>>d}a=a|g;qa=c|f;return a}+function eb(a,b,c){var d=0;if(!H[a+12>>2]){ra[b|0](c,H[a+36>>2]);return}d=Fa(8);a:{if(!d){break a}H[d+4>>2]=c;H[d>>2]=b;b=Fa(8);if(!b){Ca(d);return}H[b>>2]=d;c=N(H[a+4>>2],100);H[a+40>>2]=c;while(1){if((c|0)<H[a+24>>2]){continue}break}H[b+4>>2]=H[a+20>>2];H[a+20>>2]=b;H[a+24>>2]=H[a+24>>2]+1;b=H[a+28>>2];if(!b){break a}H[H[b>>2]+8>>2]=0;H[a+28>>2]=H[b+4>>2];H[a+32>>2]=H[a+32>>2]-1;Ca(b)}}function Mc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;H[a+184>>2]=b;d=H[a+96>>2];a:{if(!d){break a}f=H[d+24>>2];if(!f){break a}e=H[a+12>>2];if(!e|!H[e+5584>>2]){break a}e=H[d+16>>2];if(!e){return 1}d=0;while(1){if(K[(H[H[a+12>>2]+5584>>2]+N(d,1080)|0)+4>>2]<=b>>>0){Ba(c,1,9177,0);return 0}H[(N(d,52)+f|0)+40>>2]=b;g=1;d=d+1|0;if((e|0)!=(d|0)){continue}break}}return g|0}function Ac(a,b,c){var d=0,e=0,f=0;a:{d=H[c+16>>2];if(!d){if(Db(c)){break a}d=H[c+16>>2]}e=H[c+20>>2];if(d-e>>>0<b>>>0){ra[H[c+36>>2]](c,a,b)|0;return}b:{c:{if(!b|H[c+80>>2]<0){break c}d=b;while(1){f=a+d|0;if(I[f-1|0]!=10){d=d-1|0;if(d){continue}break c}break}if(ra[H[c+36>>2]](c,a,d)>>>0<d>>>0){break a}b=b-d|0;e=H[c+20>>2];break b}f=a}ab(e,f,b);H[c+20>>2]=H[c+20>>2]+b}}function Bc(a){var b=0,c=0;b=H[a+76>>2];if(!((b|0)>=0&(!b|H[6867]!=(b&1073741823)))){a:{if(H[a+80>>2]==10){break a}b=H[a+20>>2];if((b|0)==H[a+16>>2]){break a}H[a+20>>2]=b+1;F[b|0]=10;return}Cc(a);return}b=a+76|0;c=H[b>>2];H[b>>2]=c?c:1073741823;b:{c:{if(H[a+80>>2]==10){break c}c=H[a+20>>2];if((c|0)==H[a+16>>2]){break c}H[a+20>>2]=c+1;F[c|0]=10;break b}Cc(a)}H[b>>2]=0}function Ka(a,b,c,d,e,f,g,h){var i=0,j=0;i=+O(e-a|0);j=i*1.402;if(P(j)<2147483647){e=~~j}else{e=-2147483648}e=e+c|0;H[f>>2]=(e|0)>=0?(b|0)>(e|0)?e:b:0;j=+O(d-a|0);i=j*.344+i*.714;if(P(i)<2147483647){a=~~i}else{a=-2147483648}a=c-a|0;H[g>>2]=(a|0)>=0?(a|0)<(b|0)?a:b:0;i=j*1.772;if(P(i)<2147483647){a=~~i}else{a=-2147483648}a=a+c|0;H[h>>2]=(a|0)>=0?(a|0)<(b|0)?a:b:0}function yb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;if(a){c=H[a+4>>2];if(c){Ca(c);H[a+4>>2]=0}if(b){c=a;while(1){d=H[c+200>>2];if(d){e=0;f=H[c+196>>2];if(f){while(1){g=H[d+12>>2];if(g){Ca(g);H[d+12>>2]=0;f=H[c+196>>2]}d=d+16|0;e=e+1|0;if(e>>>0<f>>>0){continue}break}d=H[c+200>>2]}Ca(d);H[c+200>>2]=0}c=c+240|0;h=h+1|0;if((h|0)!=(b|0)){continue}break}}Ca(a)}}function dd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=H[a+84>>2];f=H[e>>2];d=H[e+4>>2];h=H[a+28>>2];g=H[a+20>>2]-h|0;g=d>>>0<g>>>0?d:g;if(g){ab(f,h,g);f=g+H[e>>2]|0;H[e>>2]=f;d=H[e+4>>2]-g|0;H[e+4>>2]=d}d=c>>>0>d>>>0?d:c;if(d){ab(f,b,d);f=d+H[e>>2]|0;H[e>>2]=f;H[e+4>>2]=H[e+4>>2]-d}F[f|0]=0;b=H[a+44>>2];H[a+28>>2]=b;H[a+20>>2]=b;return c|0}function rd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;e=H[c+8>>2];d=e>>>0<=1?1:e;f=H[c+4>>2];g=f-H[c>>2]|0;while(1){h=d;d=d<<1;if(h-g>>>0<b>>>0){continue}break}if((e|0)!=(h|0)){d=Fa(h);if(!d){return-1}e=H[c>>2];if(e){if(g){B(d,e,g)}Ca(H[c>>2])}H[c+8>>2]=h;H[c>>2]=d;f=d+g|0;H[c+4>>2]=f}if(b){B(f,a,b)}H[c+4>>2]=H[c+4>>2]+b;return b|0}function Yb(a){H[a+100>>2]=20832;H[a+96>>2]=20832;H[a+92>>2]=20832;H[a+88>>2]=20832;H[a+84>>2]=20832;H[a+80>>2]=20832;H[a+76>>2]=20832;H[a+72>>2]=20832;H[a+68>>2]=20832;H[a+64>>2]=20832;H[a+60>>2]=20832;H[a+56>>2]=20832;H[a+52>>2]=20832;H[a+48>>2]=20832;H[a+44>>2]=20832;H[a+40>>2]=20832;H[a+36>>2]=20832;H[a+32>>2]=20832;H[a+28>>2]=20832}function Ra(a,b){var c=0,d=0,e=0,f=0;if((b|0)<=0){return 0}c=H[a+12>>2];d=H[a+16>>2];while(1){e=b;a:{if(d){break a}c=c<<8&65280;H[a+12>>2]=c;d=(c|0)==65280?7:8;H[a+16>>2]=d;b=H[a+8>>2];if(b>>>0>=K[a+4>>2]){break a}H[a+8>>2]=b+1;c=I[b|0]|c;H[a+12>>2]=c}d=d-1|0;H[a+16>>2]=d;b=e-1|0;f=(c>>>d&1)<<b|f;if(e>>>0>1){continue}break}return f}function xd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;f=na-16|0;na=f;e=H[a+24>>2];if((e|0)!=255){H[f>>2]=e;Ba(d,2,2678,f)}a:{b:{if(H[a+20>>2]==(c|0)){if(c){break b}e=1;break a}e=0;Ba(d,1,14510,0);break a}c=0;while(1){e=1;Da(b,(H[a+72>>2]+N(c,12)|0)+8|0,1);b=b+1|0;c=c+1|0;if(c>>>0<K[a+20>>2]){continue}break}}na=f+16|0;return e|0}function Da(a,b,c){var d=0,e=0;H[b>>2]=0;a:{if(!c){break a}d=c&3;b=b+c|0;if(c>>>0>=4){e=c&-4;c=0;while(1){F[b-1|0]=I[a|0];F[b-2|0]=I[a+1|0];F[b-3|0]=I[a+2|0];b=b-4|0;F[b|0]=I[a+3|0];a=a+4|0;c=c+4|0;if((e|0)!=(c|0)){continue}break}if(!d){break a}}c=0;while(1){b=b-1|0;F[b|0]=I[a|0];a=a+1|0;c=c+1|0;if((d|0)!=(c|0)){continue}break}}}function de(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=na-16|0;na=e;a:{if(!c){Ba(d,1,4106,0);a=0;break a}Da(b,e+12|0,1);f=c-1|0;a=1;if(!f){break a}a=0;c=0;while(1){b=b+1|0;Da(b,e+8|0,1);g=H[e+8>>2];c=g<<24>>31&(g&127|c)<<7;a=a+1|0;if((f|0)!=(a|0)){continue}break}a=1;if(!c){break a}Ba(d,1,4106,0);a=0}na=e+16|0;return a|0}function bc(a,b,c,d){var e=0,f=0,g=O(0),h=0,i=O(0),j=0,k=O(0);if(d){while(1){e=f<<2;h=e+b|0;i=L[h>>2];j=a+e|0;g=L[j>>2];e=c+e|0;k=L[e>>2];L[j>>2]=O(k*O(1.4019999504089355))+g;L[h>>2]=O(g+O(i*O(-.3441300094127655)))+O(k*O(-.714139997959137));L[e>>2]=g+O(i*O(1.7719999551773071));f=f+1|0;if((f|0)!=(d|0)){continue}break}}}function Bb(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;f=na-240|0;na=f;H[f>>2]=a;g=1;a:{if((b|0)<2){break a}d=a;while(1){d=d-8|0;h=b-2|0;e=d-H[(h<<2)+c>>2]|0;if((Ic(a,e)|0)>=0){if((Ic(a,d)|0)>=0){break a}}i=e;e=(Ic(e,d)|0)>=0;d=e?i:d;H[(g<<2)+f>>2]=d;g=g+1|0;b=e?b-1|0:h;if((b|0)>1){continue}break}}vc(f,g);na=f+240|0}function vc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=8;f=na-256|0;na=f;if((b|0)>=2){h=(b<<2)+a|0;H[h>>2]=f;while(1){e=c>>>0>=256?256:c;ab(H[h>>2],H[a>>2],e);d=0;while(1){g=(d<<2)+a|0;d=d+1|0;ab(H[g>>2],H[(d<<2)+a>>2],e);H[g>>2]=H[g>>2]+e;if((b|0)!=(d|0)){continue}break}c=c-e|0;if(c){continue}break}}na=f+256|0}function Wc(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+24>>2];if(b){c=H[a+28>>2];e=(c>>>0)/52|0;if(c>>>0>=52){while(1){c=H[b>>2];if(c){Ca(c-1|0);H[b>>2]=0}c=H[b+4>>2];if(c){Ca(c);H[b+4>>2]=0}c=H[b+8>>2];if(c){Ca(c);H[b+8>>2]=0}b=b+52|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}b=H[a+24>>2]}Ca(b);H[a+24>>2]=0}}function Xc(a){a=a|0;var b=0,c=0,d=0,e=0;b=H[a+24>>2];if(b){c=H[a+28>>2];e=(c>>>0)/68|0;if(c>>>0>=68){while(1){c=H[b>>2];if(c){Ca(c);H[b>>2]=0}c=H[b+4>>2];if(c){Ca(c);H[b+4>>2]=0}Ca(H[b+60>>2]);H[b+60>>2]=0;b=b+68|0;d=d+1|0;if((e|0)!=(d|0)){continue}break}b=H[a+24>>2]}Ca(b);H[a+24>>2]=0}}function ad(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a+32>>2];b=H[a+28>>2];d=b+8|0;if(c>>>0>=d>>>0){while(1){nb(a,H[a+24>>2]+(b<<2)|0,H[a+20>>2],8);c=H[a+32>>2];b=d;d=b+8|0;if(c>>>0>=d>>>0){continue}break}}if(b>>>0<c>>>0){nb(a,H[a+24>>2]+(b<<2)|0,H[a+20>>2],c-b|0)}Ca(H[a>>2]);Ca(a)}function Cd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=na-16|0;na=e;a:{if(H[a+100>>2]){Ba(d,1,11302,0);a=0;break a}if((c|0)!=4){Ba(d,1,5991,0);a=0;break a}Da(b,e+12|0,4);if(H[e+12>>2]!=218793738){Ba(d,1,5007,0);a=0;break a}H[a+100>>2]=H[a+100>>2]|1;a=1}na=e+16|0;return a|0}function Wa(a,b,c){var d=0,e=0;a:{d=H[a>>2];e=H[a+4>>2];b:{if((d|0)!=(e|0)){e=H[a+8>>2];break b}d=e+10|0;H[a+4>>2]=d;e=Ha(H[a+8>>2],d<<2);if(!e){break a}H[a+8>>2]=e;d=H[a>>2]}H[(d<<2)+e>>2]=b;H[a>>2]=d+1;return 1}Ca(H[a+8>>2]);H[a>>2]=0;H[a+4>>2]=0;Ba(c,1,6123,0);return 0}function $a(a,b,c){var d=0,e=0,f=0,g=0;if((b|0)==1|b>>>0>1){while(1){d=a;e=b;c=c-1|0;a=ve(a,b,10,0);b=qa;f=c,g=re(a,b,246)+d|48,F[f|0]=g;if(e>>>0>9){continue}break}}if(a|b){while(1){c=c-1|0;b=(a>>>0)/10|0;F[c|0]=N(b,246)+a|48;d=a>>>0>9;a=b;if(d){continue}break}}return c}function Cc(a){var b=0,c=0,d=0;c=na-16|0;na=c;F[c+15|0]=10;b=H[a+16>>2];a:{if(!b){if(Db(a)){break a}b=H[a+16>>2]}d=b;b=H[a+20>>2];if(!((d|0)==(b|0)|H[a+80>>2]==10)){H[a+20>>2]=b+1;F[b|0]=10;break a}if((ra[H[a+36>>2]](a,c+15|0,1)|0)!=1){break a}}na=c+16|0}function rc(a){var b=0,c=0,d=0,e=0,f=0;d=H[a>>2];b=F[d|0]-48|0;if(b>>>0>9){return 0}while(1){e=-1;if(c>>>0<=214748364){c=N(c,10);e=(c^2147483647)>>>0<b>>>0?-1:c+b|0}b=d+1|0;H[a>>2]=b;f=F[d+1|0];c=e;d=b;b=f-48|0;if(b>>>0<10){continue}break}return c}+function pc(a,b){var c=0,d=0,e=0;x(+a);d=s(1)|0;e=s(0)|0;c=d>>>20&2047;if((c|0)!=2047){if(!c){if(a==0){c=0}else{a=pc(a*0x10000000000000000,b);c=H[b>>2]+-64|0}H[b>>2]=c;return a}H[b>>2]=c-1022;u(0,e|0);u(1,d&-2146435073|1071644672);a=+w()}return a}function Qd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=O(0),f=0,g=0;d=na-16|0;na=d;if(c){while(1){Nc(a,d+12|0);e=L[d+12>>2];if(O(P(e))<O(2147483648)){f=~~e}else{f=-2147483648}H[b>>2]=f;b=b+4|0;a=a+4|0;g=g+1|0;if((g|0)!=(c|0)){continue}break}}na=d+16|0}function Ua(a){var b=0,c=0,d=0;if(a){b=H[a+24>>2];if(b){c=H[a+16>>2];if(c){b=0;while(1){d=H[(H[a+24>>2]+N(b,52)|0)+44>>2];if(d){Ca(d);c=H[a+16>>2]}b=b+1|0;if(c>>>0>b>>>0){continue}break}b=H[a+24>>2]}Ca(b)}b=H[a+28>>2];if(b){Ca(b)}Ca(a)}}function Pd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=na-16|0;na=d;if(c){while(1){Kb(a,d+8|0);e=M[d+8>>3];if(P(e)<2147483647){f=~~e}else{f=-2147483648}H[b>>2]=f;b=b+4|0;a=a+8|0;g=g+1|0;if((g|0)!=(c|0)){continue}break}}na=d+16|0}function qd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=H[c+4>>2];e=H[c>>2]+H[c+8>>2]|0;if((d|0)==(e|0)){qa=-1;return-1}H[c+4>>2]=a+d;f=a;c=e-d|0;d=c;e=a>>>0<c>>>0;a=c>>31;c=e&(a|0)>=(b|0)|(a|0)>(b|0);d=c?f:d;qa=c?b:a;return d|0}function ue(a,b,c,d){var e=0,f=0,g=0,h=0;f=b^d;g=f>>31;e=b>>31;a=a^e;h=a-e|0;e=(b^e)-((a>>>0<e>>>0)+e|0)|0;a=d>>31;b=c^a;f=f>>31;a=ve(h,e,b-a|0,(a^d)-((a>>>0>b>>>0)+a|0)|0)^f;b=a-f|0;qa=(g^qa)-((a>>>0<f>>>0)+g|0)|0;return b}function Va(a){var b=0,c=0,d=0,e=0;if(a){b=H[a+20>>2];c=H[a+16>>2];if(N(b,c)){while(1){e=H[H[a+24>>2]+(d<<2)>>2];if(e){Ca(e);c=H[a+16>>2];b=H[a+20>>2]}d=d+1|0;if(d>>>0<N(b,c)>>>0){continue}break}}Ca(H[a+24>>2]);Ca(a)}}function cc(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0;if(d){while(1){e=f<<2;g=e+a|0;h=c+e|0;i=H[h>>2];j=b+e|0;k=H[j>>2];e=H[g>>2]-(i+k>>2)|0;H[g>>2]=e+i;H[j>>2]=e;H[h>>2]=e+k;f=f+1|0;if((f|0)!=(d|0)){continue}break}}}function bb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;H[a+48>>2]=0;H[a+36>>2]=H[a+32>>2];e=ra[H[a+28>>2]](b,c,H[a>>2])|0;d=H[a+68>>2];if(!e){H[a+68>>2]=d|4;return 0}H[a+56>>2]=b;H[a+60>>2]=c;H[a+68>>2]=d&-5;return 1}function Na(a,b,c,d,e){var f=0;f=na-256|0;na=f;if(!(e&73728|(c|0)<=(d|0))){d=c-d|0;c=d>>>0<256;Dc(f,b,c?d:256);if(!c){while(1){La(a,f,256);d=d-256|0;if(d>>>0>255){continue}break}}La(a,f,d)}na=f+256|0}function re(a,b,c){var d=0,e=0,f=0,g=0,h=0;e=c>>>16|0;d=a>>>16|0;h=N(e,d);f=c&65535;a=a&65535;g=N(f,a);d=(g>>>16|0)+N(d,f)|0;a=(d&65535)+N(a,e)|0;qa=h+N(b,c)+(d>>>16)+(a>>>16)|0;return g&65535|a<<16}function Db(a){var b=0;b=H[a+72>>2];H[a+72>>2]=b-1|b;b=H[a>>2];if(b&8){H[a>>2]=b|32;return-1}H[a+4>>2]=0;H[a+8>>2]=0;b=H[a+44>>2];H[a+28>>2]=b;H[a+20>>2]=b;H[a+16>>2]=b+H[a+48>>2];return 0}function hc(a){var b=0,c=0;a:{if(I[a+12|0]==255){H[a+12>>2]=65280;H[a+16>>2]=7;b=H[a+8>>2];c=0;if(b>>>0>=K[a+4>>2]){break a}H[a+8>>2]=b+1;H[a+12>>2]=I[b|0]|65280}H[a+16>>2]=0;c=1}return c}function sd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;e=H[c+4>>2];d=H[c>>2]+H[c+8>>2]|0;if((e|0)==(d|0)){return-1}d=d-e|0;b=b>>>0>d>>>0?d:b;if(b){B(a,e,b)}H[c+4>>2]=b+H[c+4>>2];return b|0}function Ud(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=na-16|0;na=d;if(c){while(1){Nc(a,d+12|0);L[b>>2]=L[d+12>>2];b=b+4|0;a=a+4|0;e=e+1|0;if((e|0)!=(c|0)){continue}break}}na=d+16|0}function Td(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=na-16|0;na=d;if(c){while(1){Kb(a,d+8|0);L[b>>2]=M[d+8>>3];b=b+4|0;a=a+8|0;e=e+1|0;if((e|0)!=(c|0)){continue}break}}na=d+16|0}function bd(a,b){a=a|0;b=b|0;b=H[a+28>>2];if(b>>>0<K[a+32>>2]){while(1){$b(a,H[a+24>>2]+(N(H[a+20>>2],b)<<2)|0);b=b+1|0;if(b>>>0<K[a+32>>2]){continue}break}}Ca(H[a>>2]);Ca(a)}function Ic(a,b){a=a|0;b=b|0;var c=0,d=0;c=H[a>>2];d=H[b>>2];a=H[a+4>>2];b=H[b+4>>2];return(c>>>0>d>>>0&(a|0)>=(b|0)|(a|0)>(b|0))-(c>>>0<d>>>0&(a|0)<=(b|0)|(a|0)<(b|0))|0}function kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0;e=na-16|0;na=e;a=yc(ea(H[a+60>>2],b|0,c|0,d&255,e+8|0)|0);na=e+16|0;qa=a?-1:H[e+12>>2];return(a?-1:H[e+8>>2])|0}function mc(a,b,c,d){var e=0,f=0;e=na-16|0;na=e;if(c){while(1){Da(a,e+12|0,d);L[b>>2]=K[e+12>>2];b=b+4|0;a=a+d|0;f=f+1|0;if((f|0)!=(c|0)){continue}break}}na=e+16|0}function lc(a,b,c,d){var e=0,f=0;e=na-16|0;na=e;if(c){while(1){Da(a,e+12|0,d);H[b>>2]=H[e+12>>2];b=b+4|0;a=a+d|0;f=f+1|0;if((f|0)!=(c|0)){continue}break}}na=e+16|0}function Kb(a,b){F[b+7|0]=I[a|0];F[b+6|0]=I[a+1|0];F[b+5|0]=I[a+2|0];F[b+4|0]=I[a+3|0];F[b+3|0]=I[a+4|0];F[b+2|0]=I[a+5|0];F[b+1|0]=I[a+6|0];F[b|0]=I[a+7|0]}function Qa(a){var b=0,c=0,d=0,e=0;b=H[a+12>>2];e=b;c=H[a+8>>2];if(!(b|c)){qa=0;return 0}d=H[a+56>>2];b=c-d|0;qa=e-(H[a+60>>2]+(c>>>0<d>>>0)|0)|0;return b}function kc(a,b){var c=0;c=na-16|0;na=c;if(a){if(b&3){a=28}else{a=gb(b,a);H[c+12>>2]=a;a=a?0:48}a=a?0:H[c+12>>2]}else{a=0}na=c+16|0;return a}function Yc(a){a=a|0;var b=0;if(a){b=H[a+116>>2];if(b){Ca(b);H[a+116>>2]=0}b=H[a+120>>2];if(b){Ca(b);H[a+120>>2]=0}Ca(H[a+148>>2]);Ca(a)}}+function sb(a,b){var c=0,d=0;a:{if(b>>>0<=31){d=H[a>>2];c=a+4|0;break a}b=b-32|0;c=a}c=H[c>>2];H[a>>2]=d<<b;H[a+4>>2]=c<<b|d>>>32-b}function ub(a,b){var c=0,d=0;c=H[a+4>>2];a:{if(b>>>0<=31){d=H[a>>2];break a}b=b-32|0;d=c;c=0}H[a+4>>2]=c>>>b;H[a>>2]=c<<32-b|d>>>b}function ae(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(H[H[a+96>>2]+16>>2]<<2!=(c|0)){Ba(d,1,4464,0);a=0}else{a=1}return a|0}function jc(){var a=0,b=0;a=Ea(1,44);a:{if(a){H[a+16>>2]=0;b=Ea(1,8);H[a+36>>2]=b;if(b){break a}Ca(a)}a=0}return a}function Pb(a,b){a=a|0;b=b|0;if(!(!a|!b)){H[a+188>>2]=H[b+4>>2];H[a+184>>2]=H[b>>2];H[a+248>>2]=H[b+8248>>2]&2}}function qb(){var a=0,b=0;a=Ea(1,12);if(a){H[a+4>>2]=10;b=Ea(10,4);H[a+8>>2]=b;if(b){return a}Ca(a)}return 0}function Id(a,b,c,d,e,f,g,h,i,j,k){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;D()}function fb(a){var b=0;if(a){b=H[a+4>>2];if(b){ra[b|0](H[a>>2])}Ca(H[a+32>>2]);H[a+32>>2]=0;Ca(a)}}function Ob(a,b){a=a|0;b=b|0;a:{if(!a){break a}H[a+208>>2]=b;if(!b){break a}F[a+92|0]=I[a+92|0]|8}}function pd(a,b,c){a=a|0;b=b|0;c=c|0;b=H[c+8>>2];H[c+4>>2]=H[c>>2]+(a>>>0>b>>>0?b:a);return 1}function ee(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(c){a=1}else{Ba(d,1,4375,0);a=0}return a|0}function oc(a,b){if(!((b&-128)==57216|b>>>0<=127)){H[6597]=25;return-1}F[a|0]=b;return 1}function kb(a){H[a+16>>2]=0;H[a+20>>2]=0;H[a+8>>2]=0;H[a+12>>2]=0;H[a>>2]=0;H[a+4>>2]=0}function Uc(a,b,c){a=a|0;b=b|0;c=c|0;return!H[a+8>>2]&(H[a+216>>2]!=0&H[a+220>>2]!=0)}function Sa(a){if(H[a+12>>2]){H[a+40>>2]=0;while(1){if(H[a+24>>2]>0){continue}break}}}function Nc(a,b){F[b+3|0]=I[a|0];F[b+2|0]=I[a+1|0];F[b+1|0]=I[a+2|0];F[b|0]=I[a+3|0]}function hb(a){if(a){ra[H[(H[a+76>>2]?20:16)+a>>2]](H[a+48>>2]);H[a+48>>2]=0;Ca(a)}}function Nd(a,b){a=a|0;b=b|0;Pb(H[a>>2],b);F[a+124|0]=0;H[a+128>>2]=H[b+8248>>2]&1}function Ea(a,b){if(!a|!b){a=0}else{b=N(a,b);a=gb(8,b);if(a){Dc(a,0,b)}}return a}function Ga(a,b,c){var d=0;d=na-16|0;na=d;H[d+12>>2]=c;tc(a,b,c,0,0);na=d+16|0}function xe(a){var b=0;while(1){if(a){a=a-1&a;b=b+1|0;continue}break}return b}function _a(a){var b=0;if(a){b=H[a+12>>2];if(b){Ca(b);H[a+12>>2]=0}Ca(a)}}function Rc(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;D()}function Gd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Lb(H[a>>2],b,c,d)|0}function Hd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;D()}function wc(a,b){a=uc(a-1|0);if(!a){a=uc(b);a=a?a|32:0}return a}function Qb(a){return H[a+12>>2]==H[a+4>>2]|H[a+8>>2]==H[a>>2]}function Dd(a,b,c){a=a|0;b=b|0;c=c|0;return Mc(H[a>>2],b,c)|0}function uc(a){var b=0,c=0,d=0;return b=te(a),c=0,d=a,d?b:c}function pb(a){var b=0;if(a){b=H[a+8>>2];if(b){Ca(b)}Ca(a)}}function gd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;qa=0;return 0}function Za(a,b,c,d,e,f,g,h){return ac(a,b,c,d,e,f,g,h,0)}function Oc(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;D()}function nc(a,b,c,d){return ra[H[a+44>>2]](a,b,c,d)|0}function Xa(a,b,c){H[((b<<2)+a|0)+28>>2]=(c<<5)+20832}function Fb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 1}function Fd(a,b,c){a=a|0;b=b|0;c=c|0;Ib(H[a>>2],b,c)}function te(a){if(a){return 31-Q(a-1^a)|0}return 32}function rb(a,b,c){return ra[H[a+40>>2]](a,b,0,c)|0}function _d(a,b,c){a=a|0;b=b|0;c=c|0;qa=-1;return-1}function Oa(a,b,c,d,e,f,g,h){ac(a,b,c,d,e,f,g,h,1)}function yc(a){if(!a){return 0}H[6597]=a;return-1}function Wd(a,b,c){a=a|0;b=b|0;c=c|0;mc(a,b,c,2)}function Vd(a,b,c){a=a|0;b=b|0;c=c|0;mc(a,b,c,4)}function Sd(a,b,c){a=a|0;b=b|0;c=c|0;lc(a,b,c,2)}function Rd(a,b,c){a=a|0;b=b|0;c=c|0;lc(a,b,c,4)}function we(a,b,c){se(a,0,b,c);qa=pa;return oa}function La(a,b,c){if(!(I[a|0]&32)){Ac(b,c,a)}}function ie(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function Nb(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function Jc(a,b,c){a=a|0;b=b|0;c=c|0;return-1}function ve(a,b,c,d){a=se(a,b,c,d);return a}function Fa(a){if(!a){return 0}return vb(a)}function Md(a,b){a=a|0;b=b|0;Ob(H[a>>2],b)}function Dc(a,b,c){if(c){y(a,b<<24>>24,c)}}function ic(a){return H[a+8>>2]-H[a>>2]|0}function hd(a){a=a|0;ia();ha(a+128|0);D()}function vb(a){a=a|0;return gb(8,a)|0}function md(a,b){a=a|0;b=b|0;_(a|0)}function ld(a,b){a=a|0;b=b|0;Y(a|0)}function Ab(a){return H[a+28>>2]!=2}function ab(a,b,c){if(c){B(a,b,c)}}function Vc(a,b){a=a|0;b=b|0;D()}function ob(a){return kc(a,32)}function Ia(a){return kc(a,16)}function id(a){a=a|0;ja();D()}function Eb(){return Ea(1,36)}function Sb(a,b){a=a|0;b=b|0}function db(a){if(a){Ca(a)}}function Qc(a){a=a|0;D()}function Pa(a){H[a>>2]=0}+// EMSCRIPTEN_END_FUNCS+a=I;m(n);var ra=[null,Sb,ie,_d,Jc,Jc,bb,Ed,ud,od,bd,ad,$c,_c,Zc,Yc,Xc,Wc,Nb,Uc,Tc,Sc,Pc,Ic,pe,oe,ne,me,le,ke,je,he,ge,fe,ee,de,ce,be,ae,Fb,$d,Zd,Fb,Fb,Yd,Xd,Wd,Vd,Ud,Td,Sd,Rd,Qd,Pd,Kd,Cd,Bd,Ad,zd,yd,xd,wd,vd,td,sd,rd,qd,pd,Qc,Qc,Ib,Nb,Gb,Ob,Pb,wb,Mb,Vc,Lb,Mc,Oc,Rc,ib,cb,Qc,Qc,Fd,Ld,Od,Vc,Gd,Dd,Oc,Rc,Md,Nd,Fc,Hd,Id,Jd,Sb,md,ld,fd,ed,dd,hd,id,Qc,jd,kd,Qc,gd];function sa(){return E.byteLength>>16}function xa(ya){ya=ya|0;var ta=sa()|0;var ua=ta+ya|0;if(ta<ua&&ua<65536&&ua<=32768){var va=new ArrayBuffer(ua<<16);var wa=new Int8Array(va);wa.set(F);F=new Int8Array(va);G=new Int16Array(va);H=new Int32Array(va);I=new Uint8Array(va);J=new Uint16Array(va);K=new Uint32Array(va);L=new Float32Array(va);M=new Float64Array(va);E=va;a=I}return ta}return{r:Object.create(Object.prototype,{grow:{value:xa},buffer:{get:function(){return E}}}),s:qe,t:vb,u:Ca,v:nd,w:cd}}return za(Aa)}+// EMSCRIPTEN_END_ASM+++)(info)},instantiate:function(binary,info){return{then:function(ok){var module=new WebAssembly.Module(binary);ok({instance:new WebAssembly.Instance(module,info)})}}},RuntimeError:Error,isWasm2js:true};if(WebAssembly.isWasm2js){wasmBinary=[]}var ABORT=false;var EXITSTATUS;class EmscriptenEH{}class EmscriptenSjLj extends EmscriptenEH{}var readyPromiseResolve,readyPromiseReject;var runtimeInitialized=false;function updateMemoryViews(){var b=wasmMemory.buffer;HEAP8=new Int8Array(b);HEAP16=new Int16Array(b);HEAPU8=new Uint8Array(b);HEAPU16=new Uint16Array(b);HEAP32=new Int32Array(b);HEAPU32=new Uint32Array(b);HEAPF32=new Float32Array(b);HEAPF64=new Float64Array(b)}function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=true;wasmExports["s"]()}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(onPostRuns)}function abort(what){Module["onAbort"]?.(what);what=`Aborted(${what})`;err(what);ABORT=true;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject?.(e);throw e}var wasmBinaryFile;function findWasmBinary(file){}function getBinarySync(file){}function instantiateSync(file,info){var module;var binary=getBinarySync(file);module=new WebAssembly.Module(binary);var instance=new WebAssembly.Instance(module,info);return[instance,module]}function getWasmImports(){var imports={a:wasmImports};return imports}function createWasm(){function receiveInstance(instance,module){wasmExports=instance.exports;assignWasmExports(wasmExports);updateMemoryViews();return wasmExports}var info=getWasmImports();if(Module["instantiateWasm"]){return new Promise((resolve,reject)=>{Module["instantiateWasm"](info,(inst,mod)=>{resolve(receiveInstance(inst,mod))})})}wasmBinaryFile??=findWasmBinary();var result=instantiateSync(wasmBinaryFile,info);return receiveInstance(result[0])}class ExitStatus{name="ExitStatus";constructor(status){this.message=`Program terminated with exit(${status})`;this.status=status}}var HEAP16;var HEAP32;var HEAP8;var HEAPF32;var HEAPF64;var HEAPU16;var HEAPU32;var HEAPU8;var callRuntimeCallbacks=callbacks=>{while(callbacks.length>0){callbacks.shift()(Module)}};var onPostRuns=[];var addOnPostRun=cb=>onPostRuns.push(cb);var onPreRuns=[];var addOnPreRun=cb=>onPreRuns.push(cb);var noExitRuntime=true;var __abort_js=()=>abort("");var runtimeKeepaliveCounter=0;var __emscripten_runtime_keepalive_clear=()=>{noExitRuntime=false;runtimeKeepaliveCounter=0};var timers={};var handleException=e=>{if(e instanceof ExitStatus||e=="unwind"){return EXITSTATUS}quit_(1,e)};var keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0;var _proc_exit=code=>{EXITSTATUS=code;if(!keepRuntimeAlive()){Module["onExit"]?.(code);ABORT=true}quit_(code,new ExitStatus(code))};var exitJS=(status,implicit)=>{EXITSTATUS=status;_proc_exit(status)};var _exit=exitJS;var maybeExit=()=>{if(!keepRuntimeAlive()){try{_exit(EXITSTATUS)}catch(e){handleException(e)}}};var callUserCallback=func=>{if(ABORT){return}try{return func()}catch(e){handleException(e)}finally{maybeExit()}};var _emscripten_get_now=()=>performance.now();var __setitimer_js=(which,timeout_ms)=>{if(timers[which]){clearTimeout(timers[which].id);delete timers[which]}if(!timeout_ms)return 0;var id=setTimeout(()=>{delete timers[which];callUserCallback(()=>__emscripten_timeout(which,_emscripten_get_now()))},timeout_ms);timers[which]={id,timeout_ms};return 0};function _copy_pixels_1(compG_ptr,nb_pixels){compG_ptr>>=2;const imageData=Module.imageData=new Uint8ClampedArray(nb_pixels);const compG=HEAP32.subarray(compG_ptr,compG_ptr+nb_pixels);imageData.set(compG)}function _copy_pixels_3(compR_ptr,compG_ptr,compB_ptr,nb_pixels){compR_ptr>>=2;compG_ptr>>=2;compB_ptr>>=2;const imageData=Module.imageData=new Uint8ClampedArray(nb_pixels*3);const compR=HEAP32.subarray(compR_ptr,compR_ptr+nb_pixels);const compG=HEAP32.subarray(compG_ptr,compG_ptr+nb_pixels);const compB=HEAP32.subarray(compB_ptr,compB_ptr+nb_pixels);for(let i=0;i<nb_pixels;i++){imageData[3*i]=compR[i];imageData[3*i+1]=compG[i];imageData[3*i+2]=compB[i]}}function _copy_pixels_4(compR_ptr,compG_ptr,compB_ptr,compA_ptr,nb_pixels){compR_ptr>>=2;compG_ptr>>=2;compB_ptr>>=2;compA_ptr>>=2;const imageData=Module.imageData=new Uint8ClampedArray(nb_pixels*4);const compR=HEAP32.subarray(compR_ptr,compR_ptr+nb_pixels);const compG=HEAP32.subarray(compG_ptr,compG_ptr+nb_pixels);const compB=HEAP32.subarray(compB_ptr,compB_ptr+nb_pixels);const compA=HEAP32.subarray(compA_ptr,compA_ptr+nb_pixels);for(let i=0;i<nb_pixels;i++){imageData[4*i]=compR[i];imageData[4*i+1]=compG[i];imageData[4*i+2]=compB[i];imageData[4*i+3]=compA[i]}}var getHeapMax=()=>2147483648;var alignMemory=(size,alignment)=>Math.ceil(size/alignment)*alignment;var growMemory=size=>{var oldHeapSize=wasmMemory.buffer.byteLength;var pages=(size-oldHeapSize+65535)/65536|0;try{wasmMemory.grow(pages);updateMemoryViews();return 1}catch(e){}};var _emscripten_resize_heap=requestedSize=>{var oldSize=HEAPU8.length;requestedSize>>>=0;var maxHeapSize=getHeapMax();if(requestedSize>maxHeapSize){return false}for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignMemory(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=growMemory(newSize);if(replacement){return true}}return false};var ENV={};var getExecutableName=()=>thisProgram||"./this.program";var getEnvStrings=()=>{if(!getEnvStrings.strings){var lang=(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8";var env={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:lang,_:getExecutableName()};for(var x in ENV){if(ENV[x]===undefined)delete env[x];else env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(`${x}=${env[x]}`)}getEnvStrings.strings=strings}return getEnvStrings.strings};var stringToUTF8Array=(str,heap,outIdx,maxBytesToWrite)=>{if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.codePointAt(i);if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63;i++}}heap[outIdx]=0;return outIdx-startIdx};var stringToUTF8=(str,outPtr,maxBytesToWrite)=>stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite);var _environ_get=(__environ,environ_buf)=>{var bufSize=0;var envp=0;for(var string of getEnvStrings()){var ptr=environ_buf+bufSize;HEAPU32[__environ+envp>>2]=ptr;bufSize+=stringToUTF8(string,ptr,Infinity)+1;envp+=4}return 0};var lengthBytesUTF8=str=>{var len=0;for(var i=0;i<str.length;++i){var c=str.charCodeAt(i);if(c<=127){len++}else if(c<=2047){len+=2}else if(c>=55296&&c<=57343){len+=4;++i}else{len+=3}}return len};var _environ_sizes_get=(penviron_count,penviron_buf_size)=>{var strings=getEnvStrings();HEAPU32[penviron_count>>2]=strings.length;var bufSize=0;for(var string of strings){bufSize+=lengthBytesUTF8(string)+1}HEAPU32[penviron_buf_size>>2]=bufSize;return 0};var convertI32PairToI53Checked=(lo,hi)=>hi+2097152>>>0<4194305-!!lo?(lo>>>0)+hi*4294967296:NaN;function _fd_seek(fd,offset_low,offset_high,whence,newOffset){var offset=convertI32PairToI53Checked(offset_low,offset_high);return 70}var printCharBuffers=[null,[],[]];var UTF8Decoder=new TextDecoder;var findStringEnd=(heapOrArray,idx,maxBytesToRead,ignoreNul)=>{var maxIdx=idx+maxBytesToRead;if(ignoreNul)return maxIdx;while(heapOrArray[idx]&&!(idx>=maxIdx))++idx;return idx};var UTF8ArrayToString=(heapOrArray,idx=0,maxBytesToRead,ignoreNul)=>{var endPtr=findStringEnd(heapOrArray,idx,maxBytesToRead,ignoreNul);return UTF8Decoder.decode(heapOrArray.buffer?heapOrArray.subarray(idx,endPtr):new Uint8Array(heapOrArray.slice(idx,endPtr)))};var printChar=(stream,curr)=>{var buffer=printCharBuffers[stream];if(curr===0||curr===10){(stream===1?out:err)(UTF8ArrayToString(buffer));buffer.length=0}else{buffer.push(curr)}};var UTF8ToString=(ptr,maxBytesToRead,ignoreNul)=>{if(!ptr)return"";var end=findStringEnd(HEAPU8,ptr,maxBytesToRead,ignoreNul);return UTF8Decoder.decode(HEAPU8.subarray(ptr,end))};var _fd_write=(fd,iov,iovcnt,pnum)=>{var num=0;for(var i=0;i<iovcnt;i++){var ptr=HEAPU32[iov>>2];var len=HEAPU32[iov+4>>2];iov+=8;for(var j=0;j<len;j++){printChar(fd,HEAPU8[ptr+j])}num+=len}HEAPU32[pnum>>2]=num;return 0};function _gray_to_rgba(compG_ptr,nb_pixels){compG_ptr>>=2;const imageData=Module.imageData=new Uint8ClampedArray(nb_pixels*4);const compG=HEAP32.subarray(compG_ptr,compG_ptr+nb_pixels);for(let i=0;i<nb_pixels;i++){imageData[4*i]=imageData[4*i+1]=imageData[4*i+2]=compG[i];imageData[4*i+3]=255}}function _graya_to_rgba(compG_ptr,compA_ptr,nb_pixels){compG_ptr>>=2;compA_ptr>>=2;const imageData=Module.imageData=new Uint8ClampedArray(nb_pixels*4);const compG=HEAP32.subarray(compG_ptr,compG_ptr+nb_pixels);const compA=HEAP32.subarray(compA_ptr,compA_ptr+nb_pixels);for(let i=0;i<nb_pixels;i++){imageData[4*i]=imageData[4*i+1]=imageData[4*i+2]=compG[i];imageData[4*i+3]=compA[i]}}function _jsPrintWarning(message_ptr){const message=UTF8ToString(message_ptr);(Module.warn||console.warn)(`OpenJPEG: ${message}`)}function _rgb_to_rgba(compR_ptr,compG_ptr,compB_ptr,nb_pixels){compR_ptr>>=2;compG_ptr>>=2;compB_ptr>>=2;const imageData=Module.imageData=new Uint8ClampedArray(nb_pixels*4);const compR=HEAP32.subarray(compR_ptr,compR_ptr+nb_pixels);const compG=HEAP32.subarray(compG_ptr,compG_ptr+nb_pixels);const compB=HEAP32.subarray(compB_ptr,compB_ptr+nb_pixels);for(let i=0;i<nb_pixels;i++){imageData[4*i]=compR[i];imageData[4*i+1]=compG[i];imageData[4*i+2]=compB[i];imageData[4*i+3]=255}}function _storeErrorMessage(message_ptr){const message=UTF8ToString(message_ptr);if(!Module.errorMessages){Module.errorMessages=message}else{Module.errorMessages+="\n"+message}}var writeArrayToMemory=(array,buffer)=>{HEAP8.set(array,buffer)};{if(Module["noExitRuntime"])noExitRuntime=Module["noExitRuntime"];if(Module["print"])out=Module["print"];if(Module["printErr"])err=Module["printErr"];if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].shift()()}}}Module["writeArrayToMemory"]=writeArrayToMemory;var _malloc,_free,_jp2_decode,__emscripten_timeout,dynCall_iji,dynCall_jji,dynCall_iiji,dynCall_jiji,memory,__indirect_function_table,wasmMemory;function assignWasmExports(wasmExports){_malloc=Module["_malloc"]=wasmExports["t"];_free=Module["_free"]=wasmExports["u"];_jp2_decode=Module["_jp2_decode"]=wasmExports["v"];__emscripten_timeout=wasmExports["w"];dynCall_iji=wasmExports["dynCall_iji"];dynCall_jji=wasmExports["dynCall_jji"];dynCall_iiji=wasmExports["dynCall_iiji"];dynCall_jiji=wasmExports["dynCall_jiji"];memory=wasmMemory=wasmExports["r"];__indirect_function_table=wasmExports["__indirect_function_table"]}var wasmImports={n:__abort_js,m:__emscripten_runtime_keepalive_clear,j:__setitimer_js,f:_copy_pixels_1,e:_copy_pixels_3,d:_copy_pixels_4,k:_emscripten_resize_heap,o:_environ_get,p:_environ_sizes_get,i:_fd_seek,b:_fd_write,q:_gray_to_rgba,h:_graya_to_rgba,c:_jsPrintWarning,l:_proc_exit,g:_rgb_to_rgba,a:_storeErrorMessage};function run(){preRun();function doRun(){Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve?.(Module);Module["onRuntimeInitialized"]?.();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(()=>{setTimeout(()=>Module["setStatus"](""),1);doRun()},1)}else{doRun()}}var wasmExports;wasmExports=createWasm();run();if(runtimeInitialized){moduleRtn=Module}else{moduleRtn=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject})}+;return moduleRtn}export default OpenJPEG;diff --git a/mineru/resources/pdf_preview/vendor/pdfjs/wasm/qcms_bg.wasm b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/qcms_bg.wasmnew file mode 100644index 00000000..ea1d07bcBinary files /dev/null and b/mineru/resources/pdf_preview/vendor/pdfjs/wasm/qcms_bg.wasm differdiff --git a/mineru/resources/pdf_preview/viewer.css b/mineru/resources/pdf_preview/viewer.cssnew file mode 100644index 00000000..014c8cdd--- /dev/null+++ b/mineru/resources/pdf_preview/viewer.css@@ -0,0 +1,46 @@+:root { color-scheme: light dark; font-family: system-ui, sans-serif; font-size: 13px; --toolbar-height: 44px; }+* { box-sizing: border-box; }+html, body { height: 100%; margin: 0; overflow: hidden; }+body { background: #e5e7eb; color: #1f2937; }+#toolbar { height: var(--toolbar-height); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 8px; background: #f9fafb; border-bottom: 1px solid #d1d5db; }+button, input { height: 30px; border: 1px solid #d1d5db; border-radius: 5px; background: #fff; color: inherit; font: inherit; }+button { min-width: 30px; padding: 0 8px; cursor: pointer; }+button:hover:enabled { background: #f3f4f6; }+button:disabled, input:disabled { opacity: .45; cursor: default; }+button:focus-visible, input:focus-visible, #viewer-container:focus-visible { outline: 2px solid #f97316; outline-offset: -2px; }+#page { width: 52px; text-align: center; padding: 0 2px; appearance: textfield; }+#page::-webkit-inner-spin-button, #page::-webkit-outer-spin-button { appearance: none; }+#scale { min-width: 38px; text-align: center; }+#pages { min-width: 16px; }+.separator { width: 1px; height: 20px; background: #d1d5db; margin: 0 2px; }+#viewer-container { position: absolute; top: var(--toolbar-height); bottom: 0; left: 0; right: 0; overflow: auto; }+/* 页面使用完整可用宽度,只保留连续页之间的细小分隔,不裁切 PDF 自身的白边。 */+#viewer.pdfViewer { padding: 0; }+#viewer.pdfViewer.removePageBorders .page { margin: 0 auto 2px; }+#viewer.pdfViewer.removePageBorders .page:last-child { margin-bottom: 0; }+#status { position: absolute; z-index: 5; top: calc(var(--toolbar-height) + 10px); left: 10px; right: 10px; padding: 10px; border-radius: 6px; background: #f9fafb; text-align: center; }+#status:empty { display: none; }+.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }+/* 窄屏分成翻页和缩放两行,防止工具栏在嵌入后的实际宽度下被裁切。 */+@media (max-width: 360px) {+ :root { --toolbar-height: 76px; }+ #toolbar { display: grid; grid-template-columns: 30px minmax(44px, 1fr) 30px minmax(35px, 1fr) 30px; gap: 3px 5px; }+ #previous { grid-area: 1 / 1; }+ #toolbar > label { grid-area: 1 / 2; }+ #toolbar > span[aria-hidden] { grid-area: 1 / 3; text-align: center; }+ #pages { grid-area: 1 / 4; text-align: center; }+ #next { grid-area: 1 / 5; }+ .separator { display: none; }+ #zoom-out { grid-area: 2 / 1; }+ #scale { grid-area: 2 / 2; }+ #zoom-in { grid-area: 2 / 3; }+ #fit { grid-area: 2 / 4 / 3 / 6; }+ #page { width: 100%; }+}+@media (prefers-color-scheme: dark) {+ body { background: #111827; color: #e5e7eb; }+ #toolbar, #status { background: #1f2937; }+ button, input { background: #111827; border-color: #4b5563; }+ button:hover:enabled { background: #374151; }+ #toolbar { border-color: #4b5563; }+}diff --git a/mineru/resources/pdf_preview/viewer.html b/mineru/resources/pdf_preview/viewer.htmlnew file mode 100644index 00000000..ffe5abbe--- /dev/null+++ b/mineru/resources/pdf_preview/viewer.html@@ -0,0 +1,26 @@+<!doctype html>+<html lang="en">+<head>+ <meta charset="utf-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <title>PDF preview</title>+ <link rel="stylesheet" href="./vendor/pdfjs/legacy/web/pdf_viewer.css">+ <link rel="stylesheet" href="./viewer.css">+ <script type="module" src="./viewer.mjs"></script>+</head>+<body>+ <nav id="toolbar" aria-label="PDF" aria-busy="true">+ <button id="previous" type="button" disabled>‹</button>+ <label><span id="page-label" class="sr-only"></span><input id="page" type="number" min="1" value="1" disabled></label>+ <span aria-hidden="true">/</span><output id="pages">—</output>+ <button id="next" type="button" disabled>›</button>+ <span class="separator"></span>+ <button id="zoom-out" type="button" disabled>−</button>+ <output id="scale">—</output>+ <button id="zoom-in" type="button" disabled>+</button>+ <button id="fit" type="button" disabled></button>+ </nav>+ <div id="status" role="status" aria-live="polite"></div>+ <div id="viewer-container" tabindex="0"><div id="viewer" class="pdfViewer"></div></div>+</body>+</html>diff --git a/mineru/resources/pdf_preview/viewer.mjs b/mineru/resources/pdf_preview/viewer.mjsnew file mode 100644index 00000000..93dde5ba--- /dev/null+++ b/mineru/resources/pdf_preview/viewer.mjs@@ -0,0 +1,144 @@+// 查看器独立于宿主框架运行;PDF、字体和解码器只从同源的固定资源目录读取。+const params = new URLSearchParams(window.location.hash.slice(1));+const messages = JSON.parse(params.get("messages") || "{}");+const status = document.getElementById("status");+const container = document.getElementById("viewer-container");+const pageInput = document.getElementById("page");+const controls = Object.fromEntries(["previous", "next", "zoom-out", "zoom-in", "fit"].map((id) => [id, document.getElementById(id)]));+// 文案由 MinerU 的唯一词典传入,只写入文本节点与无副作用的无障碍属性。+const text = (name) => messages[name] || name;+document.title = text("preview");+document.getElementById("toolbar").setAttribute("aria-label", text("preview"));+document.getElementById("page-label").textContent = text("pdf_page");+for (const [id, name] of Object.entries({ previous: "pdf_previous", next: "pdf_next", "zoom-out": "pdf_zoom_out", "zoom-in": "pdf_zoom_in", fit: "pdf_fit_width" })) {+ controls[id].title = text(name);+ controls[id].setAttribute("aria-label", text(name));+}+controls.fit.textContent = text("pdf_fit_width");+status.textContent = text("pdf_loading");++let disposed = false;+let loadingTask;+let viewer;+let links;+let resizeObserver;+let resizeFrame;+let fitWidth = true;+let ready = false;++// 清除或换文件时释放渲染队列、worker 和观察器,旧页面不会向新预览写入结果。+const dispose = () => {+ disposed = true;+ cancelAnimationFrame(resizeFrame);+ resizeObserver?.disconnect();+ viewer?.setDocument(null);+ links?.setDocument(null);+ loadingTask?.destroy().catch(() => {});+};+window.addEventListener("pagehide", dispose, { once: true });++// 控件始终反映当前实际阅读页,缩放与翻页都只操作浏览器内的 PDF.js。+const updateControls = () => {+ if (disposed || !viewer || !ready) return;+ pageInput.disabled = false;+ pageInput.value = String(viewer.currentPageNumber);+ pageInput.max = String(viewer.pagesCount);+ document.getElementById("pages").textContent = String(viewer.pagesCount);+ document.getElementById("scale").textContent = `${Math.round(viewer.currentScale * 100)}%`;+ controls.previous.disabled = viewer.currentPageNumber <= 1;+ controls.next.disabled = viewer.currentPageNumber >= viewer.pagesCount;+ controls["zoom-out"].disabled = viewer.currentScale <= .25;+ controls["zoom-in"].disabled = viewer.currentScale >= 4;+ controls.fit.disabled = false;+};++// 首次加载和容器宽度变化时按可用宽度布局,保留 PDF.js 的可见页懒渲染与缓存回收。+const resize = () => {+ if (disposed || !viewer || !ready) return;+ if (fitWidth) viewer.currentScaleValue = "page-width";+ viewer.update();+ updateControls();+};++// 用显式边界处理跳页,空值或非整数输入恢复当前页,避免产生无效渲染任务。+const goToPage = (value) => {+ if (!ready || disposed) return;+ const page = Number(value);+ if (Number.isInteger(page) && page >= 1 && page <= viewer.pagesCount) viewer.currentPageNumber = page;+ updateControls();+};++// 在支持区间内调整比例,手动缩放后不被容器尺寸观察器覆盖。+const zoom = (delta) => {+ if (!ready || disposed) return;+ fitWidth = false;+ viewer.currentScaleValue = String(Math.min(4, Math.max(.25, viewer.currentScale + delta)));+ updateControls();+};++// 模块和 worker 使用同一份固定发行包,不启用 PDF 内嵌脚本、编辑或交互表单。+try {+ const source = new URL(params.get("file") || "", window.location.href);+ if (!params.get("file") || source.origin !== window.location.origin || !source.pathname.includes("/gradio_api/file=")) {+ throw new Error("Invalid PDF source");+ }+ const pdfjs = await import("./vendor/pdfjs/legacy/build/pdf.min.mjs");+ globalThis.pdfjsLib = pdfjs;+ const { EventBus, PDFViewer, PDFLinkService } = await import("./vendor/pdfjs/legacy/web/pdf_viewer.mjs");+ if (!disposed) {+ pdfjs.GlobalWorkerOptions.workerSrc = new URL("./vendor/pdfjs/legacy/build/pdf.worker.min.mjs", import.meta.url).href;+ const eventBus = new EventBus();+ links = new PDFLinkService({ eventBus, externalLinkEnabled: false });+ // 同步移除页面边框和适应宽度时的额外预留,避免左右再次产生固定空隙。+ viewer = new PDFViewer({ container, eventBus, linkService: links, textLayerMode: 0, annotationMode: 1, annotationEditorMode: -1, removePageBorders: true });+ links.setViewer(viewer);+ eventBus.on("pagesinit", () => {+ ready = true;+ document.getElementById("toolbar").setAttribute("aria-busy", "false");+ resize();+ });+ eventBus.on("pagechanging", updateControls);+ eventBus.on("scalechanging", updateControls);+ eventBus.on("pagerendered", (event) => {+ if (!disposed) {+ status.textContent = event.error ? text("pdf_load_failed") : "";+ document.body.dataset.rendered = event.error ? "error" : "true";+ }+ });+ controls.previous.addEventListener("click", () => goToPage(viewer.currentPageNumber - 1));+ controls.next.addEventListener("click", () => goToPage(viewer.currentPageNumber + 1));+ pageInput.addEventListener("change", () => goToPage(pageInput.value));+ pageInput.addEventListener("keydown", (event) => { if (event.key === "Enter") goToPage(pageInput.value); });+ controls["zoom-out"].addEventListener("click", () => zoom(-.25));+ controls["zoom-in"].addEventListener("click", () => zoom(.25));+ controls.fit.addEventListener("click", () => { fitWidth = true; resize(); });+ resizeObserver = new ResizeObserver(() => {+ cancelAnimationFrame(resizeFrame);+ resizeFrame = requestAnimationFrame(resize);+ });+ resizeObserver.observe(container);+ loadingTask = pdfjs.getDocument({+ url: source.href,+ withCredentials: true,+ cMapUrl: new URL("./vendor/pdfjs/cmaps/", import.meta.url).href,+ cMapPacked: true,+ standardFontDataUrl: new URL("./vendor/pdfjs/standard_fonts/", import.meta.url).href,+ wasmUrl: new URL("./vendor/pdfjs/wasm/", import.meta.url).href,+ isEvalSupported: false,+ enableXfa: false,+ });+ const pdf = await loadingTask.promise;+ if (!disposed) {+ viewer.setDocument(pdf);+ links.setDocument(pdf);+ }+ }+} catch (error) {+ if (!disposed) {+ const name = error?.name;+ status.textContent = text(name === "PasswordException" ? "pdf_password" : name === "InvalidPDFException" ? "pdf_invalid" : "pdf_load_failed");+ status.setAttribute("role", "alert");+ document.body.dataset.rendered = "error";+ document.getElementById("toolbar").setAttribute("aria-busy", "false");+ }+}diff --git a/pyproject.toml b/pyproject.tomlindex 709ea7fb..b47a30d8 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -119,8 +119,7 @@ full = ["mlx-vlm>=0.3.3,<0.4 ; sys_platform == 'darwin' and platform_machine == 'arm64'",]gradio = [- "gradio>=5.49.1,!=6.0.0,!=6.0.1,!=6.0.2,!=6.1.0,!=6.2.0,!=6.3.0,!=6.4.0,!=6.5.0,!=6.5.1,!=6.6.0,!=6.7.0,<6.9.0",- "gradio-pdf>=0.0.22",+ "gradio>=6.8,<7",]all = ["mineru[full]",diff --git a/scripts/vendor_pdfjs.py b/scripts/vendor_pdfjs.pynew file mode 100644index 00000000..2655b3ed--- /dev/null+++ b/scripts/vendor_pdfjs.py@@ -0,0 +1,69 @@+"""下载并校验固定版本的 PDF.js,只保留浏览器预览所需的发行文件。"""++from __future__ import annotations++import base64+import hashlib+import io+import json+import tarfile+from pathlib import Path, PurePosixPath+from urllib.request import urlopen++VERSION = "6.3.289"+TARBALL_URL = f"https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-{VERSION}.tgz"+INTEGRITY = "sha512-ZHjSVpDa3D6izMq8/04lvkhkATUmL9px6ChPaXc1k6nU2Mrhlg1/7F0bdUqCwUjw3NsPTfPZsMDUU6ZIcRaeQw=="+DESTINATION = Path(__file__).resolve().parents[1] / "mineru/resources/pdf_preview/vendor/pdfjs"+FILES = {+ "LICENSE",+ "legacy/build/pdf.min.mjs",+ "legacy/build/pdf.worker.min.mjs",+ "legacy/web/pdf_viewer.mjs",+ "legacy/web/pdf_viewer.css",+}+DIRECTORIES = ("legacy/web/images/", "cmaps/", "standard_fonts/", "wasm/")+++def vendor_pdfjs() -> None:+ """校验上游压缩包与每个选中文件,生成可复核的资源清单。"""+ with urlopen(TARBALL_URL, timeout=60) as response:+ archive_bytes = response.read()+ actual = "sha512-" + base64.b64encode(hashlib.sha512(archive_bytes).digest()).decode("ascii")+ if actual != INTEGRITY:+ raise ValueError("PDF.js archive integrity mismatch")+ hashes: dict[str, str] = {}+ with tarfile.open(fileobj=io.BytesIO(archive_bytes), mode="r:gz") as archive:+ for member in archive.getmembers():+ if not member.isfile() or not member.name.startswith("package/"):+ continue+ relative = member.name.removeprefix("package/")+ if relative not in FILES and not relative.startswith(DIRECTORIES):+ continue+ # 不分发源码映射或仅供文档脚本执行使用的 QuickJS 引擎。+ if relative.endswith(".map") or "quickjs" in relative:+ continue+ parts = PurePosixPath(relative).parts+ if ".." in parts or PurePosixPath(relative).is_absolute():+ raise ValueError(f"Unsafe archive member: {relative}")+ stream = archive.extractfile(member)+ if stream is None:+ raise ValueError(f"Missing archive member: {relative}")+ content = stream.read()+ destination = DESTINATION.joinpath(*parts)+ destination.parent.mkdir(parents=True, exist_ok=True)+ destination.write_bytes(content)+ hashes[relative] = hashlib.sha256(content).hexdigest()+ manifest = {+ "package": "pdfjs-dist",+ "version": VERSION,+ "source": TARBALL_URL,+ "integrity": INTEGRITY,+ "license": "Apache-2.0; bundled fonts and WASM retain their accompanying licenses",+ "sha256": dict(sorted(hashes.items())),+ }+ (DESTINATION / "manifest.json").write_text(json.dumps(manifest, indent=2) + "\n", encoding="utf-8")+ print(f"Vendored PDF.js {VERSION}: {len(hashes)} files")+++if __name__ == "__main__":+ vendor_pdfjs()diff --git a/scripts/verify_pdfjs_distribution.py b/scripts/verify_pdfjs_distribution.pynew file mode 100644index 00000000..622ba267--- /dev/null+++ b/scripts/verify_pdfjs_distribution.py@@ -0,0 +1,42 @@+"""检查 wheel 与 sdist 是否完整携带可离线运行的 PDF.js 预览资源。"""++from __future__ import annotations++import hashlib+import sys+import tarfile+import zipfile+from pathlib import Path+++def verify_distribution(path: Path) -> None:+ """逐文件比较发布包与源码资源,防止递归目录或许可证在打包时遗漏。"""+ root = Path(__file__).resolve().parents[1]+ resources = root / "mineru/resources/pdf_preview"+ expected = [*resources.rglob("*"), root / "mineru/resources/gradio_pdf_preview.js"]+ if path.suffix == ".whl":+ with zipfile.ZipFile(path) as archive:+ contents = {name: archive.read(name) for name in archive.namelist() if "mineru/resources/" in name}+ else:+ with tarfile.open(path) as archive:+ contents = {}+ for member in archive.getmembers():+ if member.isfile() and "mineru/resources/" in member.name:+ stream = archive.extractfile(member)+ if stream is not None:+ contents[member.name.split("/", 1)[1]] = stream.read()+ for file in expected:+ # Finder 元数据不属于发行资源,setuptools 也不会将这些隐藏文件打包。+ if not file.is_file() or file.name == ".DS_Store":+ continue+ relative = file.relative_to(root).as_posix()+ if relative not in contents:+ raise ValueError(f"{path.name}: missing {relative}")+ if hashlib.sha256(contents[relative]).digest() != hashlib.sha256(file.read_bytes()).digest():+ raise ValueError(f"{path.name}: changed {relative}")+ print(f"{path.name}: all PDF.js resources and licenses verified")+++if __name__ == "__main__":+ for filename in sys.argv[1:]:+ verify_distribution(Path(filename))diff --git a/tests/browser/gradio_pdf_fixtures.py b/tests/browser/gradio_pdf_fixtures.pynew file mode 100644index 00000000..0222a04c--- /dev/null+++ b/tests/browser/gradio_pdf_fixtures.py@@ -0,0 +1,65 @@+"""为真实浏览器验收生成可重复的 PDF、图片和错误样本。"""++from __future__ import annotations++import json+import sys+from pathlib import Path++from PIL import Image, ImageDraw+from pypdf import PdfReader, PdfWriter+from reportlab.lib.utils import ImageReader+from reportlab.pdfbase import pdfmetrics+from reportlab.pdfbase.cidfonts import UnicodeCIDFont+from reportlab.pdfgen import canvas+++def create_fixtures(root: Path) -> dict[str, str]:+ """生成中文、长文档、扫描页与异常 PDF,保存供浏览器上传的绝对路径。"""+ root.mkdir(parents=True, exist_ok=True)+ pdfmetrics.registerFont(UnicodeCIDFont("STSong-Light"))+ result: dict[str, str] = {}+ for name, filename, count in (("chinese", "中文 空格 # % 文档.pdf", 3), ("long", "long-document.pdf", 100)):+ path = root / filename+ painter = canvas.Canvas(str(path), pagesize=(480, 640))+ for page in range(1, count + 1):+ painter.setFillColorRGB(0.96, 0.97, 1)+ painter.rect(0, 0, 480, 640, fill=1, stroke=0)+ painter.setFillColorRGB(0.12, 0.2, 0.35)+ painter.setFont("Helvetica", 24)+ painter.drawString(35, 585, f"PDF preview - page {page} / {count}")+ painter.setFont("STSong-Light", 20)+ painter.drawString(35, 535, "中文预览:文字、表格和页面顺序")+ painter.setFont("Helvetica", 13)+ painter.drawString(35, 490, "MinerU / PDF.js / offline assets")+ painter.setStrokeColorRGB(0.25, 0.4, 0.6)+ for row in range(5):+ painter.line(35, 440 - row * 45, 440, 440 - row * 45)+ for column in range(4):+ painter.line(35 + column * 135, 260, 35 + column * 135, 440)+ painter.showPage()+ painter.save()+ result[name] = str(path.resolve())+ image = Image.new("RGB", (480, 640), "#e3f2e7")+ ImageDraw.Draw(image).text((35, 65), "SCANNED PAGE / IMAGE INPUT", fill="#125534", font_size=22)+ image.save(root / "photo.png")+ result["image"] = str((root / "photo.png").resolve())+ painter = canvas.Canvas(str(root / "scan.pdf"), pagesize=(480, 640))+ painter.drawImage(ImageReader(image), 0, 0, 480, 640)+ painter.save()+ result["scan"] = str((root / "scan.pdf").resolve())+ writer = PdfWriter()+ writer.append(PdfReader(result["chinese"]))+ writer.encrypt("preview-test-only")+ writer.write(root / "encrypted.pdf")+ result["encrypted"] = str((root / "encrypted.pdf").resolve())+ (root / "damaged.pdf").write_bytes(b"%PDF-1.7\ninvalid PDF contents")+ result["damaged"] = str((root / "damaged.pdf").resolve())+ (root / "FLASH.CSV").write_text("name,value\nPDF.js,6.3.289\n", encoding="utf-8")+ result["csv"] = str((root / "FLASH.CSV").resolve())+ (root / "fixtures.json").write_text(json.dumps(result, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")+ return result+++if __name__ == "__main__":+ print(json.dumps(create_fixtures(Path(sys.argv[1])), ensure_ascii=False))diff --git a/tests/unittest/test_kit_gradio.py b/tests/unittest/test_kit_gradio.pyindex 80934949..1cc8f62c 100644--- a/tests/unittest/test_kit_gradio.py+++ b/tests/unittest/test_kit_gradio.py@@ -992,8 +992,8 @@ def test_gradio_file_types_page_range_and_header_follow_new_contract(tmp_path: Passert gradio_app._effective_page_range(source, " 1-3,r1 ", tier="standard") == "1-3,r1"assert gradio_app._effective_page_range(source, " 1-3,r1 ", tier="flash") == ""assert gradio_app._effective_page_range("report.docx", "1-3", tier="standard") == ""- header = gradio_app._render_header(gradio_major_version=6)- assert "mineru-gradio6-header" in header+ header = gradio_app._render_header()+ assert "mineru-demo-header" in headerassert "mineru-header-popover mineru-model-popover" in headerassert "mineru-header-popover mineru-paper-popover" in headerassert "{{HEADER_" not in header@@ -1057,7 +1057,8 @@ def test_build_gradio_app_exposes_html_tab_and_download_menu(tmp_path: Path) ->)tab_labels = [component.label for component in app.blocks.values() if component.__class__.__name__ == "Tab"]assert [label.key for label in tab_labels] == [- "mineru.markdown_rendered",+ "mineru.markdown",+ "mineru.json_view",]download_buttons = [component@@ -1078,10 +1079,9 @@ def test_build_gradio_app_exposes_html_tab_and_download_menu(tmp_path: Path) ->assert preview_handler("report.pdf")[0] == {"__type__": "update","value": "report.pdf",- "visible": True,- "elem_classes": ["mineru-kit-pdf-preview"],+ "visible": False,}- assert preview_handler("report.docx")[0]["visible"] == "hidden"+ assert preview_handler("report.docx")[0]["visible"] is Falserange_group = next(block for block in app.blocks.values() if "mineru-kit-page-range" in (block.elem_classes or []))assert range_group.visible is Trueassert '[data-range-visible="true"]' in app._mineru_kit_css@@ -1176,7 +1176,7 @@ def test_gradio_flash_only_input_requires_available_flash(tmp_path: Path, tiers:assert "tier_unavailable" in updates[-1][0]assert "该格式仅支持 Flash,当前服务不可用" in updates[-1][0]assert updates[-1][6] is None- assert all(item["interactive"] is False for item in updates[-1][-7:])+ assert all(item["interactive"] is False for item in updates[-1][8:15])client.parse_file.assert_not_called()@@ -1239,11 +1239,11 @@ def test_gradio_conversion_forwards_page_range_and_enables_fresh_downloads(updates = asyncio.run(collect_updates(convert_handler))assert client.calls == [(source.resolve(), expected_tier, "" if expected_tier == "flash" else "1")]- assert len(updates[-1]) == 15+ assert len(updates[-1]) == 16assert updates[-1][7] == Path(updates[-1][6]["root"]).nameassert updates[-1][6] is not None- assert all(update["interactive"] is True for update in updates[-1][-7:])- assert all(update["interactive"] is False for update in updates[0][-7:])+ assert all(update["interactive"] is True for update in updates[-1][8:15])+ assert all(update["interactive"] is False for update in updates[0][8:15])@pytest.mark.parametrize(@@ -1273,7 +1273,7 @@ def test_gradio_conversion_rejects_invalid_tier_position(tmp_path: Path, tiers:updates = asyncio.run(collect_updates())assert "Failed: Invalid tier slider position" in updates[-1][0]assert updates[-1][6] is None- assert all(item["interactive"] is False for item in updates[-1][-7:])+ assert all(item["interactive"] is False for item in updates[-1][8:15])client.parse_file.assert_not_called()@@ -1306,7 +1306,7 @@ def test_gradio_conversion_failure_clears_previous_downloads(tmp_path: Path) ->assert "Failed: boom" in update[0]assert update[6] is None- assert all(item["interactive"] is False for item in update[-7:])+ assert all(item["interactive"] is False for item in update[8:15])@pytest.mark.parametrize("explicit_session_cancel", [False, True])@@ -1385,7 +1385,7 @@ def test_gradio_local_queue_cancellation_releases_slot_and_keeps_sessions_isolatfinal = updates[-1]assert "Completed (" in final[0]assert final[6]["stem"] == sources[2].stem- assert all(item["interactive"] is True for item in final[-7:])+ assert all(item["interactive"] is True for item in final[8:15])asyncio.run(scenario())@@ -1420,7 +1420,7 @@ def test_gradio_output_failure_stops_timer_and_allows_next_conversion(tmp_path:assert "Failed: output disk unavailable" in updates[-1][0]assert "is-error" in updates[-1][0]assert updates[-1][6] is None- assert all(item["interactive"] is False for item in updates[-1][-7:])+ assert all(item["interactive"] is False for item in updates[-1][8:15])asyncio.run(scenario())diff --git a/tests/unittest/test_kit_gradio_download.py b/tests/unittest/test_kit_gradio_download.pyindex 43bef235..d03f07d1 100644--- a/tests/unittest/test_kit_gradio_download.py+++ b/tests/unittest/test_kit_gradio_download.py@@ -41,19 +41,19 @@ def test_download_receipt_keeps_request_on_success_and_failure(tmp_path: Path, mrender.assert_not_called()-def test_download_event_chain_and_pdf_mount(tmp_path: Path) -> None:- """每种格式使用独立文件与成功事件,所有空 PDF 预览状态保持挂载。"""+def test_download_event_chain_and_pdf_transport(tmp_path: Path) -> None:+ """下载事件独立,PDF 仍以隐藏的原生文件组件输出并由 HTML 显示。"""cap = V1ServerCapabilities("http://127.0.0.1:1", ("flash",), ("zip",), ("file_id",))app = gradio_app.build_gradio_app(Mock(), cap, output_root=tmp_path, enable_example=False)- pdf = next(component for component in app.blocks.values() if component.__class__.__name__ == "PDF")- assert pdf.visible == "hidden"+ conversion = next(fn for fn in app.fns.values() if fn.name == "convert_handler")+ pdf = conversion.outputs[2]+ assert pdf.__class__.__name__ == "File" and pdf.visible is Falsepreview = next(fn.fn for fn in app.fns.values() if fn.name == "update_file_preview")for source in (None, "photo.png", "book.docx", "book.epub"):assert preview(source)[0]["value"] is None- assert preview(source)[0]["visible"] == "hidden"- assert "mineru-kit-pdf-empty" in preview(source)[0]["elem_classes"]+ assert preview(source)[0]["visible"] is Falsereset = next(fn.fn for fn in app.fns.values() if fn.name == "reset_ui")- assert reset()[2]["visible"] == "hidden"+ assert reset()[2]["visible"] is Falseassert reset()[7] == ""conversion = next(fn for fn in app.fns.values() if fn.name == "convert_handler")dependency = next(dep for dep in app.config["dependencies"] if dep["id"] == conversion._id)diff --git a/tests/unittest/test_kit_gradio_json.py b/tests/unittest/test_kit_gradio_json.pynew file mode 100644index 00000000..2b0b0a86--- /dev/null+++ b/tests/unittest/test_kit_gradio_json.py@@ -0,0 +1,90 @@+"""检查 JSON 标签读取 Structured Content 及其与转换生命周期的一致性。"""++from __future__ import annotations++import asyncio+import json+import zipfile+from pathlib import Path+from types import SimpleNamespace+from unittest.mock import AsyncMock++import gradio as gr+import pytest++from mineru.kit.gradio.app import build_gradio_app+from mineru.kit.gradio.artifacts import render_download+from mineru.kit.gradio.client import V1ServerCapabilities+from mineru.parser.base import ParseResult+from test_kit_gradio import _middle_json, _pdf_bytes++[email protected]("with_image", [False, True])+def test_json_view_matches_saved_and_downloaded_structured_content(tmp_path: Path, with_image: bool) -> None:+ """预览逐字复用落盘 JSON,与下载包相同,并只在完成时发送完整内容。"""+ source = tmp_path / "source.pdf"+ source.write_bytes(_pdf_bytes())+ client = SimpleNamespace(parse_file=AsyncMock(return_value=ParseResult(middle_json=_middle_json(with_image=with_image))))+ demo = build_gradio_app(+ client,+ V1ServerCapabilities("http://unused.test", ("flash",), ("zip",), ("file_id",)),+ output_root=tmp_path / "output",+ enable_example=False,+ )+ conversion = next(fn for fn in demo.fns.values() if fn.name == "convert_handler")+ editor = conversion.outputs[-1]+ assert isinstance(editor, gr.Code) and editor.language == "json" and editor.interactive is False+ assert conversion.outputs[2].__class__.__name__ == "File"++ async def collect() -> list[tuple]:+ """完整消费转换流,检查 JSON 不随状态动画重复下发。"""+ return [update async for update in conversion.fn(str(source), 0, "")]++ updates = asyncio.run(collect())+ state = updates[-1][6]+ text = updates[-1][-1]+ assert text == Path(state["structured_content_path"]).read_text(encoding="utf-8")+ payload = json.loads(text)+ assert "pages" in payload and "schema_version" not in payload+ assert all(update[-1] in ("", {"__type__": "update"}) for update in updates[:-1])+ with zipfile.ZipFile(render_download(state, "json", allowed_root=tmp_path / "output")) as archive:+ assert archive.read(f"{state['stem']}.json").decode("utf-8") == text+ if with_image:+ assert "images/" in text and "data:image/" not in text+++def test_json_view_clears_on_file_change_clear_and_failed_conversion(tmp_path: Path) -> None:+ """换文件、清除、失败均撤销旧 JSON,重试后展示新结果。"""+ source = tmp_path / "source.pdf"+ source.write_bytes(_pdf_bytes())+ client = SimpleNamespace(parse_file=AsyncMock(return_value=ParseResult(middle_json=_middle_json(with_image=False))))+ demo = build_gradio_app(+ client,+ V1ServerCapabilities("http://unused.test", ("flash",), ("zip",), ("file_id",)),+ output_root=tmp_path / "output",+ enable_example=False,+ )+ conversion = next(fn for fn in demo.fns.values() if fn.name == "convert_handler")+ editor = conversion.outputs[-1]+ for name, arguments in (("update_file_preview", (str(source),)), ("reset_ui", ())):+ callback = next(fn for fn in demo.fns.values() if fn.name == name)+ assert callback.outputs[-1] is editor+ assert callback.fn(*arguments)[-1] == ""++ async def scenario() -> None:+ """按成功、失败、重试顺序验证 JSON 的原子更新和清理。"""+ first = [update async for update in conversion.fn(str(source), 0, "")]+ assert "hello-0" in first[-1][-1]+ client.parse_file.side_effect = RuntimeError("test failure")+ failure = [update async for update in conversion.fn(str(source), 0, "")]+ assert failure[0][-1] == failure[-1][-1] == ""+ assert "Failed:" in failure[-1][0]+ changed = _middle_json(with_image=False)+ changed.pages[0].blocks[0].content[0].content = "更新后的结果"+ client.parse_file.side_effect = None+ client.parse_file.return_value = ParseResult(middle_json=changed)+ retry = [update async for update in conversion.fn(str(source), 0, "")]+ assert retry[0][-1] == ""+ assert "更新后的结果" in retry[-1][-1] and "hello-0" not in retry[-1][-1]++ asyncio.run(scenario())diff --git a/tests/unittest/test_kit_gradio_office_preview.py b/tests/unittest/test_kit_gradio_office_preview.pyindex 5d215208..4a0743a6 100644--- a/tests/unittest/test_kit_gradio_office_preview.py+++ b/tests/unittest/test_kit_gradio_office_preview.py@@ -34,7 +34,7 @@ def test_office_upload_builds_preview_without_parsing(tmp_path: Path, suffix: stassert len(callback.inputs) == 1request = SimpleNamespace(headers={"host": "example.test:7860"})updates = callback.fn(str(tmp_path / f"document.{suffix}"), request)- assert updates[0]["visible"] == "hidden" and updates[1]["visible"] is False+ assert updates[0]["visible"] is False and updates[1]["visible"] is Falseassert updates[2]["visible"] is True and updates[3]["visible"] is Falseassert 'class="office-preview-notice"' in updates[2]["value"]assert 'class="office-preview-frame"' in updates[2]["value"]@@ -120,7 +120,7 @@ def test_office_conversion_never_replaces_uploaded_preview(updates = asyncio.run(collect())assert updates and all(update[2:6] == ({"__type__": "update"},) * 4 for update in updates)assert bool(updates[-1][6]) is (outcome == "success")- assert all(item["interactive"] is (outcome == "success") for item in updates[-1][-7:])+ assert all(item["interactive"] is (outcome == "success") for item in updates[-1][8:15])if outcome == "success":assert "hello-0" in updates[-1][1]else:diff --git a/tests/unittest/test_kit_gradio_page_range.cjs b/tests/unittest/test_kit_gradio_page_range.cjsindex 3c78aeee..7aa6457f 100644--- a/tests/unittest/test_kit_gradio_page_range.cjs+++ b/tests/unittest/test_kit_gradio_page_range.cjs@@ -235,6 +235,7 @@ for (const count of [1, 12, 20, 100]) {out = ui.upload(count);assert.equal(ui.state.b, Math.min(count, limit ?? count));assert.equal(out[1].interactive, count > 1);+ assert.equal(out[1].maximum, Math.max(2, count));let seed = 7;for (let step = 0; step < 1000; step++) {seed = (seed * 16807) % 2147483647;diff --git a/tests/unittest/test_kit_gradio_page_range.py b/tests/unittest/test_kit_gradio_page_range.pyindex 9fbf2c77..5b37ef6a 100644--- a/tests/unittest/test_kit_gradio_page_range.py+++ b/tests/unittest/test_kit_gradio_page_range.py@@ -375,13 +375,7 @@ def test_native_range_components_and_frontend_only_events(tmp_path: Path) -> Nonassert metadata["page_count"] == 12 and metadata["error"] == ""load_events = [event for event in demo.config["dependencies"] if any(target[1] == "load" for target in event["targets"])]assert any(event["js"] == demo._mineru_kit_js and not event["backend_fn"] for event in load_events)- import gradio as gr-- if gradio_app._gradio_major_version(gr) >= 6:- assert set(demo._mineru_kit_launch_kwargs) == {"css", "js", "i18n"}- else:- assert set(demo._mineru_kit_launch_kwargs) == {"i18n"}- assert demo.css and demo.js+ assert set(demo._mineru_kit_launch_kwargs) == {"css", "js", "i18n"}def test_frontend_page_range_state_machine() -> None:diff --git a/tests/unittest/test_kit_gradio_pdf_preview.cjs b/tests/unittest/test_kit_gradio_pdf_preview.cjsnew file mode 100644index 00000000..409fee60--- /dev/null+++ b/tests/unittest/test_kit_gradio_pdf_preview.cjs@@ -0,0 +1,62 @@+// 运行真实预览适配脚本,验证文件编码、事件乱序和清除失效,不模拟 Gradio 内部组件。+const assert = require("node:assert/strict");+const fs = require("node:fs");+const vm = require("node:vm");+const path = require("node:path");+const script = fs.readFileSync(path.join(__dirname, "../../mineru/resources/gradio_pdf_preview.js"), "utf8");+const window = { location: new URL("https://mineru.test/prefix/"), __mineruI18n: { text: (key) => `中文 ${key}` } };+const invoke = vm.runInNewContext(`(${script})`, { window, URL, URLSearchParams });+// 使用原始文件路径构造典型 FileData,模拟框架回传的未编码 URL。+const file = (name) => ({ path: `/cache/${name}`, url: `/prefix/gradio_api/file=/cache/${name}`, orig_name: name });+// 提取真正传给 iframe 的地址,后续断言同时覆盖两层 URL 编码。+const iframe = (update) => new URL(update.value.match(/src="([^"]+)"/)[1].replaceAll("&", "&"));+const first = file('中文 空格#?%&".pdf');+const second = file("second.pdf");+const viewer = file("assets/viewer.html");+assert.equal(invoke("reset", first).value, "");+const initial = invoke("source", first, first, viewer);+assert.equal(initial.visible, true);+const initialUrl = iframe(initial);+assert.equal(initialUrl.pathname, "/prefix/gradio_api/file=/cache/assets/viewer.html");+assert.ok(initialUrl.searchParams.has("document"));+const parameters = new URLSearchParams(initialUrl.hash.slice(1));+const pdfUrl = new URL(parameters.get("file"));+assert.equal(decodeURIComponent(pdfUrl.pathname), `/prefix/gradio_api/file=${first.path}`);+assert.equal(pdfUrl.search, "");+assert.equal(pdfUrl.hash, "");+assert.ok(initial.value.includes('sandbox="allow-scripts allow-same-origin"'));+assert.equal(JSON.parse(parameters.get("messages")).pdf_page, "中文 pdf_page");+// Gradio 的事件 FileData 可能缺少挂载前缀,静态入口的基址必须用于结果 PDF。+const relative = { ...first, url: first.url.replace("/prefix", "") };+const relativeParams = new URLSearchParams(iframe(invoke("source", relative, first, viewer)).hash.slice(1));+assert.equal(new URL(relativeParams.get("file")).pathname, pdfUrl.pathname);++invoke("begin");+const layout = file("run/layout.pdf");+assert.equal(invoke("result", layout, first, viewer, "run-1").visible, true);+assert.equal(invoke("source", first, first, viewer).value, undefined);+invoke("reset", second);+assert.equal(invoke("result", layout, first, viewer, "run-1").value, undefined);+assert.equal(invoke("source", first, second, viewer).value, undefined);+assert.equal(invoke("source", second, second, viewer).visible, true);+invoke("begin");+assert.equal(invoke("result", layout, second, viewer, "").value, undefined);+assert.equal(invoke("clear").value, "");+assert.equal(invoke("result", layout, second, viewer, "run-2").value, undefined);+assert.equal(invoke("source", second, second, viewer).value, undefined);+invoke("reset", first);+assert.notEqual(iframe(invoke("source", first, first, viewer)).search, initialUrl.search);++const image = file("photo.png");+invoke("reset", image);+assert.equal(invoke("source", null, image, viewer).value, "");+invoke("begin");+assert.equal(invoke("result", layout, image, viewer, "image-run").visible, true);+const win = { path: "C:\\cache\\中文 #1.pdf", url: "/prefix/gradio_api/file=C:/cache/中文 #1.pdf" };+invoke("reset", win);+const windowsUrl = new URL(new URLSearchParams(iframe(invoke("source", win, win, viewer)).hash.slice(1)).get("file"));+assert.equal(decodeURIComponent(windowsUrl.pathname), "/prefix/gradio_api/file=C:/cache/中文 #1.pdf");+const external = { path: first.path, url: `https://other.test/gradio_api/file=${first.path}` };+invoke("reset", external);+assert.ok(invoke("source", external, external, viewer).value.includes('role="alert"'));+console.log("PDF preview lifecycle and URL checks passed");diff --git a/tests/unittest/test_kit_gradio_pdf_preview.py b/tests/unittest/test_kit_gradio_pdf_preview.pynew file mode 100644index 00000000..0f6305ed--- /dev/null+++ b/tests/unittest/test_kit_gradio_pdf_preview.py@@ -0,0 +1,126 @@+"""验证本地 PDF.js 的资源边界、原生文件契约和前端生命周期。"""++from __future__ import annotations++import hashlib+import json+import shutil+import subprocess+from pathlib import Path+from unittest.mock import Mock+from urllib.parse import quote++import gradio as gr+import pytest+import typer+from fastapi import FastAPI+from fastapi.testclient import TestClient+from gradio.data_classes import FileData++from mineru.kit.commands import gradio as gradio_command+from mineru.kit.gradio.app import build_gradio_app+from mineru.kit.gradio.client import V1ServerCapabilities+from mineru.kit.gradio.pdf_preview import register_pdf_preview_resources+++def test_pdf_preview_transport_and_success_events(tmp_path: Path) -> None:+ """公开转换保留原生 PDF 文件输出,预览仅在成功事件通过前端更新。"""+ capability = V1ServerCapabilities("http://unused.test", ("flash",), ("zip",), ("file_id",))+ demo = build_gradio_app(Mock(), capability, output_root=tmp_path, enable_example=False)+ conversion = next(fn for fn in demo.fns.values() if fn.name == "convert_handler")+ source = next(fn for fn in demo.fns.values() if fn.name == "update_file_preview")+ transport = conversion.outputs[2]+ assert isinstance(transport, gr.File) and transport.visible is False+ assert source.outputs[0] is transport+ pdf = tmp_path / "source.pdf"+ pdf.write_bytes(b"%PDF-1.7\n")+ assert isinstance(transport.postprocess(str(pdf)), FileData)+ assert not any(type(block).__module__.startswith("gradio_pdf") for block in demo.blocks.values())+ viewer = next(block for block in demo.blocks.values() if "mineru-kit-pdf-preview" in (block.elem_classes or []))+ assert isinstance(viewer, gr.HTML) and viewer.visible is True+ assert ':not(:has(.mineru-pdf-frame, [role="alert"]))' in demo._mineru_kit_css+ for event in (source, conversion):+ previews = [item for item in demo.config["dependencies"] if item.get("trigger_after") == event._id]+ assert len(previews) == 1+ assert previews[0]["trigger_only_on_success"] is True+ assert previews[0]["outputs"] == [viewer._id]+ assert previews[0]["backend_fn"] is False and previews[0]["queue"] is False+ assert len(conversion.inputs) == 4++[email protected]("mount", ["", "/mineru"])+def test_pdf_preview_static_routes_and_range(tmp_path: Path, mount: str) -> None:+ """真实文件路由保留挂载前缀、字符编码、MIME、Range 和访问边界。"""+ entry = register_pdf_preview_resources()+ pdf = tmp_path / "中文 # % 空格.pdf"+ pdf.write_bytes(b"%PDF-1.7\n" + b"fixture" * 100)+ denied = tmp_path / "private.txt"+ denied.write_text("private", encoding="utf-8")+ with gr.Blocks(analytics_enabled=False) as demo:+ gr.HTML("")+ app = gr.mount_gradio_app(FastAPI(), demo, path=mount or "/", allowed_paths=[str(pdf)])+ with TestClient(app) as client:+ for path, mime in (+ (entry, "text/html"),+ (entry.with_name("viewer.mjs"), "text/javascript"),+ (entry.parent / "vendor/pdfjs/legacy/build/pdf.worker.min.mjs", "text/javascript"),+ (entry.parent / "vendor/pdfjs/wasm/openjpeg.wasm", "application/wasm"),+ (pdf, "application/pdf"),+ ):+ response = client.get(f"{mount}/gradio_api/file={quote(str(path), safe='/')}")+ assert response.status_code == 200+ assert response.headers["content-type"].split(";")[0] == mime+ assert response.headers["content-disposition"].startswith("inline")+ response = client.get(f"{mount}/gradio_api/file={quote(str(pdf), safe='/')}", headers={"Range": "bytes=0-7"})+ assert response.status_code == 206 and response.content == b"%PDF-1.7"+ assert client.get(f"{mount}/gradio_api/file={quote(str(denied), safe='/')}").status_code == 403+++def test_pdf_preview_static_routes_require_login(tmp_path: Path) -> None:+ """预览资源与 PDF 均复用 Gradio 的登录检查,不新增绕过认证的文件入口。"""+ entry = register_pdf_preview_resources()+ pdf = tmp_path / "source.pdf"+ pdf.write_bytes(b"%PDF-1.7\n")+ with gr.Blocks(analytics_enabled=False) as demo:+ gr.HTML("")+ app = gr.mount_gradio_app(FastAPI(), demo, path="/mineru", auth=("user", "password"), allowed_paths=[str(pdf)])+ with TestClient(app) as client:+ for path in (entry, pdf):+ response = client.get(f"/mineru/gradio_api/file={quote(str(path), safe='/')}")+ assert response.status_code == 401+ assert client.post("/mineru/login", data={"username": "user", "password": "password"}).status_code == 200+ assert client.get(f"/mineru/gradio_api/file={quote(str(pdf), safe='/')}").content == pdf.read_bytes()+++def test_pdfjs_manifest_matches_bundled_files() -> None:+ """每个打包的发行文件都与校验清单一致,避免 worker 和核心版本漂移。"""+ root = register_pdf_preview_resources().parent / "vendor/pdfjs"+ manifest = json.loads((root / "manifest.json").read_text(encoding="utf-8"))+ assert manifest["version"] == "6.3.289"+ assert manifest["source"].endswith("pdfjs-dist-6.3.289.tgz")+ # Finder 可能在浏览资源目录时写入本机元数据,校验仍只针对发行文件。+ assert {str(path.relative_to(root)) for path in root.rglob("*") if path.is_file() and path.name != ".DS_Store"} == {+ "manifest.json",+ *manifest["sha256"],+ }+ for relative, digest in manifest["sha256"].items():+ assert hashlib.sha256((root / relative).read_bytes()).hexdigest() == digest, relative+ assert "Apache License" in (root / "LICENSE").read_text(encoding="utf-8")++[email protected]("version", ["5.49.1", "5.50.0", "6.7.0", "7.0.0"])+def test_gradio_command_rejects_unsupported_version(monkeypatch: pytest.MonkeyPatch, version: str) -> None:+ """即使用户跳过安装器检查,启动时仍明确拒绝旧版或未支持的主版本。"""+ monkeypatch.setattr(gradio_command, "version", Mock(return_value=version))+ with pytest.raises(typer.Exit) as error:+ gradio_command._require_gradio_dependencies()+ assert getattr(error.value, "exit_code", None) == 1+++def test_pdf_preview_frontend_lifecycle() -> None:+ """用 Node 执行实际适配器,验证乱序、编码和重复上传行为。"""+ node = shutil.which("node")+ if node is None:+ pytest.skip("Node.js is required for frontend lifecycle checks")+ result = subprocess.run([node, str(Path(__file__).with_suffix(".cjs"))], capture_output=True, text=True, check=False)+ assert result.returncode == 0, result.stdout + result.stderr